railo.runtime.search.lucene2
Class SearchResulItemHits

java.lang.Object
  extended by railo.runtime.search.lucene2.SearchResulItemHits
All Implemented Interfaces:
SearchResulItem

public class SearchResulItemHits
extends Object
implements SearchResulItem


Constructor Summary
SearchResulItemHits(org.apache.lucene.search.Hits hits, int index, Object highlighter, org.apache.lucene.analysis.Analyzer analyzer, String id, String categoryTree, String category, int maxNumFragments, int maxLength)
           
 
Method Summary
 String getAuthor()
           
 String getCategory()
           
 String getCategoryTree()
           
 String getContextSummary()
          FUTURE add to interface
 String getCustom(int index)
           
 String getCustom1()
           
 String getCustom2()
           
 String getCustom3()
           
 String getCustom4()
           
 String getId()
           
 String getKey()
           
 String getMimeType()
           
 int getRecordsSearched()
           
 float getScore()
           
 String getSize()
           
 String getSummary()
           
 String getTitle()
           
 String getUrl()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResulItemHits

public SearchResulItemHits(org.apache.lucene.search.Hits hits,
                           int index,
                           Object highlighter,
                           org.apache.lucene.analysis.Analyzer analyzer,
                           String id,
                           String categoryTree,
                           String category,
                           int maxNumFragments,
                           int maxLength)
Method Detail

getAuthor

public String getAuthor()
Specified by:
getAuthor in interface SearchResulItem
Returns:
the author

getCategory

public String getCategory()
Specified by:
getCategory in interface SearchResulItem
Returns:
the category

getCategoryTree

public String getCategoryTree()
Specified by:
getCategoryTree in interface SearchResulItem
Returns:
the categoryTree

getCustom1

public String getCustom1()
Specified by:
getCustom1 in interface SearchResulItem
Returns:
Returns the custom1.

getCustom2

public String getCustom2()
Specified by:
getCustom2 in interface SearchResulItem
Returns:
Returns the custom2.

getCustom3

public String getCustom3()
Specified by:
getCustom3 in interface SearchResulItem
Returns:
Returns the custom3.

getCustom4

public String getCustom4()
Specified by:
getCustom4 in interface SearchResulItem
Returns:
Returns the custom4.

getCustom

public String getCustom(int index)
                 throws SearchException
Specified by:
getCustom in interface SearchResulItem
Throws:
SearchException

getId

public String getId()
Specified by:
getId in interface SearchResulItem
Returns:
Returns the id.

getKey

public String getKey()
Specified by:
getKey in interface SearchResulItem
Returns:
Returns the key

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface SearchResulItem
Returns:
the mimeType

getRecordsSearched

public int getRecordsSearched()
Specified by:
getRecordsSearched in interface SearchResulItem
Returns:
Returns the recordsSearched.

getScore

public float getScore()
Specified by:
getScore in interface SearchResulItem
Returns:
Returns the score.

getSize

public String getSize()
Specified by:
getSize in interface SearchResulItem
Returns:
the size

getSummary

public String getSummary()
Specified by:
getSummary in interface SearchResulItem
Returns:
Returns the summary.

getTitle

public String getTitle()
Specified by:
getTitle in interface SearchResulItem
Returns:
Returns the title.

getUrl

public String getUrl()
Specified by:
getUrl in interface SearchResulItem
Returns:
Returns the url

getContextSummary

public String getContextSummary()
FUTURE add to interface

Specified by:
getContextSummary in interface SearchResulItem
Returns:
the contextSummary


Copyright © 2012 Railo