Not sure I got the question. If you set the data path, then thats where the
index will be stored. Are you suggesting that executing a search with a
query when not setting the data path works, and if you set the data path, it
stops working? Are you sure you have data in the index? Have you refreshed
before you do the search to make sure you are searching on the freshest
data?
On Wed, Jan 5, 2011 at 12:34 PM, Cheepu Jain cheeputech@gmail.com wrote:
Hi
I am using the following setting:
Settings
settings=ImmutableSettings.settingsBuilder()
.put("index.number_of_shards",1)
.put("path.logs","f:/mylogs")
.put("path.data","f:/
mydata")
.build();
Node node =
NodeBuilder.nodeBuilder().settings(settings).node().start();Thus my index is created in the f:/mydata and the ElasticHome
directory.
When i search the qyery it is found. If i delete the f:/mydata
directory then also it searches the query.
I could not understand the use of this. Why it is used ? If i seprate
the index from the server directory completely then what I will have
to do?Thanks