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.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?
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 =
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?
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?
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 =
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?
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
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.