Hello, I am looking for some advice on how to index and search a field that contains a two character state name without the query parser dying on the OR and also not treating it as an 'OR' Boolean operator.
For example: The following query with a filter query key/value pair causes an exception: q=*:*&fq=(state:OR) Caused by: org.apache.lucene.queryParser.ParseException: Encountered " <OR> "OR "" at line 1, column 7. Was expecting one of: "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... "[" ... "{" ... <NUMBER> ... Note: we had the same issue with Indiana (IN), but removing that stop word fixed it. Removing the stopword 'or', has not helped. The field itself is indexed and stored as string field during indexing. <field name="state" type="string" indexed="true" stored="true"/> Thanks in advance, John Brewer