On 9/21/07, Amitha Talasila <[EMAIL PROTECTED]> wrote:
> But when we make a facet query like,
> http://localhost:8983/solr/select?q=ipod&rows=0&facet=true&facet.limit=-1&fac
> et.query=weight:{0m TO 100m}, the facet count is coming as 0.We are indexing
> it as a string field because if the user searches for 12m he needs to see
> that result. Can anyone suggest a better way of querying this?

In a string field, 12m is greater than 100m, so won't be in the range.
You need to index that field as a numeric type where range queries
work: use type sint or sfloat.

As for the "m", you should have a frontend that allows input in the
form desire and converts it to a valid query to solr.

-Yonik

Reply via email to