|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.needle.gigaspaces.service.ServerCompassSearchService
public class ServerCompassSearchService
This is the server side implemenation of the search service that should be exposed using OpenSpaces service exporter using sync remoting (as a filter to the Space).
Initialized with a Compass instance to perform the search with, and a GigaSpace instnace to load
data objects from the space. Note, since objects are loaded from the space, compass.osem.supportUnmarshall
in Compass should be set to false.
| Constructor Summary | |
|---|---|
ServerCompassSearchService()
|
|
| 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. |
void |
setCompass(Compass compass)
|
void |
setGigaSpace(org.openspaces.core.GigaSpace gigaSpace)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerCompassSearchService()
| Method Detail |
|---|
public void setCompass(Compass compass)
public void setGigaSpace(org.openspaces.core.GigaSpace gigaSpace)
public SearchResourceResults searchResource(String query)
CompassSearchService
searchResource in interface CompassSearchService
public SearchResourceResults searchResource(String query,
int maxResults)
CompassSearchService
searchResource in interface CompassSearchService
public SearchResourceResults searchResource(String query,
int maxResults,
float fromScore)
CompassSearchService
searchResource in interface CompassSearchServicepublic SearchResults search(String query)
CompassSearchService
search in interface CompassSearchService
public SearchResults search(String query,
int maxResults)
CompassSearchService
search in interface CompassSearchService
public SearchResults search(String query,
int maxResults,
float fromScore)
CompassSearchService
search in interface CompassSearchService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||