Question

I've read solr wiki and I know it is possible to use deletedPkQuery to remove the documents which deleted logically, but how to remove physically deleted documents with DataImportHandler?

Was it helpful?

Solution

You can do it by optimizing the index. Send an optimize request to Solr as described here. But beware, that optimizing the index means re-writing the index. Unless you have substantial number of deleted documents in the index, the overhead of optimizing can be quite high.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top