Pregunta

I am using solr to do a search. As result I get back a set of fields. One of the fields is "domains". The domain field is a many to many relationship in my database, so my docs contain an array of "domains" the are linked to.

What I want to do is, for each domain in the resultset, count how many times this "domain term" is found in the global result set.

How should I do this ?

¿Fue útil?

Solución

You need to look at the Field collapsing feature.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top