lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Klaas <>
Subject Re: Highlighting question
Date Tue, 31 Jul 2007 17:50:45 GMT

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.


View raw message