Hello,

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 ?

-srp


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to