Re: Query Formalism for Texts with Program Code

2010-10-28 Thread Erick Erickson
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

Query Formalism for Texts with Program Code

2010-10-28 Thread Jan Burse
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