Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CF Solr Only Highlighting a Set Amount of Characters

New Here ,
Mar 14, 2011 Mar 14, 2011

I am currently using CF 9.0.1 with the CFH 9.0.1 on Windows 7 with Apache 2.2

It seems that solr (being used thru CF) only highlights a certain amount of characters from a collection created from a query.  I have tried increasing contextbytes and contextpassages to no avail.  I have followed the instructions provided for fixing highlighting by changing 
<str name="hl.fl">summary title </str> to 
<str name="hl.fl">contents title </str> in the solrconfig.xml and
<field name="contents" type="text" indexed="true" stored="false" required="false" multiValued="true" omitNorms="true"/> to

<field name="contents" type="text" indexed="true" stored="true" required="false" multiValued="true" omitNorms="true"/> in the schema.xml on the solr template folder, restarting the solr service, deleting, recreating, and reindexing the collection, which did not work.
I have also tried increasing the h1.fragsize to 100000000 in the GapFragmenter and also adding an h1.maxAnalyzedChars of 100000000 in the RegexFragmenter of the solrconfig,xml on the solr template folder, restarting the solr service, deleting, recreating, and reindexing the collection, which also did not work.

Is this a bug or am I doing something wrong?

Thank you.

371
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 14, 2011 Mar 14, 2011
LATEST

Correction:

Replace all h1 references by hl.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources