no.sesat.search.result
Class FacetedSearchResultImpl<T extends ResultItem>

java.lang.Object
  extended by no.sesat.search.result.BasicResultItem
      extended by no.sesat.search.result.BasicResultList<T>
          extended by no.sesat.search.result.FacetedSearchResultImpl<T>
Type Parameters:
T - The each ResultItem classes that are used.
All Implemented Interfaces:
Serializable, FacetedSearchResult<T>, ResultItem, ResultList<T>
Direct Known Subclasses:
FastSearchResult

public class FacetedSearchResultImpl<T extends ResultItem>
extends BasicResultList<T>
implements FacetedSearchResult<T>

An extension of BasicResultList that provides navigators (which hold modifiers), and currentNavigators.

Version:
$Id: FacetedSearchResultImpl.java 7225 2009-04-09 00:32:20Z ssmiweve $
See Also:
Serialized Form

Constructor Summary
FacetedSearchResultImpl()
          Default constructor.
 
Method Summary
 void addModifier(String navigatorName, Modifier modifier)
          To the list of modifiers found in the navigators under the name "navigatorName" add the modifier.
 Modifier getModifier(String navigatorName, String modifierName)
          The modifier with name "modifierName" from the modifier list found in the navigation map under the name "navigatorNam".
 int getModifierCount(String navigatorName, String modifierName)
          The count of the modifier with name "modifierName" from the modifier list found in the navigation map under the name "navigatorNam".
 List<Modifier> getModifiers(String navigatorName)
          A live copy of the modifiers found in the navigation map under the name "navigatorName".
 
Methods inherited from class no.sesat.search.result.BasicResultList
addField, addObjectField, addQuerySuggestion, addRelevantQuery, addResult, addResults, addSpellingSuggestion, addToMultivaluedField, getHitCount, getQuerySuggestions, getRelevantQueries, getResults, getResultsSize, getSpellingSuggestions, getSpellingSuggestionsMap, removeResult, removeResults, replaceResult, setHitCount, sortResults
 
Methods inherited from class no.sesat.search.result.BasicResultItem
equals, getField, getField, getFieldNames, getFields, getInteger, getMultivaluedField, getObjectField, getTitle, getUrl, hashCode, setTitle, setUrl
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface no.sesat.search.result.ResultList
addField, addObjectField, addQuerySuggestion, addResult, addResults, addSpellingSuggestion, getHitCount, getQuerySuggestions, getRelevantQueries, getResults, getSpellingSuggestions, removeResult, removeResults, replaceResult, setHitCount, sortResults
 
Methods inherited from interface no.sesat.search.result.ResultItem
addToMultivaluedField, getField, getFieldNames, getMultivaluedField, getObjectField, getTitle, getUrl, setTitle, setUrl
 

Constructor Detail

FacetedSearchResultImpl

public FacetedSearchResultImpl()
Default constructor.

Method Detail

addModifier

public void addModifier(String navigatorName,
                        Modifier modifier)
Description copied from interface: FacetedSearchResult
To the list of modifiers found in the navigators under the name "navigatorName" add the modifier.

Specified by:
addModifier in interface FacetedSearchResult<T extends ResultItem>

getModifiers

public List<Modifier> getModifiers(String navigatorName)
Description copied from interface: FacetedSearchResult
A live copy of the modifiers found in the navigation map under the name "navigatorName".

Specified by:
getModifiers in interface FacetedSearchResult<T extends ResultItem>
Returns:

getModifier

public Modifier getModifier(String navigatorName,
                            String modifierName)
Description copied from interface: FacetedSearchResult
The modifier with name "modifierName" from the modifier list found in the navigation map under the name "navigatorNam".

Specified by:
getModifier in interface FacetedSearchResult<T extends ResultItem>
Returns:
the modifier found,or null

getModifierCount

public int getModifierCount(String navigatorName,
                            String modifierName)
Description copied from interface: FacetedSearchResult
The count of the modifier with name "modifierName" from the modifier list found in the navigation map under the name "navigatorNam".

Specified by:
getModifierCount in interface FacetedSearchResult<T extends ResultItem>
Returns:


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.