Hi,
I' ve a trouble with a particular field with my query that use wildcard
I'm using Elasticsearch 2.3.5 and I' ve a a properties called sessionid mapped as
"sessionid" : {
"type" : "string",
"index" : "not_analyzed"
}
With this query
{
"from": 0,
"size": 150,
"query": {
"bool": {
"must": {
"query_string": {
"query": "sessionid:"Ijd18yH8WskUyV5mCsJLGUf99ddGEaoiCmbjHRNeJNqk3yuLWdmhnf62m-mC6PBph82aajdX1xAFNm1EHwJ1VA== org.apache.jsp.isml2jsp.app_005fjonny_005fwhitelabel.default_.components.product.gtm_005finfo_002d1_002daa2fbdfa0b82a2a0d43ea8d785585808c58b82e2_jsp"",
"allow_leading_wildcard": true
}
}
}
}
}
It return results with exactly that sessionid, but when for example replace last '_jsp' with char '*' like this
{
"from": 0,
"size": 150,
"query": {
"bool": {
"must": {
"query_string": {
"query": "sessionid:"Ijd18yH8WskUyV5mCsJLGUf99ddGEaoiCmbjHRNeJNqk3yuLWdmhnf62m-mC6PBph82aajdX1xAFNm1EHwJ1VA== org.apache.jsp.isml2jsp.app_005fjonny_005fwhitelabel.default_.components.product.gtm_005finfo_002d1_002daa2fbdfa0b82a2a0d43ea8d785585808c58b82e2*"",
"allow_leading_wildcard": true
}
}
}
}
}
It return 0 Hits instead I'm waiting at least value.
The problem seems to be tied to the field but it is defined as other that works
Have you a suggest to address this problem or tips to understand what going wrong ?
Thanks for help.
--Filippo