On 31-Jul-07, at 9:41 AM, Daniel Alheiros wrote:

Hi

I've started using highlighting and there is something that I consider a bit odd... It may be caused by the way I'm indexing or querying I'm sure, but
just to avoid doing a huge number of tests...

I'm querying for "butter" and only exact matches of butter are returning highlighted, when I change my query to "butters" it returns both "butter" and "butters" highlighted. Is it something that considers the word and it's
reductions but not match a word that contains the word in the query?

This is because the example Solr distribution is configured to do stemming (see the definition for "text" fieldtype in schema.xml).

Remove PorterStemmerFilterFactory to do exact(er) searching/ highlighting only.

-Mike

Reply via email to