lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Filtering a query by range returning unexpected results
Date Sun, 01 Jul 2012 00:49:44 GMT
This works fine for me with 3.6, float fields and even on a currency type.

I'm assuming a typo for 15.00.00 BTW.

I admit I'm not all that familiar with the "currency" type, which I infer you're
using given the "USD" bits. But I ran a quick test with currency types and
it worked at least the way I ran it... But another quick look shows that
some interesting things are being done with the "currency" type, so who knows?

So, let's see your relevant schema bits, and the results of your query
when you attach &debugQuery=on to it.....


On Fri, Jun 29, 2012 at 2:43 PM, Andrew Meredith <> wrote:
> First off, I have to say that I am working on my first project that has
> required me to work with Solr, so my question my be very elementary - I
> just could not find an answer elsewhere.
> I am trying to add a ranged query filter that returns all items in a given
> "prices" range. In my situation, each item can have multiple prices, so it
> is a multivalued field. When I search a range, say, prices:[15.00.00 TO
> 21.00], I want Solr to return all items that have *any* price in that
> range, rather than returning results where *all* prices are in the range.
> For example, if i have an item with the following prices, it will not be
> returned:
>   <arr name="prices">
>   <str>19.99,USD</str>
>   <str>22.50,USD</str>
>   </arr>
> Is there any way to change the behaviour of Solr so that it will match
> documents in which any value of a multivalued field matches a ranged query
> filter?
> Thanks!
> --
> <>
> S.D.G.

View raw message