Hi,

I have some issue with a filtered query. If I use the query:
 "query": {
      "query_string": {
             "query": "uri:video\\-ondemand\/video\/flv\/test\/*"
        }
  }

I get the results as exspected. But if I use it as a filtered query

{
"query":{
"filtered": {
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "very complex string"
}
}
]
}
},
"_cache": "false",
"filter": {
"bool": {
"must": [
{
"fquery": {
"query": {
"query_string": {
"query": "uri:video\\-ondemand\/video\/flv\/test\/*"
}
}
}
},
{
"range": {
"@timestamp": {
"from": "2014-12-01T00:00:00.000+01",
"to": "2014-12-01T23:59:59.999+01"
}
}
}
]
}
}
}
},
"sort": {"@timestamp": {"order": "asc"}}
}

I get results with other values in uri: example 
"video-ondemand/event/mp4/....."
If I move the uri query in the first query string  (addes AND 
uri:video\\-ondemand\/video\/flv\/test\/*) then I get no results.
The uri is an not_analyzed string.

Anyone an idea why it dosnt work?

best regards
Messias

-- 
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/35c4d535-2cf3-4eb5-8e0c-4042b7c71694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to