Solr
  1. Solr
  2. SOLR-595

support field level boosting to morelikethis handler.

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: search
    • Labels:
      None

      Description

      Allow boosting to be specified for particular fields when using more like this.

      1. Parse out "mlt.qf parameters" to get boosts in dismax like format (existing code from DisMax param parse code used to produce a Map<String,Float>)
      2. Iterate through mltquery terms, get boost by looking at field from which mltquery term came, and multiply boost specified in map by existing term boost.
      • If mlt.boost=false, then you get the same boost values as in map/mlt.qf parameters,
      • If mlt.boost=true then you get normalized boost multiplied by specified boost (which makes sense to me).
      1. SOLR-595.patch
        8 kB
        Thomas Morton

        Activity

        Hide
        Thomas Morton added a comment -

        patch to add functionality and unit tests.

        Show
        Thomas Morton added a comment - patch to add functionality and unit tests.
        Hide
        Grant Ingersoll added a comment -

        Committed revision 668638.

        Made one minor change from the patch, to check to see if the boostFields is non-empty before looping over all the query clauses.

        Show
        Grant Ingersoll added a comment - Committed revision 668638. Made one minor change from the patch, to check to see if the boostFields is non-empty before looping over all the query clauses.

          People

          • Assignee:
            Grant Ingersoll
            Reporter:
            Thomas Morton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 3h
              3h
              Remaining:
              Remaining Estimate - 3h
              3h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development