Are brackets, [ and ], legal in a query?
If so, do they have some special meaning?
If not, are there other "illegal" characters as well?
Parsing the query syntax, "[]", causes the following error:
Lexical error at line 1, column 3. Encountered: <EOF> after : "[]"
org.apache.lucene.queryParser.TokenMgrError: Lexical error at line 1, column
3. Encountered: <EOF> after : "[]"
at
org.apache.lucene.queryParser.QueryParserTokenManager.getNextToken(Unknown
Source)
at org.apache.lucene.queryParser.QueryParser.jj_ntk(Unknown Source)
at org.apache.lucene.queryParser.QueryParser.Modifiers(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)
I am using QueryParser and the StandardAnalyzer to parse the query string.
Any help would be appreciate.
Paul
--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
If so, do they have some special meaning?
If not, are there other "illegal" characters as well?
Parsing the query syntax, "[]", causes the following error:
Lexical error at line 1, column 3. Encountered: <EOF> after : "[]"
org.apache.lucene.queryParser.TokenMgrError: Lexical error at line 1, column
3. Encountered: <EOF> after : "[]"
at
org.apache.lucene.queryParser.QueryParserTokenManager.getNextToken(Unknown
Source)
at org.apache.lucene.queryParser.QueryParser.jj_ntk(Unknown Source)
at org.apache.lucene.queryParser.QueryParser.Modifiers(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)
I am using QueryParser and the StandardAnalyzer to parse the query string.
Any help would be appreciate.
Paul
--
To unsubscribe, e-mail: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>