Hi we have this problems with querys (we use the last ElasticSearch 1.4.1)
The query target is this string "MANTENIMIENTOS FERNANDEZ"
]
We have this query:
POST /GDATADEC-1/invoice/_search
{
"query": {
"query_string" : {
"query" : "mantenimiefer*"
}
}
}
This query don't have any results, but if we launch this,* the same string
query with a white space*, we have results:
POST /GDATADEC-1/invoice/_search
{"query": {
"query_string" : {
"query" : "mantenimie fer*"
}
}
}
The context :
Our mapping :
{
"invoice": {
"_source" : {
"excludes" : []
},
"_timestamp": {
"enabled": true,
"format": "dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ"
},
"dynamic": "strict",
"properties": {
"idfactura": {
"type": "integer",
"doc_values": true,
"null_value": -1,
"index" : "not_analyzed"
},
"cliente": {
"properties": {
"cif": {
"type": "string",
"null_value" : "",
"analyzer" : "ddol_analyzer",
"index_options": "docs",
"boost": 2,
"include_in_all": true
},
"direccion": {
"type": "string",
"null_value" : "",
"analyzer" : "ddol_analyzer",
"index_options": "docs",
"boost": 1.5,
"include_in_all": true
},
"idcliente": {
"type": "integer",
"doc_values": true,
"index" : "not_analyzed"
},
"razonsocial": {
"type": "string",
"null_value" : "",
"boost": 2,
"include_in_all": true,
"analyzer" : "ddol_analyzer",
"index_options": "docs",
"fields" : {
"raw":{
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}
}
}
Our analyzer: (we try with the default analyzer and we have the same
results.... no results on the query
{
"analysis": {
"analyzer": {
"ddol_analyzer": {
"type": "custom",
"tokenizer": "whitespace",
"filter": ["lowercase"]
}
}
}
}
Thanks
--
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/efeb1b61-5637-451a-a2fd-ada63d0ab60c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.