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

the contructor function of SynonymFilter can not report exception correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.6
    • 4.7.1, 4.8, 6.0
    • modules/analysis
    • None

    Description

      when use code
      SynonymFilter filter=new SynonymFilter(new WhitespaceTokenizer(Version.LUCENE_42, new StringReader("aa bb")), new SynonymMap.Builder(true).build(), true);
      create a filter,it throw NullPointerException but not IllegalArgumentException("fst must be non-null");

      Attachments

        Activity

          People

            mikemccand Michael McCandless
            xiaoshuai 帅广应
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: