Problem with query

Hi,
I have a problem with query:

{
"query": {
"filtered": {
"query": {
"query_string": {
"query": "(s7d89s789s) AND django_ct:("auth.user" OR
"pluto.organization")",
"default_operator": "AND",
"default_field": "text"
}
}
}
},
"from": 0,
"size": 20
}
This query return some result by filter django_ct, it's OK. But no result
contains word "s7d89s789s".
That is wrong?

Generator for this query is django-haystack, using AutoQuery.

Thanks
Martin

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

When I validate this query, it seems to be doing the right thing:

curl -XGET 'http://127.0.0.1:9200/test/_validate/query?pretty=1&explain=true'
-d '
{
"query_string" : {
"default_field" : "text",
"query" : "(s7d89s789s) AND django_ct:("auth.user" OR
"pluto.organization")",
"default_operator" : "AND"
}
}
'

{

"_shards" : {

"failed" : 0,

"successful" : 1,

"total" : 1

},

"explanations" : [

{

"index" : "test",

"explanation" : "+text:s7d89s789s +(django_ct:auth.user

django_ct:pluto.organization)",

"valid" : true

}

],

"valid" : true

}

Perhaps try the same validation query on your index? Perhaps the mapping is
different?

clint

--
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.
For more options, visit https://groups.google.com/groups/opt_out.