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?
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?
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?
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"?
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"?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.