Use of setting path.data value?


(cheepu) #1

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


(Shay Banon) #2

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


(cheepu) #3

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


(Shay Banon) #4

You might have hit this bug which is fixed in master:
https://github.com/elasticsearch/elasticsearch/issues/closed#issue/579.

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.


(system) #5