--- On Fri, 11/12/10, PeterKerk <vettepa...@hotmail.com> wrote:
> From: PeterKerk <vettepa...@hotmail.com> > Subject: full text search in multiple fields > To: solr-user@lucene.apache.org > Date: Friday, November 12, 2010, 1:32 PM > > I want to provide a full text search function. > > This function has to search through the 2 fields: "title" > and "description" > that I have defined in my schema.xml (both of type > "string"). > > Now, since solr doesnt (by default) provide an or operator, > I thought I > should somehow combine these fields into 1 field and THEN > search that single > field. Yes you can do that with copyField. The field(s) should be solr.TextField. But http://wiki.apache.org/solr/DisMaxQParserPlugin can be more suitable in your case.