Use of setting path.data value?

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

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

I am getting the query results in both the cases.
The data is created in both the location i) In the ES_Home and ii) where i specified the location.
but the searching is done from the data folder inside the server; because when I delete the folder delete the folder from the location path.data I get the hits.
So what is the purpose to create the data in the other location using "path.data"?

Thanks

You might have hit this bug which is fixed in master:
Issues · elastic/elasticsearch · GitHub.

On Wed, Jan 5, 2011 at 2:43 PM, cheepu cheeputech@gmail.com wrote:

I am getting the query results in both the cases.
The data is created in both the location i) In the ES_Home and ii) where i
specified the location.
but the searching is done from the data folder inside the server; because
when I delete the folder delete the folder from the location path.data I
get
the hits.
So what is the purpose to create the data in the other location using
"path.data"?

Thanks

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/use-of-setting-path-data-value-tp2197758p2198351.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.