In addition to the other replies, do be careful about "string" types. It's
probably not what you want as it indexes the entire input as a single
token. For instance, indexing "great expectations" as a string type
would NOT get you a hit when searching for "great". Think about
a text type instead...

And you can certainly construct queries like q=title:great AND
description:great

Or the dismax would work for you as others suggested.

See defaultOperator in schema.xml, it is applied automatically unless
you override.

Best
Erick

On Fri, Nov 12, 2010 at 6:32 AM, PeterKerk <vettepa...@hotmail.com> wrote:

>
> 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.
>
> Is that correct and if so, how would I do that?
>
> Thanks!
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/full-text-search-in-multiple-fields-tp1888328p1888328.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to