I presume these all have different unique ids?
If you can address it at indexing time, then have a look at
https://issues.apache.org/jira/browse/SOLR-799
Otherwise, you might look at https://issues.apache.org/jira/browse/SOLR-236
On Feb 25, 2009, at 6:54 PM, Cheng Zhang wrote:
Is it possible to have Solr to remove duplicated query results?
For example, instead of return
<result name="response" numFound="572" start="0">
<doc> <str name="productGroup_t_i_s_nm">Wireless</str> </doc>
<doc> <str name="productGroup_t_i_s_nm">Wireless</str> </doc>
<doc> <str name="productGroup_t_i_s_nm">Wireless</str> </doc>
<doc> <str name="productGroup_t_i_s_nm">Video Games</str> </doc>
<doc> <str name="productGroup_t_i_s_nm">Video Games</str> </doc>
</result>
return:
<result name="response" numFound="572" start="0">
<doc> <str name="productGroup_t_i_s_nm">Wireless</str> </doc>
<doc> <str name="productGroup_t_i_s_nm">Video Games</str> </doc>
</result>
Thanks a lot,
Kevin
--------------------------
Grant Ingersoll
http://www.lucidimagination.com/
Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search