Problems with highlighting

2007-01-24 Thread Tomas Fischer
Hi, I build my index with the StandardAnalyzer and two fields: Field field= new Field("text", new FileReader(fullPath)); field= new Field("filepath", fullPath, Store.YES, Index.TOKENIZED); Now, I want to highlight the search result. First version is fine: TokenStream stream

meta information of hits

2007-01-18 Thread Tomas Fischer
Hi! I got lost. Short version: Is it possible to index tons of files, execute a query for word 'foo'. Look at *each* hit in the 10 best files and receive some meta information? Extended version: I have html like files, which I want to index with Lucene. FileA: foo bar foo FileB: foo