Re: High - Low field value?

2010-09-01 Thread kenf_nc

That's exactly what I want.  I was just searching the wiki using the wrong
terms.
Thanks!
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/High-Low-field-value-tp1402568p1403164.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: High - Low field value?

2010-09-01 Thread Geert-Jan Brits
StatsComponent is exactly what you're looking for.

http://wiki.apache.org/solr/StatsComponent

<http://wiki.apache.org/solr/StatsComponent>Cheers,
Geert-Jan

2010/9/1 kenf_nc 

>
> I want to do range facets on a couple fields, a Price field in particular.
> But Price is relative to the product type. Books, Automobiles and Houses
> are
> vastly different price ranges, and withing Houses there may be a regional
> difference (price range in San Francisco is different than Columbus, OH for
> example).
>
> If I do Filter Query on type, so I'm not mixing books with houses, is there
> a quick way in a query to get the High and Low value for a given field? I
> would need those to build my range boundaries more efficiently.
>
> Ideally it would be a function of the query, so regionality could be taken
> into account. It's not a search score, or a facet, it's more a function. I
> know query functions exist, but haven't had to use them yet and the 'max'
> function doesn't look like what I need.  Any suggestions?
> Thanks.
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/High-Low-field-value-tp1402568p1402568.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


High - Low field value?

2010-09-01 Thread kenf_nc

I want to do range facets on a couple fields, a Price field in particular.
But Price is relative to the product type. Books, Automobiles and Houses are
vastly different price ranges, and withing Houses there may be a regional
difference (price range in San Francisco is different than Columbus, OH for
example). 

If I do Filter Query on type, so I'm not mixing books with houses, is there
a quick way in a query to get the High and Low value for a given field? I
would need those to build my range boundaries more efficiently. 

Ideally it would be a function of the query, so regionality could be taken
into account. It's not a search score, or a facet, it's more a function. I
know query functions exist, but haven't had to use them yet and the 'max'
function doesn't look like what I need.  Any suggestions?
Thanks.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/High-Low-field-value-tp1402568p1402568.html
Sent from the Solr - User mailing list archive at Nabble.com.