lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Klaas" <mike.kl...@gmail.com>
Subject Re: Multi column search...
Date Wed, 03 Jan 2007 23:27:13 GMT
On 1/3/07, escher2k <escher2k@yahoo.com> wrote:
>
> What is the syntax to use to specify a search across multiple across fields
> in a URL ?
> This is in case someone needs to alter the "searchable" fields dynamically
> as opposed to
> reading them at server startup from "qf" in solrconfig.xml. Also, it is
> easier at debug time :)

As always, it depends on the request handler you are using.
StandardRequest handler only accepts a default field (df) parameter.
However, its query string accepts the full range of valid lucene
queries:

e.g.
...?q=title:foo content:foo: author:bar category:(bar AND baz)

See the Lucene QueryParser documentation for more details.

If you are using dismax, just provide a qf and/or pf parameter.

-Mike

Mime
View raw message