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

Brazilian Analyzer doesn't remove stopwords when uppercase is given

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9, 3.0
    • Fix Version/s: 2.9
    • Component/s: modules/analysis
    • Labels:
      None
    • Environment:

      not applicable

    • Lucene Fields:
      New

      Description

      The order of filters matter here, just need to apply lowercase token filter before removing stopwords

      result = new StopFilter( result, stoptable );
      result = new BrazilianStemFilter( result, excltable );
      // Convert to lowercase after stemming!
      result = new LowerCaseFilter( result );

      Lowercase must come before BrazilianStemFilter

      At the end of day I'll attach a patch, it's straightforward

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              qmx Douglas Campos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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