Hello,

My problem is that I have a not_analyzed field and I'm doing a query_string 
query over it searching the first word of the field. That query doesn't 
return anything. It can be reproduced doing the next steps:

1. Create an index with the next mapping: http://pastebin.com/Bz4qxEDS

2. Index an object at the index "test1" with the next json: 
{"TextProperty": "This-is-a-test-property"}

3. Make the next query: {"query": {"bool": {"must": [{"query_string": 
{"default_field": "TextProperty","query": "*This*"}}]}}}

The query does not return anything. But if I change the query for "*his*" 
it doues return the object previously indexed.

I'm doing this query because I want to make a query that returns every 
result that "contains" the value I'm searching. I don't know if it's normal 
that over not_indexed fields the query string queries don't work as 
expected or maybe I should make another kind of query or anything else. The 
point is that that query does not work.

I'm open to any solution.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/62651c7b-9f07-4f1e-b0e6-4326d83b3d7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to