com.google.appengine.api.search.dev
Class LocalSearchService
- java.lang.Object
-
- AbstractLocalRpcService
-
- com.google.appengine.api.search.dev.LocalSearchService
-
public class LocalSearchService extends AbstractLocalRpcService
A search service implementation when running appengine on a local machine.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
PACKAGE
The package name for this service.static java.lang.String
SEARCH_LOG_LEVEL_PROPERTY
Init property that specifies theLevel
at which we log mail messages.static java.lang.String
USE_DIRECTORY
static java.lang.String
USE_RAM_DIRECTORY
-
Constructor Summary
Constructors Constructor and Description LocalSearchService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SearchServicePb.DeleteDocumentResponse
deleteDocument(Status status, SearchServicePb.DeleteDocumentRequest req)
SearchServicePb.DeleteDocumentResponse
deleteDocumentForApp(java.lang.String appId, java.lang.String indexId, java.lang.String docId)
DeleteSchemaResponse
deleteSchema(java.lang.Object object, DeleteSchemaRequest request)
java.lang.String
getPackage()
SearchServicePb.IndexDocumentResponse
indexDocument(Status status, SearchServicePb.IndexDocumentRequest req)
SearchServicePb.IndexDocumentResponse
indexDocumentForApp(java.lang.String appId, java.lang.String indexId, DocumentPb.Document doc)
void
init(LocalServiceContext context, java.util.Map<java.lang.String,java.lang.String> properties)
SearchServicePb.ListDocumentsResponse
listDocuments(Status status, SearchServicePb.ListDocumentsRequest req)
SearchServicePb.ListDocumentsResponse
listDocumentsForApp(java.lang.String appId, SearchServicePb.ListDocumentsRequest req)
SearchServicePb.ListIndexesResponse
listIndexes(Status status, SearchServicePb.ListIndexesRequest req)
SearchServicePb.ListIndexesResponse
listIndexesForApp(java.lang.String appId, SearchServicePb.ListIndexesRequest req)
SearchServicePb.SearchResponse
search(Status status, SearchServicePb.SearchRequest req)
SearchServicePb.SearchResponse
searchForApp(java.lang.String appId, SearchServicePb.SearchRequest req)
void
start()
void
stop()
-
-
-
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 theLevel
at 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)
-
-