I have been trying to write a unitTest that tests some indexing and
search functionality against an embedded instance of elastic search so
that I do not have to rely on a test instance of elastic search being
available. Towards this goal, I create a local node instance like so :
ImmutableSettings.Builder elasticsearchSettings =
ImmutableSettings.settingsBuilder() .put("http.enabled",false) .put("path.data",dataDirectory);
and I get get a client instance like so :
Client client = node.client();
So far so good. I proceed to index a single document like so :
where jsonStringnormalized is the JSON representation of the testDocument
and testDocument.getDocumnetId() returns the ID for the document.
I then perform two requests, 1 a Get request (using GetReponse) and the
second a SearchResponse.
The GetReponse returns the document I just indexed. However my search
request (where is a query :QueryBuilders.matchAllQuery() ) returns no
My Question is this, What is the difference between the GetReponse request
and a SearchResposne request.
Is there a way for the SearchResponse to succeed in this environment
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/695422a4-0f8f-4877-9bfd-feb56292ab90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.