You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jawahar Lal <jl...@chambal.com> on 2007/07/18 09:07:48 UTC

Searching Range query using Solr within myIndex

> Hi
>   I have an lucene index which contains size field. The size field
> contains long value indexed using NumberTools.longToString(longvalue). I
> want Solr to search range query with in this index.
>
>     To do so, I added
>  <field name="size" type="slong" indexed="true" stored="true"/> in the
> schema.xml file. Range query can be performed on slong type.
>
> Then I started jetty server and search the query +size:[10 To 10000].
> I am getting no docs although there are documents within the range of
> size.
>
> Please guide me what I am missing.
>
> Thanks
> Jawahar
>
>