balazs
unread,Aug 2, 2012, 2:27:40 PM8/2/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
It would be really nice if one could pass a Lucene Query directly to Raven. The idea being something like LuceneQuery<T, TIndexCreator>(Query luceneQuery). I think it would be a much cleaner solution that intercepting the Query in AbstractIndexQueryTrigger and modifying it, (or reparsing the original query entirely) within that trigger, allowing the caller to bypass all of the Raven query parsing logic if they really need to. I don't expect this would be used heavily, but it could be of real value to users who need low level control over the queries issued to Lucene. Unfortunately certain domains like legal research are given to different kinds of search than, say, a restaurant review site. In legal research you generally want to exhaust the set of all possible matches- "most relevant" or "best results" just doesn't cut it (though in 95% of other types of search, it does). Certain things that are really performance abusive, like wildcards in quoted phrases, at the beginnings or ends of words, phrases in proximity searches, and wildcards in proximity searches, are highly sough after and expected in such searches. Many of these types of requirements can be accommodated through manually constructing Lucene queries (in fact, we've already got code to do much of this). While we could certainly do this directly with Lucene.Net, Raven is extremely useful in managing documents and Lucene.Net itself, even if many of our queries would directly bypass it's query parser/generator.