Java Elastic Search Index Location

This is how I'm doing in java api:
ImmutableSettings.Builder settings =
ImmutableSettings.settingsBuilder();
settings.put("path.home",System.getProperty("user.home")+"/
elasticSearch");
settings.put("number_of_shards",1);
settings.put("number_of_replicas",0);
Node node =
NodeBuilder.nodeBuilder().settings(settings).clusterName("firstCluster").node();

Client client = node.client();
client.admin().cluster().prepareHealth().setWaitForYellowStatus().execute().actionGet();

client.prepareIndex("searchdata", "exhibitor", "9999").setSource("My
data information").execute().actionGet();

When I use this to create node and index, it creates the folder
"elasticSearch" under my home directory. But even after I remove
"elasticSearch" folder, it still does search. So I have no clue where
it is grabbing the indexed data after I have completely deleted
"elasticSearch" folder. Any suggestions?

Thanks

If you set path.home, then the data location is based on that by default (
Elasticsearch Platform — Find real-time answers at scale | Elastic). Can
you check if under "user.home"/elasticSearch you have more data
(nodes/0/indices/...)?

On Mon, Mar 19, 2012 at 7:43 PM, Satish satish.baniya@gmail.com wrote:

This is how I'm doing in java api:
ImmutableSettings.Builder settings =
ImmutableSettings.settingsBuilder();
settings.put("path.home",System.getProperty("user.home")+"/
elasticSearch");
settings.put("number_of_shards",1);
settings.put("number_of_replicas",0);
Node node =

NodeBuilder.nodeBuilder().settings(settings).clusterName("firstCluster").node();

Client client = node.client();

client.admin().cluster().prepareHealth().setWaitForYellowStatus().execute().actionGet();

client.prepareIndex("searchdata", "exhibitor", "9999").setSource("My
data information").execute().actionGet();

When I use this to create node and index, it creates the folder
"elasticSearch" under my home directory. But even after I remove
"elasticSearch" folder, it still does search. So I have no clue where
it is grabbing the indexed data after I have completely deleted
"elasticSearch" folder. Any suggestions?

Thanks

Yes, I have more folders inside (nodes/0/indices...). This is how my
folder structure under (nodes/0/indices...) as follows:
-/nodes

    • /0
      • /indices
        • /searchdata
          • /0
            • /index
            • /translog
          • /1
            • /index
            • /translog

Inside index and translog folders, I have few files.

Inside folder indices, I have folder searchdata.
Inside folder searchdata, I have two folders, and they are folder 0
and folder 1.
Inside both folders 0 and 1, I have tow folders on each and they are
folder index and folder translog.

I'm using elasticSerach-0.18.5 version. Do you think my version of
Elasticsearch may be an issue?

Thanks

On Mar 20, 4:39 am, Shay Banon kim...@gmail.com wrote:

If you set path.home, then the data location is based on that by default (Elasticsearch Platform — Find real-time answers at scale | Elastic). Can
you check if under "user.home"/elasticSearch you have more data
(nodes/0/indices/...)?

On Mon, Mar 19, 2012 at 7:43 PM, Satish satish.ban...@gmail.com wrote:

This is how I'm doing in java api:
ImmutableSettings.Builder settings =
ImmutableSettings.settingsBuilder();
settings.put("path.home",System.getProperty("user.home")+"/
elasticSearch");
settings.put("number_of_shards",1);
settings.put("number_of_replicas",0);
Node node =

NodeBuilder.nodeBuilder().settings(settings).clusterName("firstCluster").no de();

Client client = node.client();

client.admin().cluster().prepareHealth().setWaitForYellowStatus().execute() .actionGet();

client.prepareIndex("searchdata", "exhibitor", "9999").setSource("My
data information").execute().actionGet();

When I use this to create node and index, it creates the folder
"elasticSearch" under my home directory. But even after I remove
"elasticSearch" folder, it still does search. So I have no clue where
it is grabbing the indexed data after I have completely deleted
"elasticSearch" folder. Any suggestions?

Thanks

I have upgraded elasticSearch to 0.19.1 today and it seemed to fix the problem. Now if I remove the elasticsSearch folder, it is NOT doing search from "thin" air. Do you think a version might had a fix for my issue?
Thanks,
Satish

No, there wasn't anything fixed in that area..., it feels like maybe you
fixed something else while you were at it?

On Wed, Mar 21, 2012 at 11:14 PM, samCougars sbaniya@gmail.com wrote:

I have upgraded elasticSearch to 0.19.1 today and it seemed to fix the
problem. Now if I remove the elasticsSearch folder, it is NOT doing search
from "thin" air. Do you think a version might had a fix for my issue?
Thanks,
Satish

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Java-Elastic-Search-Index-Location-tp3839752p3846871.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.