no.sesat.search.mode.command
Class OverturePPCSearchCommand

java.lang.Object
  extended by no.sesat.search.mode.command.AbstractSearchCommand
      extended by no.sesat.search.mode.command.AbstractXmlSearchCommand
          extended by no.sesat.search.mode.command.AbstractYahooSearchCommand
              extended by 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

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
OverturePPCSearchCommand(SearchCommand.Context cxt)
          Create new overture command.
 
Method Summary
protected  BasicResultItem createItem(Element ppcListing)
          Each individual result is usually defined within one given Element.
 ResultList<ResultItem> execute()
          Execute the command.
protected  String getAffilDataParameter()
           
protected  String getPartnerId()
           
protected  int getResultsToReturn()
           
 
Methods inherited from class no.sesat.search.mode.command.AbstractXmlSearchCommand
createRequestURL, getXmlRestful, setXmlRestful
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OverturePPCSearchCommand

public OverturePPCSearchCommand(SearchCommand.Context cxt)
Create new overture command.

Parameters:
cxt - the context
Method Detail

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.