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

IndexOutOfBoundsException from QueryParser

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • core/queryparser
    • None
    • Operating System: other
      Platform: PC

    • 7088

    Description

      Version - 1.2 RC4

      It looks like the query parser throws this exception when one of the terms is a
      single character.

      search expression fed to query parser: x AND test

      java.lang.ArrayIndexOutOfBoundsException: -1 < 0
      at java.util.Vector.elementAt(Vector.java:427)
      at org.apache.lucene.queryParser.QueryParser.addClause(Unknown Source)
      at org.apache.lucene.queryParser.QueryParser.Query(Unknown Source)
      at org.apache.lucene.queryParser.QueryParser.parse(Unknown Source)
      at org.apache.lucene.queryParser.QueryParser.parse(Unknown Source)

      Attachments

        Activity

          People

            java-dev@lucene.apache.org Lucene Developers
            jjayaprasad@participate.com Jay Jayaprasad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: