I was just looking at Mark Miller's Qsol parser for Lucene (
http://www.myhardshadow.com/qsol.php), and my users would really like to
have a similar ability to combine proximity and boolean search in arbitrary,
nested ways. The simplest use case I'm interested in is "phrase proximity",
where you say something like, "find me the docs where 'red hat' occurs
within ten words of 'microsoft windows'". Qsol lets you do more complicated
queries than that, though.

I'm thinking that maybe the most straightforward way to bring these
abilities to Solr would be to create a QParserPlugin that used Qsol itself
for the query parsing. Is this plausible? Has anyone actually done it
already? (If not Qsol, has anyone done one for surround, or xmlqueryparser,
or created a custom plugin that at least exposes some SpanQuery-based
functionality?) I'm looking at LuceneQParserPlugin/SolrQueryParser, and
they're not zero-thought wrappers around Lucene's QueryParser class, but
they're not that complicated either. Any intuition whether Qsol would be a
similar level of difficulty?

Reply via email to