lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tali Finelt" <TAL...@il.ibm.com>
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:

https://<HOST_NAME>:8983/solr/<NAME>/select?q=date:[2016-08-02T04:43:38Z 
TO 2016-08-02T05:43:38Z]&rows=10


I get the following results:

<response>
        <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 
2016-08-02T05:43:38Z]</str>
                        <str name="rows">10</str>
                </lst>
        </lst>
        <result name="response" numFound="325313" start="0" 
maxScore="1.0">
                +<doc></doc>
                +<doc></doc>
                +<doc></doc>
                +<doc></doc>
                +<doc></doc>
                +<doc></doc>
                +<doc></doc>
        </result>
</response>

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?


Thanks,
Tali





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