java.lang.IllegalArgumentException: queries.length != fields.length

Spring JIRA | Mike | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      queries.length != fields.length

      at org.apache.lucene.queryParser.MultiFieldQueryParser.parse()
    2. Lucene
      MultiFieldQueryParser.parse
      1. org.apache.lucene.queryParser.MultiFieldQueryParser.parse(MultiFieldQueryParser.java:209)
      1 frame
    3. org.springmodules.lucene
      DefaultLuceneSearchTemplate.search
      1. org.springmodules.lucene.search.core.ParsedQueryCreator.createQuery(ParsedQueryCreator.java:58)
      2. org.springmodules.lucene.search.core.DefaultLuceneSearchTemplate.createQuery(DefaultLuceneSearchTemplate.java:153)
      3. org.springmodules.lucene.search.core.DefaultLuceneSearchTemplate.search(DefaultLuceneSearchTemplate.java:160)
      3 frames