| Package | Description |
|---|---|
| de.digitalcollections.solrocr.formats | |
| de.digitalcollections.solrocr.formats.mini | |
| de.digitalcollections.solrocr.lucene | |
| de.digitalcollections.solrocr.util |
| Modifier and Type | Method and Description |
|---|---|
OcrSnippet[] |
OcrPassageFormatter.format(org.apache.lucene.search.uhighlight.Passage[] passages,
IterableCharSequence content)
Format the passages that point to subsequences of the document text into
OcrSnippet instances |
protected OcrSnippet |
OcrPassageFormatter.parseFragment(String ocrFragment,
String pageId)
Parse an
OcrSnippet from an OCR fragment. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
OcrPassageFormatter.addHighlightsToSnippet(List<List<OcrBox>> hlBoxes,
OcrSnippet snippet) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MiniOcrPassageFormatter.addHighlightsToSnippet(List<List<OcrBox>> hlBoxes,
OcrSnippet snippet) |
| Modifier and Type | Method and Description |
|---|---|
OcrSnippet[] |
OcrFieldHighlighter.highlightFieldForDoc(org.apache.lucene.index.LeafReader reader,
int docId,
IterableCharSequence content,
String pageId)
The primary method -- highlight this doc, assuming a specific field and given this content.
|
| Modifier and Type | Method and Description |
|---|---|
OcrSnippet[] |
OcrHighlightResult.getFieldSnippets(String field) |
| Modifier and Type | Method and Description |
|---|---|
void |
OcrHighlightResult.addSnippetsForField(String field,
OcrSnippet[] ocrSnippets) |
Copyright © 2019. All rights reserved.