You probably want to store these as numbers instead of text.  The
DataImportHandler allows you to take apart text blocks and save the
parts in number fields. The text analysis stack inside basic indexing
will not do this.

On Thu, May 27, 2010 at 7:24 AM, Koji Sekiguchi <k...@r.email.ne.jp> wrote:
>
>> Yes you are right, I get that type of result. I guess my wording was
>> wrong.
>> My field looks like this in the index:
>> <str name="Remuneration">R500,000-550,000 Per Annum</str>
>> <str name="Remuneration_strip">R500,000-550,000 Per Annum</str>
>>
>> How would I search for say salaries in the range of 500,000 - 550,000?
>> Trying fq=Rumeration_strip:500,000-550,00 doesn't bring back anything. I
>> must have something wrong.
>>
>>
>
> So you are not asking facet...
>
> For query syntax of range search, take a look at:
>
> http://lucene.apache.org/java/2_9_1/queryparsersyntax.html#Range%20Searches
>
> And you need to index the lower and upper salary to separate fields i.e.
>
> low:500000
> up:550000
>
> Then you can search the both of the fields e.g.
>
> q=low:[500000 TO *] AND up:[* TO 550000]
>
> Koji
>
> --
> http://www.rondhuit.com/en/
>
>



-- 
Lance Norskog
goks...@gmail.com

Reply via email to