lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vitaly bulgakov <bulgako...@yahoo.com>
Subject How to read bag of words from Lucene index
Date Sun, 29 May 2016 00:51:21 GMT
I use Lucene 3.

How can I read content as a bag of words or similar which was indexed from a
text file?

The indexing is done in the following way:
  		addFiles(new File(fileName));
  		int originalNumDocs = writer.numDocs();
  		for (File f : queue) {
  			FileReader fr = null;
  			try {
  				Document doc = new Document();
  				fr = new FileReader(f);
  				doc.add(new Field("content", fr));		




--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-read-bag-of-words-from-Lucene-index-tp4279679.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message