no.sesat.search.mode.config
Class NewsEspCommandConfig

java.lang.Object
  extended by no.sesat.search.mode.config.CommandConfig
      extended by no.sesat.search.mode.config.FastCommandConfig
          extended by no.sesat.search.mode.config.EspFastCommandConfig
              extended by no.sesat.search.mode.config.NavigatableEspFastCommandConfig
                  extended by no.sesat.search.mode.config.NewsEspCommandConfig
All Implemented Interfaces:
Serializable, BaseSearchConfiguration, SearchConfiguration, SearchConfiguration.ModesW3cDomDeserialiser
Direct Known Subclasses:
ClusteringEspFastCommandConfig

@CommandConfig.Controller(value="NewsEspSearchCommand")
public class NewsEspCommandConfig
extends NavigatableEspFastCommandConfig

Configuration for a NewsEspSearchCommand.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class no.sesat.search.mode.config.CommandConfig
CommandConfig.Controller
 
Nested classes/interfaces inherited from interface no.sesat.search.mode.config.SearchConfiguration
SearchConfiguration.ModesW3cDomDeserialiser
 
Field Summary
static String ALL_MEDIUMS
          Constant for medium value representing all mediums.
 
Fields inherited from class no.sesat.search.mode.config.CommandConfig
DEFAULT_DOCUMENTS_TO_RETURN
 
Fields inherited from interface no.sesat.search.mode.config.SearchConfiguration
DEFAULT_PAGING_PARAMETER, DEFAULT_USER_SORT_PARAMETER
 
Constructor Summary
NewsEspCommandConfig()
           
 
Method Summary
 String getAgeField()
          Getter for the ageField property.
 char getAgeSymbol()
          Getter for the ageSymbol property.
 int getCollapsingMaxFetch()
          Getter for the collapsingMaxFetch property.
 String getDefaultMedium()
          Getter for the defaultMedium property.
 String getDefaultSort()
          Getter for the defaultSort property.
 String getMaxAge()
          Getter for the maxAge property.
 int getMaxAgeAmount()
          Getter for the maxAgeAmount property.
 String getMediumParameter()
          Getter for the mediumParameter property.
 String getMediumPrefix()
          Getter for the mediumPrefix property.
 String getNestedResultsField()
          Getter for the nestedResultsField property.
 String getRelevanceMultipleTermSortField()
          Getter for the relevanceMultipleTermSortField property.
 String getRelevanceSingleTermSortField()
          Getter for the relevanceSingleTermSortField property.
 String getRelevanceSortField()
          Getter for the relevanceSortField property.
 String getSortField()
          Getter for the sortField property.
 SearchConfiguration readSearchConfiguration(Element element, SearchConfiguration inherit, SearchModeFactory.Context context)
          Apply the attributes found in element to 'this'.
 void setAgeField(String ageField)
          Setter for the ageField property.
 void setAgeSymbol(char ageSymbol)
          Setter for the ageSymbol property.
 void setCollapsingMaxFetch(int collapsingMaxFetch)
          Setter for the collapsingMaxFetch property.
 void setDefaultMedium(String defaultMedium)
          Setter for the defaultMedium property.
 void setDefaultSort(String defaultSort)
          Setter for the defaultSort property.
 void setMaxAge(String maxAge)
          Setter for the maxAge property.
 void setMediumParameter(String mediumParameter)
          Setter for the mediumParameter property.
 void setMediumPrefix(String mediumPrefix)
          Setter for the mediumPrefix property.
 void setNestedResultsField(String nestedResultsField)
          Setter for the nestedResultsField property.
 void setRelevanceMultipleTermSortField(String relevanceMultipleTermSortField)
          Setter for the relevanceMultipleTermSortField property.
 void setRelevanceSingleTermSortField(String relevanceSingleTermSortField)
          Setter for the relevanceSingleTermSortField property.
 void setRelevanceSortField(String relevanceSortField)
          Setter for the relevanceSortField property.
 void setSortField(String sortField)
          Setter for the sortField property.
 
Methods inherited from class no.sesat.search.mode.config.EspFastCommandConfig
addNavigator, getAlternativeSortBy, getNavigator, getNavigators, getQtPipeline, getQueryServer, getSortBy, getTimeout, getView, isCollapsingEnabled, isCollapsingRemoves, isExpansionEnabled, isLemmatize, setAlternativeSortBy, setCollapsingEnabled, setCollapsingRemoves, setExpansionEnabled, setLemmatize, setQtPipeline, setQueryServer, setSortBy, setTimeout, setView
 
Methods inherited from class no.sesat.search.mode.config.FastCommandConfig
addCollections, getCollectionFilterString, getCollections, getFilter, getFiltertype, getOffensiveScoreLimit, getProject, getQueryServerUrl, getQueryType, getResultView, getSearchParameterMap, getSearchParameters, getSpamScoreLimit, getSpellchecklanguage, isClustering, isCollapsing, isExpansion, isIgnoreNavigation, isKeywordClusteringEnabled, isLemmatise, isRelevantQueries, isSpellcheck, setClustering, setCollapsing, setExpansion, setFilter, setFiltertype, setIgnoreNavigation, setKeywordClusteringEnabled, setLemmatise, setOffensiveScoreLimit, setProject, setQueryServerUrl, setQueryType, setRelevantQueries, setResultView, setSearchParameters, setSpamScoreLimit, setSpellcheck, setSpellchecklanguage
 
