org.mmbase.storage.search
Interface CoreSearchQueryHandler
- All Superinterfaces:
- SearchQueryHandler
- All Known Implementing Classes:
- BasicQueryHandler
public interface CoreSearchQueryHandler
- extends SearchQueryHandler
Defines methods for an object that handles search query requests.
- Since:
- MMBase-1.7
- Version:
- $Id: SearchQueryHandler.java -1 $
- Author:
- Rob van Maris
getNodes
List<MMObjectNode> getNodes(SearchQuery query,
MMObjectBuilder builder)
throws SearchQueryException
- Processes a search query, returns the result as a list of nodes.
Depending on the specified builder, the results will be:
- Resultnodes, with fields named according to the field aliases
specified by the query.
- Clusternodes, with fields named
<step alias>.<field name>, where
the step alias is required to be of the form
<step tablename><x>, and
<x> is either empty or a single digit. Examples:
images.number, images0.number,
images1.number
- Real nodes, where all fields are required to be included in
the query.
- Parameters:
query - The search query.builder - The builder for the result nodes. Specify a
ResultBuilder
to get resultnodes.
ClusterBuilder
to get clusternodes.
- Returns:
- The resulting nodes.
- Throws:
SearchQueryException- See Also:
ResultNode,
ClusterNode
MMBase 2.0-SNAPSHOT - null