Hello,
To use get or delete method i need to know document's ID. What solution
is better:
store ID of indexed document in my main database with object which
was indexed (needs extra write operation on database)
filter for certain document to get its ID and then delete (needs
extra query to ES)
P.S. In online docs ID is an integer, but in ES I see random string. Is
documentation outdated?
tk
avasilenko
(avasilenko)
November 3, 2011, 9:17am
2
Hello Tomasz,
You can combine filtering and deleting document, by using delete by query -
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
Regards,
Alexandr Vasilenko
2011/11/3 Tomasz Kloc tomek.kloc.iit@gmail.com
Hello,
To use get or delete method i need to know document's ID. What solution is
better:
store ID of indexed document in my main database with object which was
indexed (needs extra write operation on database)
filter for certain document to get its ID and then delete (needs extra
query to ES)
P.S. In online docs ID is an integer, but in ES I see random string. Is
documentation outdated?
tk
Thanks!
One more question. Is there a possibility to update indexed document? Or
should I delete and then reindex?
On 03.11.2011 10:17, Alex Vasilenko wrote:
Hello Tomasz,
You can combine filtering and deleting document, by using delete by
query -
Elasticsearch Platform — Find real-time answers at scale | Elastic
Regards,
Alexandr Vasilenko
2011/11/3 Tomasz Kloc <tomek.kloc.iit@gmail.com
mailto:tomek.kloc.iit@gmail.com >
Hello,
To use get or delete method i need to know document's ID. What
solution is better:
* store ID of indexed document in my main database with object
which was indexed (needs extra write operation on database)
* filter for certain document to get its ID and then delete
(needs extra query to ES)
P.S. In online docs ID is an integer, but in ES I see random
string. Is documentation outdated?
tk
Hi Tomasz
To use get or delete method i need to know document's ID. What solution
is better:
store ID of indexed document in my main database with object which
was indexed (needs extra write operation on database)
filter for certain document to get its ID and then delete (needs
extra query to ES)
Presumably your docs already have an ID in your database, so why not
just use that ID when indexing your docs in ES?
P.S. In online docs ID is an integer, but in ES I see random string. Is
documentation outdated?
An ID in ES is a string, but that string can contain just numbers.
clint
On 03.11.2011 10:23, Clinton Gormley wrote:
Hi Tomasz
To use get or delete method i need to know document's ID. What solution
is better:
store ID of indexed document in my main database with object which
was indexed (needs extra write operation on database)
filter for certain document to get its ID and then delete (needs
extra query to ES)
Presumably your docs already have an ID in your database, so why not
just use that ID when indexing your docs in ES?
I wasn't aware of that feature, thanks.