lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: search in all fields for multiple values?
Date Tue, 15 Dec 2009 12:19:18 GMT
On Tue, Dec 15, 2009 at 5:35 PM, Faire Mii <faire.mii@gmail.com> wrote:

> i have two fields:
>
> title
> body
>
> and i want to search for two words
>
> dog
> OR
> cat
>
> in each of them.
>
> i have tried q=*:dog OR cat
>
> but it doesnt work.
>
> how should i type it?
>
> PS. could i enter default search field = ALL fields in schema.xml in
> someway?
>

See
http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_search_for_.22superman.22_in_both_the_title_and_subject_fields

You can also create a copyField to which you can copy both title and body
and specify that as the default search field.

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message