Wrapping query text into "<>" results into match all

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 in advance for your advices,

Tony

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2e888d66-b2a1-498a-99ed-d265fa95e221%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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 in advance for your advices,

Tony

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/2e888d66-b2a1-498a-99ed-d265fa95e221%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/2e888d66-b2a1-498a-99ed-d265fa95e221%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd34HzFKjpuF67hkLy2vp57YwZgo3csF%2B30z7BUgpwgXzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi Nikolas,

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.

Thank you in advance for your advices,

Tony

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/2e888d66-b2a1-498a-99ed-d265fa95e221%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/2e888d66-b2a1-498a-99ed-d265fa95e221%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a5c222ff-094c-461a-abf1-5c988e640a5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.