Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search by DocID instead of ID when deleting old documents
The method IndexingHelper#deleteOldDocuments() is responsible for removing old search entries, and it seems that it can find these old entries correctly (the docIdList correctly contains old entries). But the deleteByQuery() call seems to be searching the wrong column (with the default settings, it is searching by "_id" column instead of "doc_id"). This patch changes the QueryBuilder (used by deleteByQuery) from querying by "_id" column to "doc_id" instead.
- Loading branch information