Skip to content
Demonstration of using offsets in a Solr Highlighter Formatter
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
pom.xml

README.md

offset highlighter concept

Lucene Hackday September 2019

This code demonstrates adding offsets to a highlighter formatter.

This plugin provides an OffsetFormatter which supports pre tags with $score and $offset placeholders. If these placeholders are included in the tag they will be replaced with the tokengroup score and offset for the matching text.

To build the plugin run mvn package, check out the test configuration files for an idea of how to get set up in an actual solr instance.

You can’t perform that action at this time.