hi,
maybe i'm missing understanding internals of elasticsearch. want create embedded es node, keep indices persistent across multiple startups of application.
this startup code (executed on each application startup):
node node = nodebuilder().build().start(); then indexing/querying , @ time, application stop. if restart application, of data lost , new empty node created on fileystem.
is possible reuse created node data using java api?
your implementation creates "transparent" node until program shut down.
to make things independent, have download elastic search server here. keep nodes in harddisk , provide api access them.
with said, have connect java application server using transportclient(). information kept elastic search server , therefore accessible many clients. can query server curl.
Comments
Post a Comment