lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tali Finelt" <>
Subject Solr date range returns wrong number of results
Date Thu, 18 Aug 2016 07:43:25 GMT
Hi All,

I am using Solr 6 in SolrCloud mode and trying to filter results according 
to a date range. 

The date field is defined as following in the managed_schema file:
<field name="date" type="date" indexed="true" stored="true" 
required="false" multiValued="false" />

When I run the following query:

TO 2016-08-02T05:43:38Z]&rows=10

I get the following results:

        <lst name="responseHeader">
                <bool name="zkConnected">true</bool>
                <int name="status">0</int>
                <int name="QTime">20</int>
                <lst name="params">
                        <str name="q">date:[2016-08-02T04:43:38Z TO 
                        <str name="rows">10</str>
        <result name="response" numFound="325313" start="0" 

For some reason, I only get 7 documents back and not 10 as I asked  (by 
parameter "rows=10").
I know there are more then 7 documents according to the "numFound" 
parameter  (=325313)

This problem persists on different date ranges I query on. 
This does not happen when I filter on other fields in my schema. 

What am I doing wrong?
How can I get 10 results back?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message