Hey,
For the following situation:
doc-entry
{
"id" : 1,
"users" : [1001, 2002],
}
user-entry
{
"id": 1001,
"name": "a"
},
{
"id": 2002,
"name": "b"
}
Lets say I search for doc-entries that contains user_id= 1001, is it
possible for elasticsearch to automatically map the user id to the user
object and return something like:
doc-entry
{
"id" : 1,
"users" : ["a", "b"]
},
And in this case what happens if you want to search doc-estry using a user
name, could elasticsearch automatically lookup the user id and then search
the name field?
I have a very relation db like way of thinking, what would best practice be
when doing something like this in elasticsearch. Could I solve this by
using natural language as id, e.g. using the user name as id
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6fb2ff7b-528b-41f9-8a21-e324584785fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.