lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Issue with range queries
Date Mon, 10 May 2010 14:29:33 GMT
> Hi all,
> 
> I have a problem with range queries on an integer field.
> (Solr 1.4)
> 
> In my index, myField contains values between 0 and 3000.
> 
> <field name="myField" type="pint" indexed="true"
> stored="true" required="false"/>
> 
> Here are a few samples to give you an idea of the problem:
> 
> fq=myField:[1 TO 1000] ... 0 results
> 
> fq=myField:[1 TO 999] ... 1288930 results
> 
> fq=myField:[1 TO 3000] ... 1288817 results
> 
> fq=myField:[1 TO 10000] ... 0 results
> 
> This makes no sense to me !
> 
> Any hints?

You need to use tint type for numeric range queries work correctly. 



      

Mime
View raw message