typically one simply escapes the symbols that have special
meaning in your syntax. In your example,
hot\(dog\) would indicate to the parser that the () characters
were to be interpreted as text rather than part of the query language.
Lucene uses javaCC to parse queries following grammar rules
Dear All
Was setting up a web search with a query language
that uses (, !, ), ^, *, ?, {, } and < in its syntax.
For example:
hot dog: Looks for documents with hot and
dog in close vincinity.
(hot dog): Looks for documents with hot or
dog in it.
This all