Yonik Seeley wrote:
On Feb 2, 2008 3:43 PM, Renaud Delbru <[EMAIL PROTECTED]> wrote:
I was looking at the discussion of SOLR-281. If I understand correctly,
the task would be to write my own search component class,
SpanQueryComponent that extends the SearchComponent class, then
overwriting the declaration of the "query searchComponent" in
solrconfig.xml:
<searchComponent name="query" class="my.package.SpanQueryComponent" />
Then, I will be able to use directly my own query syntax and query
component ? Is it correct ?

You could, but that would be the hard way (by a big margin).
There are pluggable query parsers now (see QParserPlugin)... but the
current missing piece is being able to specify a new parser plugin
from solrconfig.xml

-Yonik
I have looked at MoreLikeThisHandler.java. I saw that all the MoreLikeThis logics is defined inside the handler and through the inner class MoreLikeThisHelper. Could I follow the same approach and define a ProximityHandler class that execute Lucene SpanQuery based on some request parameters ? Is it the right way to do ?

Regards.

--
Renaud Delbru,
E.C.S., Ph.D. Student,
Semantic Information Systems and
Language Engineering Group (SmILE),
Digital Enterprise Research Institute,
National University of Ireland, Galway.
http://smile.deri.ie/

Reply via email to