lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damjan Cvetan <dam...@geneza.com.INVALID>
Subject Creating custom PassageFormatter
Date Wed, 27 Feb 2019 11:35:10 GMT
Dear all,

For our highlighting of search hits we are moving from Original Highlighter
to Unified Highlighter but we have the need to create our own
custom PassageFormatter.

Under Original Highlighter we already have our own formatter
which implements Formatter, FormatterWithOffsetPos. This new formatter is
defined under package org.apache.solr.highlight and configured for each
core in solrconfig.xml.

Now we are trying to do the same for Unified Highlighter and as I
understand it we need to create new PassageFormatter but when we are trying
to define the new formatter and link it to the class we getting the error
"org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
Error loading class 'solr.highlight.CustomPassageFormatter'".

Example from solrconfig.xml:
<formatter name="custom" default="false"
class="solr.highlight.CustomPassageFormatter">
</formatter>

I'm asking if this is still the right way? Is the "formatter" tag in XML
valid option for Unified Highlighter?

Thank you.

Kind regards,
  Damjan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message