org.mycore.services.fieldquery
Class MCRQueryManager
java.lang.Object
org.mycore.services.fieldquery.MCRQueryManager
public class MCRQueryManager
- extends Object
Executes queries on all configured searchers and returns query results.
- Author:
- Frank Lützenkirchen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final Logger LOGGER
MCRQueryManager
public MCRQueryManager()
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 querycomesFromRemoteHost - if true, this query is originated from a remote host, so no
sorting of results is done for performance reasons
- Returns:
- the query results