Hi Mike.

Thanks for your reply, but seems that I haven't expressed myself clearly.
Here I go:

I want that when I search for "butter" all words containing "butter" (like
"buttered", "butters" ...) are highlighted.

I'm using the PorterStemmerFilterFactory when indexing but not when
querying.

Regards,
Daniel


On 31/7/07 18:50, "Mike Klaas" <[EMAIL PROTECTED]> wrote:

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


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                        

Reply via email to