lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saju Pillai <>
Subject Highlighting search results from files
Date Thu, 08 Apr 2010 13:05:43 GMT

  I am new to Lucene. I am trying to highlight results for files on 
disk. The file content is indexed as :

  Reader freader = new FileReader(filepath);
  doc.add(new Field("content", freader));

In the Highlighter.getBestFragments(tokenStream, text, .....) api:

1) is tokenStream == analyzer.tokenStream(FileReader(matched file));
2) is text == the full content of the file from disk ?

Will I have to read the entire file into memory for the Highlighter to 
work ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message