On 13-Feb-08, at 6:11 PM, Leonardo Santagada wrote:


On 13/02/2008, at 23:03, Mike Klaas wrote:


On 13-Feb-08, at 4:18 PM, Leonardo Santagada wrote:

Thanks but I would like to be able to:

q=<query>
qf=field1
q=<query2>
qf=field2
...

Try using standardrequesthandler with the dismax query parser.


How can I say to standardrequesthandler to apply each query string to a diferent field, and how can I conbine the two on the config xml? A little example would be cool.

I don't see how you could pre-configure this in solrconfig.xml: how do you specific which querystring gets sent to which field?

Just send the query to stdreq handler as follows:

q=field1:<query1> field2:<query2>

see http://wiki.apache.org/solr/SolrQuerySyntax

-Mike

Reply via email to