lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vitaly bulgakov <>
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:
Sent from the Solr - User mailing list archive at

View raw message