Lucene - Core
  1. Lucene - Core
  2. LUCENE-1272

Support for boost factor in MoreLikeThis

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      This is a patch I made to be able to boost the terms with a specific factor beside the relevancy returned by MoreLikeThis. This is helpful when having more then 1 MoreLikeThis in the query, so words in the field A (i.e. Title) can be boosted more than words in the field B (i.e. Description).

        Activity

        Hide
        Otis Gospodnetic added a comment -

        I don't see any harm in this, I'll make the change later this week.

        Show
        Otis Gospodnetic added a comment - I don't see any harm in this, I'll make the change later this week.
        Hide
        Otis Gospodnetic added a comment -

        Jonathan, would it be possible for you to update this patch to work with the trunk, so I can apply it? Thanks!

        Show
        Otis Gospodnetic added a comment - Jonathan, would it be possible for you to update this patch to work with the trunk, so I can apply it? Thanks!
        Hide
        Jonathan Leibiusky added a comment -

        Updated to work with trunk

        Show
        Jonathan Leibiusky added a comment - Updated to work with trunk
        Hide
        Michael McCandless added a comment -

        I'll take this one.

        Show
        Michael McCandless added a comment - I'll take this one.
        Hide
        Michael McCandless added a comment -

        Patch looks good. I'll just add copyright header to the new unit test, and change the "assertTrue" that compares the floating points boosts, to assertEquals w/ an epsilon. I'll commit shortly.

        Show
        Michael McCandless added a comment - Patch looks good. I'll just add copyright header to the new unit test, and change the "assertTrue" that compares the floating points boosts, to assertEquals w/ an epsilon. I'll commit shortly.
        Hide
        Michael McCandless added a comment -

        Thanks Jonathan!

        Show
        Michael McCandless added a comment - Thanks Jonathan!

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Jonathan Leibiusky
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development