> So here is the problem, I have a requirement to implement
> search by a
> person name.
> Names consist of
> - first name
>  - middle name
> - last name
> - nickname
> 
> there is a list of synonyms which should be applied just for
> first name and
> middle name.
> 
> In search, all fields should be searched for the search
> keyword. That's why
> I thought
> maybe having an aggregate field - named 'name' - which keeps
> all fields - by
> copyField tag - can be used for search.
> 
> The problem is: how can I apply synonyms for first names and
> middle names,
> when I
> want to copy them into 'name' field?
> 
> If you know of any link which is for using Solr to search
> for names,
> I would appreciate if you let me know.

There is a flexible approach when you want to search over multiple fields 
having different field types. http://wiki.apache.org/solr/ExtendedDisMax
You just specify the list of fields by qf parameter. 

&defType=edismax&qf=firstName^1.2 middleName lastName^1.5 nickname

Reply via email to