org.compass.needle.gigaspaces.service
Interface CompassSearchService

All Known Implementing Classes:
ClientCompassSearchService, ServerCompassSearchService

public interface CompassSearchService

A generics search service that is based on OpenSpaces remoting.

Author:
kimchy

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.
 

Method Detail

searchResource

SearchResourceResults searchResource(String query)
Search and returns all the matching resources for the given query.


searchResource

SearchResourceResults searchResource(String query,
                                     int maxResults)
Search and returns up to maxResults the matching resources for the given query.


searchResource

SearchResourceResults searchResource(String query,
                                     int maxResults,
                                     float fromScore)
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.


search

SearchResults search(String query)
Search and returns all the matching objects for the given query.


search

SearchResults search(String query,
                     int maxResults)
Search and returns maxResults the matching objects for the given query.


search

SearchResults search(String query,
                     int maxResults,
                     float fromScore)
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.



Copyright (c) 2004-2009 The Compass Project.