You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jérôme Etévé <je...@eteve.net> on 2007/06/29 20:17:12 UTC

MultifieldSolrQueryParser ?

Hi,
 Solr uses a default query parser which is a SolrQueryParser based on
a org.apache.lucene.queryParser.QueryParser;

I wonder which is the best way to make the IndexSchema use some kind
of MultifieldSolrQueryParser which could be based on a
org.apache.lucene.queryParser.MultiFieldQueryParser for per field
boost factor.

Thank you for any help !

Jerome.

-- 
Jerome Eteve.
jerome@eteve.net
http://jerome.eteve.free.fr/

Re: MultifieldSolrQueryParser ?

Posted by Chris Hostetter <ho...@fucit.org>.
:  Solr uses a default query parser which is a SolrQueryParser based on
: a org.apache.lucene.queryParser.QueryParser;
:
: I wonder which is the best way to make the IndexSchema use some kind
: of MultifieldSolrQueryParser which could be based on a
: org.apache.lucene.queryParser.MultiFieldQueryParser for per field
: boost factor.

The SolrQUeryParser is used by the StandaredRequestHandler for the "q"
param, but the DisMaxrequestHandler uses a custom query parser that does
pretty much exactly waht you describe -- without any of the quirky
limitations that the MultiFieldQueryParser has -- mainly because it
supports a much simpler syntax that avoids those quirks...

http://wiki.apache.org/solr/DisMaxRequestHandler




-Hoss