lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saju Pillai <saju.pil...@gmail.com>
Subject Highlighting search results from files
Date Thu, 08 Apr 2010 13:05:43 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message