Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add delete single Document from lucene via api call #36

Open
allixender opened this issue Feb 28, 2018 · 1 comment
Open

add delete single Document from lucene via api call #36

allixender opened this issue Feb 28, 2018 · 1 comment

Comments

@allixender
Copy link
Member

due to the incremental updates indexer we might keep old documents in the lucene index. This is good for on-going updates of the index, and we don't need throw away the complete index.

In order to delete from our SMART CSW we should consider add delete single Document from lucene via api call instead of the refreshCatalogue call.

lucene docs: https://lucene.apache.org/core/4_0_0/core/org/apache/lucene/index/IndexWriter.html#deleteDocuments(org.apache.lucene.index.Term)

deleteDocuments(Term) respectively deleteDocuments(new Term("id",id))

@allixender
Copy link
Member Author

testing needed, to be confirmed working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant