org.eaglei.solr.search
Class LuceneSearchUtil

java.lang.Object
  extended by org.eaglei.solr.search.LuceneSearchUtil

public class LuceneSearchUtil
extends java.lang.Object


Constructor Summary
LuceneSearchUtil()
           
 
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
 

Constructor Detail

LuceneSearchUtil

public LuceneSearchUtil()
Method Detail

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 computation
analyzer - The Lucene analyzer used to generate the match
ontModel - Reference to the eagle-i ontology model.
request - The search request
query - The Lucene query
document - Matching document
result - The SearchResult
Returns:
Computed highlight


Copyright © 2009-2011 Eagle-I. All Rights Reserved.