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

        Christian Steinert created issue -
        Hide
        Christian Steinert added a comment -

        suggested patch against current SVN head

        Show
        Christian Steinert added a comment - suggested patch against current SVN head
        Christian Steinert made changes -
        Field Original Value New Value
        Attachment MoreLikeThis.java.patch [ 12422548 ]
        Michael McCandless made changes -
        Assignee Michael McCandless [ mikemccand ]
        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!
        Michael McCandless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.0 [ 12312889 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12479794 ] Default workflow, editable Closed status [ 12562241 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12562241 ] jira [ 12583248 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 11m 1 Michael McCandless 20/Oct/09 13:00
        Resolved Resolved Closed Closed
        36d 4h 47m 1 Uwe Schindler 25/Nov/09 16:47

          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