Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1993

MoreLikeThis - allow to exclude terms that appear in too many documents (patch included)

    Details

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

      Description

      The MoreLikeThis class allows to generate a likeness query based on a given document. So far, it is impossible to suppress words from the likeness query, that appear in almost all documents, making it necessary to use extensive lists of stop words.

      Therefore I suggest to allow excluding words for which a certain absolute document count or a certain percentage of documents is exceeded. Depending on the corpus of text, words that appear in more than 50 or even 70% of documents can usually be considered insignificant for classifying a document.

      1. MoreLikeThis.java.patch
        3 kB
        Christian Steinert

        Activity

        Hide
        csteinert Christian Steinert added a comment -

        suggested patch against current SVN head

        Show
        csteinert Christian Steinert added a comment - suggested patch against current SVN head
        Hide
        mikemccand Michael McCandless added a comment -

        Patch looks good... I'll commit shortly.

        Show
        mikemccand Michael McCandless added a comment - Patch looks good... I'll commit shortly.
        Hide
        mikemccand Michael McCandless added a comment -

        Thanks Christian!

        Show
        mikemccand Michael McCandless added a comment - Thanks Christian!

          People

          • Assignee:
            mikemccand Michael McCandless
            Reporter:
            csteinert Christian Steinert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 10m
              10m
              Remaining:
              Remaining Estimate - 10m
              10m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development