I have filed with multiple values,
{ "applids": [
"6512708",
" 8234215"
] }
how to pass multiple values and search ?
I have filed with multiple values,
{ "applids": [
"6512708",
" 8234215"
] }
how to pass multiple values and search ?
You search arrays in the same way as any other field. Issuing a Match or Term query on field "applids" for "6512708" should return the same result as if the field was a string e.g. "applids": "6512708".
A Terms query will do multiple values at once, e.g. "give me 6512708 or 8234215". I'd recommend making this field a Keyword field in your mappings if you're only going to do exact matches on it.
it worked after making the field type long. thank you
© 2020. All Rights Reserved - Elasticsearch
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.