I'm seeing the following paging issue on 0.90 that we weren't seeing on
0.20.6
I have a query with size set to 2 and from set to 0 that returns the
documents: [ docA, docB ]
When I change the size to 1 the result set is [ docB ]
When I query with {size: 1, from: 1} I get [ docB ] again.
I would expect that {size: 1, from: 0} would return [ docA ] ?
Both docA and docB have a _score of 1. The query orders descending on
_score first and then sorts ascending on a document field (string). The
sort field of document A should come before the sort field of document B.
Some details:
Number of shards: 1
Number of hits for the query: 2 (the 2 documents are the only hits)
On Monday, May 20, 2013 7:19:09 PM UTC+2, Simon Gaeremynck wrote:
Hello,
I'm seeing the following paging issue on 0.90 that we weren't seeing on
0.20.6
I have a query with size set to 2 and from set to 0 that returns the
documents: [ docA, docB ]
When I change the size to 1 the result set is [ docB ]
When I query with {size: 1, from: 1} I get [ docB ] again.
I would expect that {size: 1, from: 0} would return [ docA ] ?
Both docA and docB have a _score of 1. The query orders descending on
_score first and then sorts ascending on a document field (string). The
sort field of document A should come before the sort field of document B.
Some details:
Number of shards: 1
Number of hits for the query: 2 (the 2 documents are the only hits)
On Monday, May 20, 2013 7:19:09 PM UTC+2, Simon Gaeremynck wrote:
Hello,
I'm seeing the following paging issue on 0.90 that we weren't seeing on
0.20.6
I have a query with size set to 2 and from set to 0 that returns the
documents: [ docA, docB ]
When I change the size to 1 the result set is [ docB ]
When I query with {size: 1, from: 1} I get [ docB ] again.
I would expect that {size: 1, from: 0} would return [ docA ] ?
Both docA and docB have a _score of 1. The query orders descending on
_score first and then sorts ascending on a document field (string). The
sort field of document A should come before the sort field of document B.
Some details:
Number of shards: 1
Number of hits for the query: 2 (the 2 documents are the only hits)
On Monday, May 20, 2013 7:19:09 PM UTC+2, Simon Gaeremynck wrote:
Hello,
I'm seeing the following paging issue on 0.90 that we weren't seeing on 0.20.6
I have a query with size set to 2 and from set to 0 that returns the documents: [ docA, docB ]
When I change the size to 1 the result set is [ docB ]
When I query with {size: 1, from: 1} I get [ docB ] again.
I would expect that {size: 1, from: 0} would return [ docA ] ?
Both docA and docB have a _score of 1. The query orders descending on _score first and then sorts ascending on a document field (string). The sort field of document A should come before the sort field of document B.
Some details:
Number of shards: 1
Number of hits for the query: 2 (the 2 documents are the only hits)
On Monday, May 20, 2013 7:19:09 PM UTC+2, Simon Gaeremynck wrote:
Hello,
I'm seeing the following paging issue on 0.90 that we weren't seeing on
0.20.6
I have a query with size set to 2 and from set to 0 that returns the
documents: [ docA, docB ]
When I change the size to 1 the result set is [ docB ]
When I query with {size: 1, from: 1} I get [ docB ] again.
I would expect that {size: 1, from: 0} would return [ docA ] ?
Both docA and docB have a _score of 1. The query orders descending on
_score first and then sorts ascending on a document field (string). The
sort field of document A should come before the sort field of document B.
Some details:
Number of shards: 1
Number of hits for the query: 2 (the 2 documents are the only hits)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.