I see.
Actually, setting path to `_id` do exactly the opposite as what you are
expecting:
It extracts at index time the _id value from the source document.
So, if you send a document like:
{
"table_id":"my_id"
}
The elasticsearch document id for this doc will be "my_id".
Makes sense?
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr
Le 18 juillet 2014 à 15:13:49, Giuseppe Longo ([email protected]) a écrit:
Hi David,
you can find the script here: http://pastebin.com/6EdQSCft
As you can see, the result of GET request is:
{name: "test"}
but it should be:
{
table_id: 1
name: "test"
}
Thanks
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/085356cf-fbb5-4aaa-8321-ece1bea5ac79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/etPan.53c91e26.4e6afb66.38f%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.