posted 8 years ago
I'm using Lucene 5.1.0 to index a document and search it. I have a lot of documents, over 1000000, which are stored in a database. When I start running the project for the first time, I use Lucene to index these documents. Now I want to delete one document from the database and indexes. I also choose an id for each index. I am using the following command to delete, but it's delete all index.
Also, I used a Query to delete but it will delete all index.
I add documents to the index as follows: