org.mycore.services.fieldquery
Class MCRQueryManager

java.lang.Object
  extended by org.mycore.services.fieldquery.MCRQueryManager

public class MCRQueryManager
extends Object

Executes queries on all configured searchers and returns query results.

Author:
Frank Lützenkirchen

Field Summary
protected static Logger LOGGER
           
 
Constructor Summary
MCRQueryManager()
           
 
Method Summary
static MCRResults search(MCRQuery query)
          Executes a query and returns the query results.
static MCRResults search(MCRQuery query, boolean comesFromRemoteHost)
          Executes a query and returns the query results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER
Constructor Detail

MCRQueryManager

public MCRQueryManager()
Method Detail

search

public static MCRResults search(MCRQuery query)
Executes a query and returns the query results. If the query contains fields from different indexes or should span across multiple hosts, the results of multiple searchers are combined.

Parameters:
query - the query
Returns:
the query results

search

public static MCRResults search(MCRQuery query,
                                boolean comesFromRemoteHost)
Executes a query and returns the query results. If the query contains fields from different indexes or should span across multiple hosts, the results of multiple searchers are combined.

Parameters:
query - the query
comesFromRemoteHost - if true, this query is originated from a remote host, so no sorting of results is done for performance reasons
Returns:
the query results