elasticsearch/elasticsearch.github.com — Issue #121: Sorting omits results
Author: joshcutler
Created: 2011-12-16 05:45:08+00:00
State: open

I am wondering why this might be and if it is intended behavior how I can work around it.

For example I have an elasticsearch db setup and the following two queries return different sized result sets:

"{\"sort\":[],\"filter\":{\"and\":[{\"terms\":{\"owner_ids\":[7]}},{\"term\":{\"team_id\":230}}]},\"size\":100,\"from\":0}"

This has ~60 results

{"sort":[{"intNumber":"asc"}],"filter":{"and":[{"terms":{"owner_ids":[7]}},{"term":{"team_id":230}}]},"size":100,"from":0}

This has ~40 results

The intNumber index mapping is defined as an integer with index not_analyzed. I am using Tire as an interface from ruby but tried it manually just to verify.

Thanks,
-=Josh