Hi Jawahar,
I see you already did configure your long field using slong type. But have a
look a the comments:
<!-- Numeric field types that manipulate the value into
a string value that isn't human-readable in its internal form,
but with a lexicographic ordering the same as the numeric ordering,
so that range queries work correctly. -->
<fieldType name="slong" class="solr.SortableLongField"
sortMissingLast="true" omitNorms="true"/>
So go to the Analysis section of your Solr's admin interface, enter your query,
and you will see how your slong terms are treated during indexing and during
searching.
Otis
--
Lucene Consulting -- http://lucene-consulting.com/
----- Original Message ----
From: Jawahar Lal <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, July 18, 2007 9:07:48 AM
Subject: 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
>
>