I have no idea but for sure, I'd prefer using a term filter on uri field and I 
would not set _cache.
 But may be you could GIST a full example we can reproduce?

David

> Le 26 janv. 2015 à 08:47, Messias <torsten.schub...@gl-systemhaus.de> a écrit 
> :
> 
> 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 elasticsearch+unsubscr...@googlegroups.com.
> 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.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/31249962-CA2B-41DD-90B5-F2827255215B%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to