Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2351

Allow the MoreLikeThis component to accept filters and use the already parsed query from previous stages (if applicable) as seed.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 4.9, 6.0
    • MoreLikeThis
    • None

    Description

      Currently the MLT component doesn't accept filter queries specified on the URL which my application needed (I needed to restrict similar results by a lat/long bounding box). This patch also attempts to solve the issue of allowing the boost functions of the dismax to be used in the MLT component by using the query object created by the QueryComponent to OR with the query created by the MLT as part of the final query. In a blank dismax query with no query/phrase clauses, this works although a separate BF definition/parsing would be ideal.

      Attachments

        1. mlt.patch
          4 kB
          Amit Nithian

        Activity

          People

            Unassigned Unassigned
            anithian Amit Nithian
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: