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.

Reply via email to