Hi,
I have noticed if I use
{
"query" : {
"query_string" : {
"query" : "userid >= 100"
}
}
}
then I get 125 results (correctly):
hits: {
total: 125
max_score: 0.6850374
hits: [
{
_index: events
_type: folderid
_id: 66
_source: {
<snip>
userid: 100
type: ADDFOLDER
organisationid: 100
accountid: 400
}
}
However, if I use
{
"query" : {
"query_string" : {
"query" : "userid > 100"
}
}
}
ie, just removing the '=', I get 6 results, and the userid is exactly 100:
hits: {
total: 6
max_score: 0.42181164
hits: [
{
_index: events
_type: versionid
_id: 66
_source: {
<snip>
userid: 100
type: ADDFOLDER
organisationid: 100
accountid: 400
}
}
...
As an aside, "userid>=100" (no spaces) also just returns 6 results, with
userid as 100.
Any clues as to what is going on would be appreciated!
thanks
chris
--
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.