During this change I had to change the way I store indexes. This change
results in too many .cfs and .fdt files generated against earlier.
Previously there were 5-7 files in index folder, now it has grown to 40+.
Does it affect having change in the way how indexes are stored internally
with this change. Notice that earlier all documents were added at once to
writer as against now, one document at a time

Earlier:

List<Document> documents = new ArrayList<>();
for (HashMap<String,String> c: dataList) {
                documents.add(IndexUtil.createDocument(c));
}
writer.deleteAll();
writer.addDocuments(documents);
writer.commit();

Now:

writer.deleteAll();
for (HashMap<String,String> c: dataList) {
                writer.addDocument(IndexUtil.createDocument(c));
}
writer.commit();



--
Sent from: https://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to