Sounds like you need to develop your own post filter collector. In this collector you can get value for your field cat_id by document id, store it in collection and filter out documents which values are presented in this collection. It similar with http://lucidworks.com/blog/custom-security-filtering-in-solr/ , but other custom logic.
20.01.2015, 00:25, "vit" <bulgako...@yahoo.com>: > Unfortunately grouping will not work here since my field is multi-valued. > So I need another solution. > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Distinct-Results-from-Solr-Query-tp4180471p4180499.html > Sent from the Solr - User mailing list archive at Nabble.com.