Hi,

You could use a copyField against all fields and then AND the query terms 
given. Quite restrictive but all terms would then have to be present to match.
I'm still a relative newbie to Solr so perhaps I'm horribly wrong.

Cheers

Nick

On 13 May 2010, at 18:18, surajit wrote:

> 
> Understood and I can work with that limitation by using separate
> fields during indexing. However, my search interface is just a text
> box like Google and I need to take the query and return only those
> documents that match ALL terms in the query and if I am going to take
> the query and match it against each field (separately), how do I get
> back documents matching all user terms? One soln I can think of is to
> take all the field-specific analysis out of solr and do it as a
> pre-process step, but want to make sure there isn't an alternative
> within Solr.
> 
> surajit
> 
> On Thu, May 13, 2010 at 12:42 PM, Chris Hostetter-3 [via Lucene]
> <ml-node+815302-427668360-263...@n3.nabble.com> wrote:
>> : which is good, but the different fields that I copy into the copyfield
>> need
>> : different analysis and I no longer am able to do that. I can, of course,
>> 
>> Fundementally, Solr can only apply a single analysis chain to all of
>> the text in a given field -- regardless of where it may be copied from.
>> if it didn't, there would be no way to get matches at query time.
>> 
>> the query analysis has to "make sense" for the index analysis, so it has
>> to be consistent.
>> 
>> 
>> 
>> -Hoss
>> 
>> 
>> 
>> ________________________________
>> View message @
>> http://lucene.472066.n3.nabble.com/synonyms-not-working-with-copyfield-tp814108p815302.html
>> To unsubscribe from Re: synonyms not working with copyfield, click here.
>> 
> 
> -- 
> View this message in context: 
> http://lucene.472066.n3.nabble.com/synonyms-not-working-with-copyfield-tp814108p815426.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to