You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by vitaly bulgakov <bu...@yahoo.com> on 2016/05/29 00:51:21 UTC
How to read bag of words from Lucene index
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.