Methods inherited from class no.sesat.search.mode.config.CommandConfig
addQueryTransformer, addResultField, addResultFields, addResultHandler, clearFieldFilters, clearQueryTransformers, clearResultHandlers, getFieldFilterMap, getId, getInitialQueryTransformer, getName, getPagingParameter, getQueryBuilder, getQueryParameter, getQueryTransformers, getResultFieldMap, getResultFields, getResultHandlers, getResultsToReturn, getStatisticalName, getUserSortParameter, isAlwaysRun, isAsynchronous, isRunBlank, parseNavigators, setAlwaysRun, setAsynchronous, setFieldFilters, setId, setInitialQueryTransformer, setPagingParameter, setQueryBuilder, setQueryParameter, setResultsToReturn, setRunBlank, setStatisticalName, setUserSortParameter, toString, toStringLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_MEDIUMS

public static final String ALL_MEDIUMS
Constant for medium value representing all mediums.

See Also:
Constant Field Values
Constructor Detail

NewsEspCommandConfig

public NewsEspCommandConfig()
Method Detail

getSortField

public String getSortField()
Getter for the sortField property.

Returns:
the sortField value

setSortField

public void setSortField(String sortField)
Setter for the sortField property.

Parameters:
sortField - the new sortField value

getDefaultSort

public String getDefaultSort()
Getter for the defaultSort property.

Returns:
the defaultSort value

setDefaultSort

public void setDefaultSort(String defaultSort)
Setter for the defaultSort property.

Parameters:
defaultSort - the new defaultSort value

getCollapsingMaxFetch

public int getCollapsingMaxFetch()
Getter for the collapsingMaxFetch property.

Returns:
the collapsingMaxFetch value

setCollapsingMaxFetch

public void setCollapsingMaxFetch(int collapsingMaxFetch)
Setter for the collapsingMaxFetch property.

Parameters:
collapsingMaxFetch - the new collapsingMaxFetch value

getNestedResultsField

public String getNestedResultsField()
Getter for the nestedResultsField property.

Returns:
the nestedResultsField value

setNestedResultsField

public void setNestedResultsField(String nestedResultsField)
Setter for the nestedResultsField property.

Parameters:
nestedResultsField - the new nestedResultsField value

getMediumPrefix

public String getMediumPrefix()
Getter for the mediumPrefix property.

Returns:
the mediumPrefix value

setMediumPrefix

public void setMediumPrefix(String mediumPrefix)
Setter for the mediumPrefix property.

Parameters:
mediumPrefix - the new mediumPrefix value

getDefaultMedium

public String getDefaultMedium()
Getter for the defaultMedium property.

Returns:
the defaultMedium value

setDefaultMedium

public void setDefaultMedium(String defaultMedium)
Setter for the defaultMedium property.

Parameters:
defaultMedium - the new defaultMedium value

getMediumParameter

public String getMediumParameter()
Getter for the mediumParameter property.

Returns:
the mediumParameter value

setMediumParameter

public void setMediumParameter(String mediumParameter)
Setter for the mediumParameter property.

Parameters:
mediumParameter - the new mediumParameter value

getRelevanceSortField

public String getRelevanceSortField()
Getter for the relevanceSortField property.

Returns:
the relevanceSortField value

setRelevanceSortField

public void setRelevanceSortField(String relevanceSortField)
Setter for the relevanceSortField property.

Parameters:
relevanceSortField - the new relevanceSortField value

getRelevanceSingleTermSortField

public String getRelevanceSingleTermSortField()
Getter for the relevanceSingleTermSortField property.

Returns:
the relevanceSortSingleTermField value

setRelevanceSingleTermSortField

public void setRelevanceSingleTermSortField(String relevanceSingleTermSortField)
Setter for the relevanceSingleTermSortField property.

Parameters:
relevanceSingleTermSortField - the new relevanceSingleTermSortField value

getRelevanceMultipleTermSortField

public String getRelevanceMultipleTermSortField()
Getter for the relevanceMultipleTermSortField property.

Returns:
the relevanceMultipleTermSortField value

setRelevanceMultipleTermSortField

public void setRelevanceMultipleTermSortField(String relevanceMultipleTermSortField)
Setter for the relevanceMultipleTermSortField property.

Parameters:
relevanceMultipleTermSortField - the new relevanceMultipleTermSortField value

getMaxAge

public String getMaxAge()
Getter for the maxAge property.

Returns:
the maxAge value

setMaxAge

public void setMaxAge(String maxAge)
Setter for the maxAge property.

Parameters:
maxAge - the new maxAge value

getAgeField

public String getAgeField()
Getter for the ageField property.

Returns:
the ageField value

setAgeField

public void setAgeField(String ageField)
Setter for the ageField property.

Parameters:
ageField - the new ageField value

getAgeSymbol

public char getAgeSymbol()
Getter for the ageSymbol property.

Returns:
the ageSymbol value

setAgeSymbol

public void setAgeSymbol(char ageSymbol)
Setter for the ageSymbol property.

Parameters:
ageSymbol - the new ageSymbol value

getMaxAgeAmount

public int getMaxAgeAmount()
Getter for the maxAgeAmount property.

Returns:
the maxAgeAmount value

readSearchConfiguration

public SearchConfiguration readSearchConfiguration(Element element,
                                                   SearchConfiguration inherit,
                                                   SearchModeFactory.Context context)
Description copied from interface: SearchConfiguration.ModesW3cDomDeserialiser
Apply the attributes found in element to 'this'. If some attributes are not found in element then try to fetch them from inherit and set them on 'this'.

Specified by:
readSearchConfiguration in interface SearchConfiguration.ModesW3cDomDeserialiser
Overrides:
readSearchConfiguration in class EspFastCommandConfig
Returns:
The newly read configuration (chaining pattern)


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