Re: distinct records based on a field

2017-04-05 Thread Emir Arnautovic
org/confluence/display/solr/Result+Grouping) or maybe you can use facet pivoting and pivot on distinct field to get number of doc in each if needed (https://cwiki.apache.org/conf luence/display/solr/Faceting#Faceting-Pivot(DecisionTree)Faceting). You might also want to explore JSON facet API.

Re: distinct records based on a field

2017-04-05 Thread Joel Bernstein
u can use facet pivoting and pivot on distinct field to get > number > > of doc in each if needed (https://cwiki.apache.org/conf > > luence/display/solr/Faceting#Faceting-Pivot(DecisionTree)Faceting). > > > > You might also want to explore JSON facet API. > > > &g

Re: distinct records based on a field

2017-04-05 Thread VJ
ct field to get number > of doc in each if needed (https://cwiki.apache.org/conf > luence/display/solr/Faceting#Faceting-Pivot(DecisionTree)Faceting). > > You might also want to explore JSON facet API. > > HTH, > Emir > > > > On 05.04.2017 13:08, VJ wrote: > &g

Re: distinct records based on a field

2017-04-05 Thread Emir Arnautovic
#Faceting-Pivot(DecisionTree)Faceting). You might also want to explore JSON facet API. HTH, Emir On 05.04.2017 13:08, VJ wrote: Hi, Is there any way to pass only distinct records (based on a field) out of a solr query? I want to facet the records based on a field but want to restrict the results

Re: distinct records based on a field

2017-04-05 Thread Binoy Dalal
Faceting will by default only get the distinct records. On Wed 5 Apr, 2017, 16:38 VJ, <jain02...@gmail.com> wrote: > Hi, > > > Is there any way to pass only distinct records (based on a field) out of a > solr query? > I want to facet the records based on a fi

distinct records based on a field

2017-04-05 Thread VJ
Hi, Is there any way to pass only distinct records (based on a field) out of a solr query? I want to facet the records based on a field but want to restrict the results to distinct records before applying the facet. Thanks, VJ