Re: Distinct elements in a field

2011-09-16 Thread swiss knife
I could get this number by using

 group.ngroups=truegroup.limit=0

 but doing grouping for this seems like an overkill

 Would you advise using JIRA SOLR-1814 ?

- Original Message -
From: swiss knife
Sent: 09/15/11 12:43 PM
To: solr-user@lucene.apache.org
Subject: Distinct elements in a field

 Simple question: I want to know how many distinct elements I have in a field 
and these verify a query. Do you know if there's a way to do it today in 3.4. I 
saw SOLR-1814 and SOLR-2242. SOLR-1814 seems fairly easy to use. What do you 
think ? Thank you


Distinct elements in a field

2011-09-15 Thread swiss knife
Simple question: I want to know how many distinct elements I have in a field 
and these verify a query. Do you know if there's a way to do it today in 3.4.

 I saw SOLR-1814 and SOLR-2242.

 SOLR-1814 seems fairly easy to use. What do you think ? Thank you


Dynamic price ranges and groups

2011-09-06 Thread swiss knife
Hello,

 If I understand correctly,

 1) to get the number of matches per price intervals in Solr, here are the 
different ways one can use:

*  per static price intervals: 

*  facet.range
*  facet.query
*  per dynamic price intervals 

*  there is Solr JIRA to get dynamic facet intervals:
Solr JIRA 1581: Facet by function 
https://issues.apache.org/jira/browse/SOLR-1581 
 2) To get only price min and price max on a specific field for the whole index:

*  StatsComponent
 3) Now my question is: I can get result grouping work OK with Solr 3.3, but 
how to get price min and max on each group (group=true). Is there a Solr JIRA 
associated with it ?
Lucene JIRA 3097: Post group faceting does 
https://issues.apache.org/jira/browse/LUCENE-3097  presents results in global 
facets and not in per group results.
 Thank you.