Hi gurus,
I am having some issues with making the highlighting work properly. If I search
for a word in a "title" field and request a highlighted summary from another
"long_description" field, this works on some documents, but on some doesn't.
Have you seen anything like this before?
Exampl
> I am
> having some issues with making the highlighting work
> properly. If I search for a word in a "title"
> field and request a highlighted summary from another
> "long_description" field, this works on some
> documents, but on some doesn't. Have you seen anything
> like this before?
Default v
> > I am
> > having some issues with making the highlighting work
> > properly. If I search for a word in a "title"
> > field and request a highlighted summary from another
> > "long_description" field, this works on some
> > documents, but on some doesn't. Have you seen anything
> > like this bef
> The contents of the "long_description" field are actually
> pretty short - max. 2000 characters. But I've tried setting
> it to -1 as well, and still the same results.
Then we should confirm that long_description really contains term terminator.
What is numFound when you execute this query?
> Then we should confirm that long_description really contains term terminator.
>
> What is numFound when you execute this query?
>
> http://localhost:8983/solr/select?q=long_description:terminator&fl=sku,title,long_description&hl=true&hl.fl=long_description&fq=sku:10699058
The response is:
> > What is numFound when you execute this query?
> >
> > http://localhost:8983/solr/select?q=long_description:terminator&fl=sku,title,long_description&hl=true&hl.fl=long_description&fq=sku:10699058
>
> The response is: start="0">
>
> The odd thing is that if I do a search in the
> long_descri
>
> Interesting there is a parameter (hl.requireFieldMatch) about this but
> default
> value is false.
Interesting indeed! I have tried setting hl.requireFieldMatch manually to false
before - but no luck.
>
> Are you using some default highlighting parameters defined in solrconfig.xml?
> Y
> The title and long_description are almost the same. The
> only difference is that I've taken out the
> "solr.SnowballPorterFilterFactory" filter, so that the
> titles are not stemmed. I actually as part of the test
> before writing to this list I tried creating the type that
> has only the standa
>
> I mean solr's Http caching. When testing from browser I usually disable it
> with
> in solrconfig.xml.
I have enabled , changed the title field to be the
same "text" type, cleared the index, restarted and re-indexed and - it works!
I then changed the title field back to the "text" type