We are using ES 7.16.2 version and below is the query which we have generated using Java apis, Please let us know why it is not working or are we doing something wrong?
By not working, do you mean the query is returning no results, or is returning a particular error? Can you share an example of the document(s) you are trying to find with your query?
Bu not editable, do you mean the index mapping is not editable? That's right, you would need to create a temp index with the new mapping including the type change, reindex the documents to the new index, delete the old one and rename the new one.
If you cannot recreate, have you tried using match instead as recommended in the docs link above to see if that gives you the results for your data set that you want?
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.