I have the following situation when using Solr 4.3. 
My document contains "entities" for example "peanut butter". I have a list
of such entities. These are items that go together and are not to be treated
as two individual words. During indexing, I want solr to realize this and
treat "peanut butter" as an entity. For example if someone searches for

"peanut"

then documents that have the word peanut should rank higher than documents
that have the word "peanut butter". However if someone searches for

"peanut butter"

then the document that has peanut butter should show up higher than ones
that have just peanut. Is there a config setting somewhere which can be
modified such that the entity list can be specified in a file and Solr would
do the needful?

Should I be using KeepWordFilterFactory for this? 

Any pointers will be much appreciated.
Thanks, 
-Manasi



--
View this message in context: 
http://lucene.472066.n3.nabble.com/entity-classification-solr-tp4082923.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to