Using RavenDB to do a query on Lucene Index.
This query parses okay:
X:[[a]] AND Y:[[b]] AND Z:[[c]]
However this query gives me a parse exception:
X:[[a]] AND Y:[[b]] AND Z:[[c]] AND P:[[d]]
"Lucene.Net.QueryParsers.ParseException: ...
I am getting the problem when I combine multiple queries with the Boolean Query of Lucene.net (version 2.9).
Please see the document structure which I indexed.
In my project i was implementing a full text index search using Lucence. But while doing this i was stuck up with a logic of differentiating Lucene boolean operators from Normal ...
State NEAR (biha* NOT bihar) which expands to base {Lucene.Net.Search.Query} = {spanNear([contents:state, spanNot(SpanRegexQuery(contents:biha.*), contents:bihar)], 10, False)}