no.sesat.search.mode.command
Class YahooWebSearchCommand

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.YahooWebSearchCommand
All Implemented Interfaces:
Serializable, Callable<ResultList<ResultItem>>, SearchCommand

public class YahooWebSearchCommand
extends AbstractYahooSearchCommand

Search against Yahoo! Contextual Web Service. http://developer.yahoo.com/search/web/V1/contextSearch.html

Version:
$Id: YahooWebSearchCommand.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
YahooWebSearchCommand(SearchCommand.Context cxt)
          Create new command.
 
Method Summary
protected  BasicResultItem createItem(Element result)
          Each individual result is usually defined within one given Element.
 ResultList<ResultItem> execute()
           
 YahooWebCommandConfig getSearchConfiguration()
          Assured that associated SearchConfiguration is always of this type.
 String getTransformedQuery()
          Returns the query as it is after the query transformers and command specific query builder have been applied to it.
 
Methods inherited from class no.sesat.search.mode.command.AbstractYahooSearchCommand
getAffilDataParameter, getPartnerId
 
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, getResultsToReturn, getSearchResult, getSingleParameter, 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

YahooWebSearchCommand

public YahooWebSearchCommand(SearchCommand.Context cxt)
Create new command.

Parameters:
cxt - The context to execute in.
Method Detail

execute

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

getSearchConfiguration

public YahooWebCommandConfig getSearchConfiguration()
Assured that associated SearchConfiguration is always of this type.

Specified by:
getSearchConfiguration in interface SearchCommand
Overrides:
getSearchConfiguration in class AbstractSearchCommand
Returns:
The search configuration.

createItem

protected BasicResultItem createItem(Element result)
Description copied from class: AbstractXmlSearchCommand
Each individual result is usually defined within one given Element.

Specified by:
createItem in class AbstractXmlSearchCommand
Parameters:
result -
Returns:

getTransformedQuery

public String getTransformedQuery()
Description copied from class: AbstractSearchCommand
Returns the query as it is after the query transformers and command specific query builder have been applied to it.

Overrides:
getTransformedQuery in class AbstractSearchCommand
Returns:
The transformed query.


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