org.compass.needle.gigaspaces.service
Class ClientCompassSearchService

java.lang.Object
  extended by org.compass.needle.gigaspaces.service.ClientCompassSearchService
All Implemented Interfaces:
CompassSearchService

public class ClientCompassSearchService
extends Object
implements CompassSearchService

A client side implementation of the compass search service. Uses sync remoting proxy SyncRemotingProxyConfigurer in order to build a sync remoting proxy around CompassSearchService that perfoms broadcast operations in order to perform the actual search on all the partitions.

Has a specific reducer for the broadcast remote invocation that reorders and accumalates the results on the client side.

Author:
kimchy

Constructor Summary
ClientCompassSearchService(org.openspaces.core.GigaSpace gigaSpace)
           
 
Method Summary
 SearchResults search(String query)
          Search and returns all the matching objects for the given query.
 SearchResults search(String query, int maxResults)
          Search and returns maxResults the matching objects for the given query.
 SearchResults search(String query, int maxResults, float fromScore)
          Search and returns up to maxResults the matching objects for the given query.
 SearchResourceResults searchResource(String query)
          Search and returns all the matching resources for the given query.
 SearchResourceResults searchResource(String query, int maxResults)
          Search and returns up to maxResults the matching resources for the given query.
 SearchResourceResults searchResource(String query, int maxResults, float fromScore)
          Search and returns up to maxResults the matching resources for the given query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCompassSearchService

public ClientCompassSearchService(org.openspaces.core.GigaSpace gigaSpace)
Method Detail

searchResource

public SearchResourceResults searchResource(String query)
Description copied from interface: CompassSearchService
Search and returns all the matching resources for the given query.

Specified by:
searchResource in interface CompassSearchService

search

public SearchResults search(String query)
Description copied from interface: CompassSearchService
Search and returns all the matching objects for the given query.

Specified by:
search in interface CompassSearchService

searchResource

public SearchResourceResults searchResource(String query,
                                            int maxResults)
Description copied from interface: CompassSearchService
Search and returns up to maxResults the matching resources for the given query.

Specified by:
searchResource in interface CompassSearchService

search

public SearchResults search(String query,
                            int maxResults)
Description copied from interface: CompassSearchService
Search and returns maxResults the matching objects for the given query.

Specified by:
search in interface CompassSearchService

searchResource

public SearchResourceResults searchResource(String query,
                                            int maxResults,
                                            float fromScore)
Description copied from interface: CompassSearchService
Search and returns up to maxResults the matching resources for the given query. Hits that are higher than the provided fromScore are filtered out. This allows for simpler pagination.

Specified by:
searchResource in interface CompassSearchService

search

public SearchResults search(String query,
                            int maxResults,
                            float fromScore)
Description copied from interface: CompassSearchService
Search and returns up to maxResults the matching objects for the given query. Hits that are higher than the provided fromScore are filtered out. This allows for simpler pagination.

Specified by:
search in interface CompassSearchService


Copyright (c) 2004-2008 The Compass Project.