no.sesat.search.run
Class QueryFactory

java.lang.Object
  extended by no.sesat.search.run.QueryFactory
Direct Known Subclasses:
QueryFactoryImpl

public abstract class QueryFactory
extends Object

QueryFactory is part of no.sesat.search.query. Use QueryFactory to create a new RunningQuery instance. The RunningQuery should contain all information on how to search in fast.

Version:
$Id: QueryFactory.java 7225 2009-04-09 00:32:20Z ssmiweve $

Constructor Summary
QueryFactory()
           
 
Method Summary
abstract  RunningQuery createQuery(RunningQuery.Context cxt, HttpServletRequest request, HttpServletResponse response)
          Create a new instance of running query.
static QueryFactory getInstance()
          Create a new instance of QueryFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryFactory

public QueryFactory()
Method Detail

getInstance

public static QueryFactory getInstance()
Create a new instance of QueryFactory.

Returns:
instance

createQuery

public abstract RunningQuery createQuery(RunningQuery.Context cxt,
                                         HttpServletRequest request,
                                         HttpServletResponse response)
                                  throws SiteKeyedFactoryInstantiationException
Create a new instance of running query. The implementation can be RunningWebQuery, RunningAdvWebQuery for example.

Parameters:
mode - with SearchConfiguration
request - with parameters
response -
Returns:
instance of RunningQuery
Throws:
SiteKeyedFactoryInstantiationException


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