org.eaglei.search.provider.lucene
Class LuceneHighlightGenerator
java.lang.Object
org.eaglei.search.provider.lucene.LuceneHighlightGenerator
public final class LuceneHighlightGenerator
- extends java.lang.Object
Utility class that holds logic for computing highlights for SearchRequest matches against the Lucene index
created per LuceneSearchIndexSchema.
|
Method Summary |
protected static java.lang.String |
computeHighlight(org.apache.lucene.search.highlight.Highlighter highlighter,
org.apache.lucene.analysis.Analyzer analyzer,
org.eaglei.model.EIOntModel ontModel,
org.eaglei.search.provider.SearchRequest request,
org.apache.lucene.search.Query query,
org.apache.lucene.document.Document document,
org.eaglei.search.provider.SearchResult result)
Computes the highlight for a search request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneHighlightGenerator
public LuceneHighlightGenerator()
computeHighlight
protected static java.lang.String computeHighlight(org.apache.lucene.search.highlight.Highlighter highlighter,
org.apache.lucene.analysis.Analyzer analyzer,
org.eaglei.model.EIOntModel ontModel,
org.eaglei.search.provider.SearchRequest request,
org.apache.lucene.search.Query query,
org.apache.lucene.document.Document document,
org.eaglei.search.provider.SearchResult result)
- Computes the highlight for a search request.
- Parameters:
highlighter - The highlighter to use for computationanalyzer - The Lucene analyzer used to generate the matchontModel - Reference to the eagle-i ontology model.request - The search requestquery - The Lucene querydocument - Matching documentresult - The SearchResult
- Returns:
- Computed highlight
Copyright © 2009-2011 Eagle-I. All Rights Reserved.