Re: synonyms not working with copyfield

2010-05-13 Thread surajit

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]
 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.


Re: synonyms not working with copyfield

2010-05-13 Thread surajit

Thanks much! I added a synonym filter to the copyfield and it started working
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,
search against the individual fields instead of the copyfield, but I want to
return a match only if ALL terms in the query are matched in the overall
document (as in an AND) and if I search against individual fields I am not
sure of an easy way to figure out if all terms matched in the overall
document. Any ideas?

surajit
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/synonyms-not-working-with-copyfield-tp814108p815263.html
Sent from the Solr - User mailing list archive at Nabble.com.


synonyms not working with copyfield

2010-05-12 Thread surajit

I have indexed person names in solr using synonym expansion and am getting a
match when I explicitly use that field in my query (name:query). However,
when I copy that field into another field using copyfield and search on that
field, I don't get a match. Below are excerpts from schema.txt. I am new to
Solr and appreciate any help! Thanks.

Surajit


  




  





 









 



-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/synonyms-not-working-with-copyfield-tp814108p814108.html
Sent from the Solr - User mailing list archive at Nabble.com.