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 Lukas Kahwe Smith <ml...@pooteeweet.org> on 2010/01/18 14:58:09 UTC
multi field search
Hi,
I realize that I can copy all fields together into one multiValue field and set that as the defaultSearchField. However in that case I cannot leverage the various custom analyzers I want to apply to the fields separately (name should use doublemetaphone, street should use the world splitter etc.). I can of course also do an OR query as well. But it would be nice to be able to do:
q=*:foo
and that would simply search all fields against the query "foo".
regards,
Lukas Kahwe Smith
mls@pooteeweet.org
Re: multi field search
Posted by Sven Maurmann <sv...@kippdata.de>.
Hi,
you might want to use the Dismax-Handler.
Sven
--On Monday, January 18, 2010 02:58:09 PM +0100 Lukas Kahwe Smith
<ml...@pooteeweet.org> wrote:
> Hi,
>
> I realize that I can copy all fields together into one multiValue
> field and set that as the defaultSearchField. However in that case
> I cannot leverage the various custom analyzers I want to apply to
> the fields separately (name should use doublemetaphone, street
> should use the world splitter etc.). I can of course also do an OR
> query as well. But it would be nice to be able to do:
>
> q=*:foo
>
> and that would simply search all fields against the query "foo".
>
> regards,
> Lukas Kahwe Smith
> mls@pooteeweet.org