I am pretty new to Easticsearch. So, if my question is stupid, I apologize.
This is my question: I want search documents that have some fields. I have provided code snippet below.
I have a field called "reference number" and I want to retrieve documents whose reference numbers are 1,2 or 3.
When I use 'match', I get the documents for each reference number.
Thanks for your help. It does not return anything. I have noticed that if I use another field both 'term' and 'terms' return the required results. Could this be a problem with the field name?
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem.
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.