I have encountered very strange behaviour of the search when the search
query is wrapped into "<>" characters,
for example query text: "products" matches no documents, while ""
matches all the documents from the index.
I won't post the index creation definitions (i.e. mappings and structure)
yet, but rather ask you to try this on your working installations or point
me to the document on special characters I am missing.
As a hint, the _explain returns following message: "description":
"ConstantScore(model_en:[* TO products>}), product of:", where "model_en"
is the matched field.
Its a range query on all terms less than products>. You'll want to use
match instead of query_string and you won't see weird stuff like that.
On Tue, Dec 2, 2014 at 11:02 AM, Anthony Andrushchenko amrmaker@gmail.com
wrote:
Hi everybody,
I have encountered very strange behaviour of the search when the search
query is wrapped into "<>" characters,
for example query text: "products" matches no documents, while
"" matches all the documents from the index.
I won't post the index creation definitions (i.e. mappings and structure)
yet, but rather ask you to try this on your working installations or point
me to the document on special characters I am missing.
As a hint, the _explain returns following message: "description":
"ConstantScore(model_en:[* TO products>}), product of:", where "model_en"
is the matched field.
thank you very much for your fast and accurate response!
Best,
Tony
вторник, 2 декабря 2014 г., 18:06:49 UTC+2 пользователь Nikolas Everett
написал:
Its a range query on all terms less than products>. You'll want to use
match instead of query_string and you won't see weird stuff like that.
On Tue, Dec 2, 2014 at 11:02 AM, Anthony Andrushchenko <amrm...@gmail.com
<javascript:>> wrote:
Hi everybody,
I have encountered very strange behaviour of the search when the search
query is wrapped into "<>" characters,
for example query text: "products" matches no documents, while
"" matches all the documents from the index.
I won't post the index creation definitions (i.e. mappings and structure)
yet, but rather ask you to try this on your working installations or point
me to the document on special characters I am missing.
As a hint, the _explain returns following message: "description":
"ConstantScore(model_en:[* TO products>}), product of:", where "model_en"
is the matched field.
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.