no.sesat.search.mode.command
Class OverturePPCSearchCommand
java.lang.Object
no.sesat.search.mode.command.AbstractSearchCommand
no.sesat.search.mode.command.AbstractXmlSearchCommand
no.sesat.search.mode.command.AbstractYahooSearchCommand
no.sesat.search.mode.command.OverturePPCSearchCommand
- All Implemented Interfaces:
- Serializable, Callable<ResultList<ResultItem>>, SearchCommand
public class OverturePPCSearchCommand
- extends AbstractYahooSearchCommand
This command gets the overture ads to display. It also does some analysis of
the query to decide if it is a query that yields a high click frequency for
the ads. This is done by evaluating the predicate "exact_ppctoplist".
- Version:
- $Id: OverturePPCSearchCommand.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, getQueryRepresentation, getReservedWords, getSearchConfiguration, getSearchResult, getSingleParameter, getTransformedQuery, getTransformedQuerySesamSyntax, getTransformedTerms, getUserSortBy, handleCancellation, initialiseTransformedTerms, isCancelled, isPaginated, isUserSortable, performExecution, performQueryTransformation, performResultHandling, setTransformedQuerySesamSyntax, statisticsInfo, toString, updateTransformedQuerySesamSyntax, visitXorClause |
OverturePPCSearchCommand
public OverturePPCSearchCommand(SearchCommand.Context cxt)
- Create new overture command.
- Parameters:
cxt - the context
execute
public ResultList<ResultItem> execute()
- Execute the command.
- Specified by:
execute in class AbstractSearchCommand
- Returns:
- the search result
createItem
protected BasicResultItem createItem(Element ppcListing)
- Description copied from class:
AbstractXmlSearchCommand
- Each individual result is usually defined within one given Element.
- Specified by:
createItem in class AbstractXmlSearchCommand
- Parameters:
ppcListing - the w3c element
- Returns:
- the ResultItem
getPartnerId
protected String getPartnerId()
- Overrides:
getPartnerId in class AbstractYahooSearchCommand
- Returns:
getAffilDataParameter
protected String getAffilDataParameter()
- Overrides:
getAffilDataParameter in class AbstractYahooSearchCommand
- Returns:
- Returns the affilData element for Yahoo/Overture, not including the prefix "&".
getResultsToReturn
protected int getResultsToReturn()
- Overrides:
getResultsToReturn in class AbstractSearchCommand
- Returns:
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.