: Highlighter not working on some documents
Probably the most common reason is the default hl.maxAnalyzedChars -- thus your
highlightable text might not be in the first 51200 chars of text. The first
Solr release with the unified highlighter had an even lower default of 10k
chars.
On Fri, Jun 9
@gmail.com]
> Sent: Saturday, 10 June 2017 6:22 a.m.
> To: solr-user
> Subject: Re: Highlighter not working on some documents
>
> Need lots more information. I.e. schema definitions, query you use,
> handler configuration and the like. Note that highlighted fields must have
>
: Saturday, 10 June 2017 6:22 a.m.
To: solr-user
Subject: Re: Highlighter not working on some documents
Need lots more information. I.e. schema definitions, query you use, handler
configuration and the like. Note that highlighted fields must have
stored="true" set and likely the _text_ fie
documents that work are pulling body text
fragments, not things stored in some other field.
-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: Saturday, 10 June 2017 6:22 a.m.
To: solr-user
Subject: Re: Highlighter not working on some documents
Need lots more i
Need lots more information. I.e. schema definitions, query you use,
handler configuration and the like. Note that highlighted fields must
have stored="true" set and likely the _text_ field doesn't. At least
in the default schemas stored is set to false for the catch-all field.
And you don't want to
Do a search with:
fl=id,title,datasource&hl=true&hl.method=unified&limit=50&page=1&q=pressure+AND+testing&rows=50&start=0&wt=json
and I get back a good list of documents. However, some documents are returning
empty fields in the highlighter. Eg, in the highlight array have:
"W:\\Reports\\OCR\\427