1.Will the result be determined by the order of json data?
2.What will be the result? Please tell me the reason.
3.What would be the result if there was a "_score"?
The order defaults to desc when sorting on the _score, and defaults to asc when sorting on anything else.
It will be empty. There is no match for the token "kimchy".
You can try to use the wildcard query or create a analyzer that separates the text from the number and makes the match query only in the field that stores the name.
I don't know if I understood the question well, but by default the order will be by the _score value.
@RabBit_BR
It will be empty. There is no match for the token "kimchy".
You can try to use the wildcard query or create a analyzer that separates the text from the number and makes the match query only in the field that stores the name.
Do you mean it will be empty if I do the following?
When the doc is indexed as "kimchy_00", by default the standard analyzer will be applied, in this case you would have a token like this: "kimchy_00".
When you search for "kimchy", your token will be "kimchy". If you use the match query, you will not have results because the tokens are not the same.
If you use a prefix query, you will get the doc because "kimchy" is present in the prefix of the token and if you use the wildcard, like kim*y*, you can also get results.
However, be aware of the performance of these queries and check the documentation.
Have you already performed a test to understand how the match works?
Well, I know that BM25 is used to define how docs are scored. This link has some Elastic options.
For details I believe the Elastic team can answer better than I can.
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.