org.sakaiproject.search.component.service.impl
Class SearchResultResponseImpl

java.lang.Object
  extended by org.sakaiproject.search.component.service.impl.SearchResultResponseImpl
All Implemented Interfaces:
SearchResult

public class SearchResultResponseImpl
extends Object
implements SearchResult

Author:
ieb

Constructor Summary
SearchResultResponseImpl(Attributes atts, org.apache.lucene.search.Query query, org.apache.lucene.analysis.Analyzer analyzer, SearchIndexBuilder searchIndexBuilder, SearchService searchService)
           
SearchResultResponseImpl(Map<String,String> attributes, org.apache.lucene.search.Query query, org.apache.lucene.analysis.Analyzer analyzer, SearchIndexBuilder searchIndexBuilder, SearchService searchService)
           
 
Method Summary
 String[] getFieldNames()
           
 String getId()
           
 int getIndex()
           
 String getReference()
           
 float getScore()
           
 String getSearchResult()
           
 String getSiteId()
           
 TermFrequency getTerms()
           
 String getTitle()
           
 String getTool()
           
 String getUrl()
           
 Map<String,String[]> getValueMap()
          
 String[] getValues(String fieldName)
           
 boolean hasPortalUrl()
           
 boolean isCensored()
           
 void setUrl(String newUrl)
           
 void toXMLString(StringBuilder sb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultResponseImpl

public SearchResultResponseImpl(Map<String,String> attributes,
                                org.apache.lucene.search.Query query,
                                org.apache.lucene.analysis.Analyzer analyzer,
                                SearchIndexBuilder searchIndexBuilder,
                                SearchService searchService)
                         throws IOException
Throws:
IOException

SearchResultResponseImpl

public SearchResultResponseImpl(Attributes atts,
                                org.apache.lucene.search.Query query,
                                org.apache.lucene.analysis.Analyzer analyzer,
                                SearchIndexBuilder searchIndexBuilder,
                                SearchService searchService)
                         throws IOException
Throws:
IOException
Method Detail

getScore

public float getScore()
Specified by:
getScore in interface SearchResult

getId

public String getId()
Specified by:
getId in interface SearchResult

getFieldNames

public String[] getFieldNames()
Specified by:
getFieldNames in interface SearchResult

getValues

public String[] getValues(String fieldName)
Specified by:
getValues in interface SearchResult

getValueMap

public Map<String,String[]> getValueMap()

Specified by:
getValueMap in interface SearchResult

getUrl

public String getUrl()
Specified by:
getUrl in interface SearchResult

getTitle

public String getTitle()
Specified by:
getTitle in interface SearchResult

getTool

public String getTool()
Specified by:
getTool in interface SearchResult

getIndex

public int getIndex()
Specified by:
getIndex in interface SearchResult

getSearchResult

public String getSearchResult()
Specified by:
getSearchResult in interface SearchResult

getReference

public String getReference()
Specified by:
getReference in interface SearchResult

getTerms

public TermFrequency getTerms()
                       throws IOException
Specified by:
getTerms in interface SearchResult
Throws:
IOException

toXMLString

public void toXMLString(StringBuilder sb)
Specified by:
toXMLString in interface SearchResult

getSiteId

public String getSiteId()
Specified by:
getSiteId in interface SearchResult

isCensored

public boolean isCensored()
Specified by:
isCensored in interface SearchResult

setUrl

public void setUrl(String newUrl)
Specified by:
setUrl in interface SearchResult

hasPortalUrl

public boolean hasPortalUrl()
Specified by:
hasPortalUrl in interface SearchResult


Copyright © 2003-2012 Sakai Project. All Rights Reserved.