solrsolrjmorelikethis

More like Solr Query filtering


I was trying to use the MLT (more like this) feature of SOLR but was stuck on how to use the filtering of related content. For e.g My documents in solr have following different categories sports, entertainment, funny, busiseness etc

I want related stuff (based on user query) for each category. Thus I would like to filter the MLT results of solr cased on category type. Can I somehow filter results?

If not possible, can I somehow use solr function query to make sure related stuff are grouped by category?

Thanks.


Solution

  • Need to define a /mlt request handler and then use fq= for filterting the query for MLT