Hello, What is the best way to remove duplicate values on output. I am using the following query:
/solr/select/?q=wrt54g2&version=2.2&start=0&rows=10&indent=on&*fl=productid* And I get the following results: <doc> <int name="productid">1011630553</int> </doc> <doc> <int name="productid">1011630553</int> </doc> <doc><int name="productid">1011630553</int> </doc> <doc><int name="productid">1011630553</int> </doc> <doc><int name="productid">1011630553</int> </doc> <doc><int name="productid">1011630553</int> </doc> <doc><int name="productid">1011630553</int> </doc> <doc><int name="productid">1013033708</int> </doc> <doc><int name="productid">1013033708</int> </doc> <doc><int name="productid">1013033708</int> </doc> But I don't want those results because there are duplicates. I am looking for results like below: <doc> <int name="productid">1011630553</int> </doc> <doc> <int name="productid">1013033708</int> </doc> I know there is deduplication and field collapsing but I am not sure if they are applicable in this situation. Thanks for your help!