Lucene - Core
  1. Lucene - Core
  2. LUCENE-1993

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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
        Christian Steinert added a comment -

        suggested patch against current SVN head

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

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

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

        Thanks Christian!

        Show
        Michael McCandless added a comment - Thanks Christian!

          People

          • Assignee:
            Michael McCandless
            Reporter:
            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