lumis.search.lucene
Class LuceneSearchHit

Package class diagram package LuceneSearchHit
java.lang.Object
  extended by lumis.search.SearchHit
      extended by lumis.search.lucene.LuceneSearchHit

public class LuceneSearchHit
extends SearchHit

Implementation for Lucene of an item of search results

Since:
4.0.0

Field Summary
protected  org.apache.lucene.document.Document document
           
 
Fields inherited from class lumis.search.SearchHit
attributes, rank, snippet, subtitle, title, url
 
Constructor Summary
LuceneSearchHit(org.apache.lucene.document.Document document, float rank)
           
 
Method Summary
 SearchContent getSearchContent()
          Returns a SearchContent object related to the hit, containing all fields.
 
Methods inherited from class lumis.search.SearchHit
getAttributes, getParentId, getRank, getSnippet, getSubtitle, getTitle, getUrl, setParentId, setRank, setSnippet, setSubtitle, setTitle, setUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected org.apache.lucene.document.Document document
Constructor Detail

LuceneSearchHit

public LuceneSearchHit(org.apache.lucene.document.Document document,
                       float rank)
Method Detail

getSearchContent

public SearchContent getSearchContent()
                               throws UnsupportedOperationException
Description copied from class: SearchHit
Returns a SearchContent object related to the hit, containing all fields.

Implementations that do not support this opperation will throw an UnsupportedOperationException.

Overrides:
getSearchContent in class SearchHit
Returns:
SearchContent object related to the hit.
Throws:
UnsupportedOperationException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.