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 Kalidoss MM <mm...@gmail.com> on 2009/03/11 16:14:41 UTC

query on defaultSearchField?

Hi,

1)
     Can i give by default defaultSearchField with multiple field values as
like
              <defaultSearchField>text, Tag, Category</defaultSearchField>

      Or should i use
      <copyField source="Tag" dest="text"/>
      <copyField source="Category" dest="text"/>

Thanks,
Kalidoss.m,

Re: query on defaultSearchField?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Mar 11, 2009, at 11:14 AM, Kalidoss MM wrote:
> 1)
>     Can i give by default defaultSearchField with multiple field  
> values as
> like
>              <defaultSearchField>text, Tag, Category</ 
> defaultSearchField>
>

No, but....

>      Or should i use
>      <copyField source="Tag" dest="text"/>
>      <copyField source="Category" dest="text"/>

that will work, or look into using the dismax parser where you can  
specify the fields to search and their boosts with the qf parameter.

	Erik