And I'm making an API where the clients will send me queries like this: ?given=Duck and also like this ?name=Duck, That one should also look in name.family, so this: ?name=Donald should also work.
How can ElasticSearch help me with this?
Sorry @dadoonet , I didn't make my self clear enough.
The problem is that I don't know the full path to the field that the client wants to search in.
For example, the client could only tell me given=eve, while the real path is name.given so the question is, how to search in a field I don't know the full path to in advance.
Another side of the question is the case where the client tells me name=eve or name=smith while the real path is name.given and name.family. So the question is now also, how to search in all the fields of a nested object?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.