com.google.appengine.api.search.dev
Class LocalSearchService
- java.lang.Object
-
- AbstractLocalRpcService
-
- com.google.appengine.api.search.dev.LocalSearchService
-
public class LocalSearchService extends AbstractLocalRpcServiceA search service implementation when running appengine on a local machine.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringPACKAGEThe package name for this service.static java.lang.StringSEARCH_LOG_LEVEL_PROPERTYInit property that specifies theLevelat which we log mail messages.static java.lang.StringUSE_DIRECTORYstatic java.lang.StringUSE_RAM_DIRECTORY
-
Constructor Summary
Constructors Constructor and Description LocalSearchService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SearchServicePb.DeleteDocumentResponsedeleteDocument(Status status, SearchServicePb.DeleteDocumentRequest req)SearchServicePb.DeleteDocumentResponsedeleteDocumentForApp(java.lang.String appId, java.lang.String indexId, java.lang.String docId)DeleteSchemaResponsedeleteSchema(java.lang.Object object, DeleteSchemaRequest request)java.lang.StringgetPackage()SearchServicePb.IndexDocumentResponseindexDocument(Status status, SearchServicePb.IndexDocumentRequest req)SearchServicePb.IndexDocumentResponseindexDocumentForApp(java.lang.String appId, java.lang.String indexId, DocumentPb.Document doc)voidinit(LocalServiceContext context, java.util.Map<java.lang.String,java.lang.String> properties)SearchServicePb.ListDocumentsResponselistDocuments(Status status, SearchServicePb.ListDocumentsRequest req)SearchServicePb.ListDocumentsResponselistDocumentsForApp(java.lang.String appId, SearchServicePb.ListDocumentsRequest req)SearchServicePb.ListIndexesResponselistIndexes(Status status, SearchServicePb.ListIndexesRequest req)SearchServicePb.ListIndexesResponselistIndexesForApp(java.lang.String appId, SearchServicePb.ListIndexesRequest req)SearchServicePb.SearchResponsesearch(Status status, SearchServicePb.SearchRequest req)SearchServicePb.SearchResponsesearchForApp(java.lang.String appId, SearchServicePb.SearchRequest req)voidstart()voidstop()
-
-
-
Field Detail
-
PACKAGE
public static final java.lang.String PACKAGE
The package name for this service.- See Also:
- Constant Field Values
-
USE_RAM_DIRECTORY
public static final java.lang.String USE_RAM_DIRECTORY
- See Also:
- Constant Field Values
-
USE_DIRECTORY
public static final java.lang.String USE_DIRECTORY
- See Also:
- Constant Field Values
-
SEARCH_LOG_LEVEL_PROPERTY
public static final java.lang.String SEARCH_LOG_LEVEL_PROPERTY
Init property that specifies theLevelat which we log mail messages. Value must be a string representation of aLevel(callingLevel.parse(String)with the value as the arg should return a valid instance).- See Also:
- Constant Field Values
-
-
Method Detail
-
getPackage
public java.lang.String getPackage()
-
init
public void init(LocalServiceContext context, java.util.Map<java.lang.String,java.lang.String> properties)
-
start
public void start()
-
stop
public void stop()
-
indexDocument
public SearchServicePb.IndexDocumentResponse indexDocument(Status status, SearchServicePb.IndexDocumentRequest req)
-
indexDocumentForApp
public SearchServicePb.IndexDocumentResponse indexDocumentForApp(java.lang.String appId, java.lang.String indexId, DocumentPb.Document doc)
-
deleteDocument
public SearchServicePb.DeleteDocumentResponse deleteDocument(Status status, SearchServicePb.DeleteDocumentRequest req)
-
deleteDocumentForApp
public SearchServicePb.DeleteDocumentResponse deleteDocumentForApp(java.lang.String appId, java.lang.String indexId, java.lang.String docId)
-
listIndexes
public SearchServicePb.ListIndexesResponse listIndexes(Status status, SearchServicePb.ListIndexesRequest req) throws java.io.IOException- Throws:
java.io.IOException
-
listIndexesForApp
public SearchServicePb.ListIndexesResponse listIndexesForApp(java.lang.String appId, SearchServicePb.ListIndexesRequest req) throws java.io.IOException- Throws:
java.io.IOException
-
listDocuments
public SearchServicePb.ListDocumentsResponse listDocuments(Status status, SearchServicePb.ListDocumentsRequest req)
-
listDocumentsForApp
public SearchServicePb.ListDocumentsResponse listDocumentsForApp(java.lang.String appId, SearchServicePb.ListDocumentsRequest req)
-
search
public SearchServicePb.SearchResponse search(Status status, SearchServicePb.SearchRequest req)
-
searchForApp
public SearchServicePb.SearchResponse searchForApp(java.lang.String appId, SearchServicePb.SearchRequest req)
-
deleteSchema
public DeleteSchemaResponse deleteSchema(java.lang.Object object, DeleteSchemaRequest request)
-
-