org.eaglei.search.provider.lucene.search
Class LuceneSearchUtil
java.lang.Object
org.eaglei.search.provider.lucene.search.LuceneSearchUtil
public class LuceneSearchUtil
- extends java.lang.Object
|
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. |
static java.lang.String |
getPropertyFieldName(org.eaglei.model.EIEntity propEntity,
java.lang.String valueURIStr)
|
static java.lang.String |
getPropertyLabel(java.lang.String fieldName)
|
static java.lang.String |
getPropertyValueURIString(java.lang.String fieldName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneSearchUtil
public LuceneSearchUtil()
getPropertyFieldName
public static java.lang.String getPropertyFieldName(org.eaglei.model.EIEntity propEntity,
java.lang.String valueURIStr)
getPropertyLabel
public static java.lang.String getPropertyLabel(java.lang.String fieldName)
getPropertyValueURIString
public static java.lang.String getPropertyValueURIString(java.lang.String fieldName)
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.