You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by sidhant92 <si...@hotmail.com> on 2016/11/02 20:04:13 UTC

Lucene Taxonomy Faceting

How Can i achieve the following:

Suppose i have the following set of documents

{
  "id": "1"
  "type": "abc"
},
{
  "id": "2"
  "type": "abc"
},
{
  "id": "2"
  "type": "abc"
},
{
  "id": "3"
  "type": "abc"
}
Using a taxonomy index in lucene in facets i can get the count during search
that gives count of documents of type abc as 4. But here what i really want
is that as the id: 2 is repeated in two documents i want the count of type
abc as 3 instead of 4. So how can i achieve this using taxonomy search?

I already have 3-4 facet fields and im getting correct facets using the
standard facets collector and FastTaxonomyFacetCounts but here in this count
i need them grouped. How is that possible.



--
View this message in context: http://lucene.472066.n3.nabble.com/Lucene-Taxonomy-Faceting-tp4304228.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org