Hi dear, any one can tell me where is the mistake in this sintax? i'm tryng to query different fields with different match type to get better result with no luck
Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.
Or use markdown style like:
```
CODE
```
This is the icon to use if you are not using markdown format:
There's a live preview panel for exactly this reasons.
Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.
The "fields": [] arrays must only contain a list with the names of the fields on which the "query" is run. You're trying to use object syntax inside of the arrays. Also make sure there aren't any stray commas. See the multi_match query documentation for some examples.
The example you show there obviously uses object syntax instead of array syntax. I guess that in this case the code iterates over the values of the key value pairs.
If my understanding of multi_match is correct, then you can do away with the key names such as "0" and "1", and simply use a list of the values (["pname^50", "feature^5"]) instead.
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.