no.sesat.search.mode.command
Class PropertiesCommand

java.lang.Object
  extended by no.sesat.search.mode.command.AbstractSearchCommand
      extended by no.sesat.search.mode.command.PropertiesCommand
All Implemented Interfaces:
Serializable, Callable<ResultList<ResultItem>>, SearchCommand

public final class PropertiesCommand
extends AbstractSearchCommand

Simple command that searches in the specified properties map's keys. If any key appears within the query (as complete words) the key and value are placed into the result item. The command is useful for quick and dirty enrichments that match a small list of words. The following is a tutorial for a simple enrichment using this command https://dev.schibstedsok.no/confluence/display/SESAT/Developing+a+quick+and+simple+Enrichment+tutorial

Version:
$Id: PropertiesCommand.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.command.AbstractSearchCommand
AbstractSearchCommand.QueryBuilderFactory, AbstractSearchCommand.ReconstructedQuery
 
Nested classes/interfaces inherited from interface no.sesat.search.mode.command.SearchCommand
SearchCommand.Context
 
Field Summary
 
Fields inherited from class no.sesat.search.mode.command.AbstractSearchCommand
completed, context, datamodel, datamodelParameters, DUMP, untransformedQuery
 
Constructor Summary
PropertiesCommand(SearchCommand.Context cxt)
          Creates a new instance of PropertiesCommand
 
Method Summary
 ResultList<ResultItem> execute()
           
 String getQueryRepresentation()
           
 
Methods inherited from class no.sesat.search.mode.command.AbstractSearchCommand
addFilterString, call, constructQueryBuilder, createQuery, createQuery, escape, getCurrentOffset, getEngine, getFieldFilter, getFilter, getFilterBuilder, getOffset, getParameter, getQuery, getQueryBuilder, getReservedWords, getResultsToReturn, getSearchConfiguration, getSearchResult, getSingleParameter, getTransformedQuery, getTransformedQuerySesamSyntax, getTransformedTerms, getUserSortBy, handleCancellation, initialiseTransformedTerms, isCancelled, isPaginated, isUserSortable, performExecution, performQueryTransformation, performResultHandling, setTransformedQuerySesamSyntax, statisticsInfo, toString, updateTransformedQuerySesamSyntax, visitXorClause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertiesCommand

public PropertiesCommand(SearchCommand.Context cxt)
Creates a new instance of PropertiesCommand

Parameters:
cxt -
Method Detail

execute

public ResultList<ResultItem> execute()
Specified by:
execute in class AbstractSearchCommand

getQueryRepresentation

public String getQueryRepresentation()
Overrides:
getQueryRepresentation in class AbstractSearchCommand


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