no.sesat.search.mode.command
Class PropertiesCommand
java.lang.Object
no.sesat.search.mode.command.AbstractSearchCommand
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
| 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 |
PropertiesCommand
public PropertiesCommand(SearchCommand.Context cxt)
- Creates a new instance of PropertiesCommand
- Parameters:
cxt -
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.