Multi column search...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Multi column search...

escher2k
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 :)

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Multi column search...

Mike Klaas
On 1/3/07, escher2k <[hidden email]> 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