# How to resolve the index missing exception

**URL:** <https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185>\
**Category:** Elasticsearch\
**Created:** [March 18, 2013, 7:45am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185 "2013-03-18T07:45:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 18, 2013, 7:45am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/1 "2013-03-18T07:45:40Z")

</div>

Hi All,

i have used in windows system to search based on text using elastic  
search java api..it is working.. when i moved it into linux i am getting  
index not found exception..

[dc\_user\_idx] missing

is there any thing missing.?

this is java code:

Node node = NodeBuilder.nodeBuilder().client(true).node();  
Client client = node.client();  
SearchResponse response = null;

```
    response = 

```

client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
.setTypes("DC\_USER").execute().actionGet();  
SearchHit[] results = response.getHits().getHits();

for (SearchHit hit : results) {  
result.put(""+count, hit.getSource()); // the retrieved document  
list.add(hit.getSource());  
}

[http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)

output:

{  
"\_index" : "\_river",  
"\_type" : "dc\_user\_river",  
"\_id" : "\_status",  
"\_version" : 2,  
"exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
}

[http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)

{  
"cluster\_name" : "DC\_Cluster",  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 91,  
"active\_shards" : 91,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 91  
}  
can one help me..

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 18, 2013, 9:21am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/2 "2013-03-18T09:21:59Z")

</div>

Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 18 mars 2013 à 08:45, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> Hi All,
> 
> i have used in windows system to search based on text using Elasticsearch java api..it is working.. when i moved it into linux i am getting index not found exception..  
> [dc\_user\_idx] missing
> 
> is there any thing missing.?
> 
> this is java code:
> 
> Node node = NodeBuilder.nodeBuilder().client(true).node();  
> Client client = node.client();  
> SearchResponse response = null;
> 
> ```
> response = client.prepareSearch().setQuery(QueryBuilders.queryString("*"+searchText+"*").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc_user_idx")
> .setTypes("DC_USER").execute().actionGet();
> 
> ```
> 
> SearchHit results = response.getHits().getHits();
> 
> for (SearchHit hit : results) {  
> result.put(""+count, hit.getSource()); // the retrieved document  
> list.add(hit.getSource());  
> }
> 
> [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> 
> output:
> 
> {  
> "\_index" : "\_river",  
> "\_type" : "dc\_user\_river",  
> "\_id" : "\_status",  
> "\_version" : 2,  
> "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> }
> 
> [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> 
> {  
> "cluster\_name" : "DC\_Cluster",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 91,  
> "active\_shards" : 91,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 91  
> }  
> can one help me..
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 18, 2013, 10:11am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/3 "2013-03-18T10:11:31Z")

</div>

Hi David..

i getting this output: only 5 shards are getting success..

{  
"ok" : true,  
"\_shards" : {  
"total" : 10,  
"successful" : 5,  
"failed" : 0  
},  
"indices" : {  
"dc\_user\_idx" : {  
"index" : {  
"primary\_size" : "305.8kb",  
"primary\_size\_in\_bytes" : 313183,  
"size" : "305.8kb",  
"size\_in\_bytes" : 313183  
},  
"translog" : {  
"operations" : 354  
},  
"docs" : {  
"num\_docs" : 350,  
"max\_doc" : 352,  
"deleted\_docs" : 2  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 12,  
"total\_time" : "149ms",  
"total\_time\_in\_millis" : 149  
},  
"flush" : {  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
},  
"shards" : {  
"0" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "k54i3bPZRiKvtsrWCqXbPg",  
"relocating\_node" : null,  
"shard" : 0,  
"index" : "dc\_user\_idx"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "68.6kb",  
"size\_in\_bytes" : 70261  
},  
"translog" : {  
"id" : 1363601429673,  
"operations" : 79  
},  
"docs" : {  
"num\_docs" : 79,  
"max\_doc" : 79,  
"deleted\_docs" : 0  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 3,  
"total\_time" : "26ms",  
"total\_time\_in\_millis" : 26  
},  
"flush" : {  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
}  
} ],  
"1" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "k54i3bPZRiKvtsrWCqXbPg",  
"relocating\_node" : null,  
"shard" : 1,  
"index" : "dc\_user\_idx"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "73.8kb",  
"size\_in\_bytes" : 75662  
},  
"translog" : {  
"id" : 1363601429734,  
"operations" : 87  
},  
"docs" : {  
"num\_docs" : 87,  
"max\_doc" : 87,  
"deleted\_docs" : 0  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 3,  
"total\_time" : "41ms",  
"total\_time\_in\_millis" : 41  
},  
"flush" : {  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
}  
} ],  
"2" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "k54i3bPZRiKvtsrWCqXbPg",  
"relocating\_node" : null,  
"shard" : 2,  
"index" : "dc\_user\_idx"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "63.2kb",  
"size\_in\_bytes" : 64776  
},  
"translog" : {  
"id" : 1363601430455,  
"operations" : 73  
},  
"docs" : {  
"num\_docs" : 73,  
"max\_doc" : 73,  
"deleted\_docs" : 0  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 2,  
"total\_time" : "19ms",  
"total\_time\_in\_millis" : 19  
},  
"flush" : {  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
}  
} ],  
"3" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "k54i3bPZRiKvtsrWCqXbPg",  
"relocating\_node" : null,  
"shard" : 3,  
"index" : "dc\_user\_idx"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "46.1kb",  
"size\_in\_bytes" : 47292  
},  
"translog" : {  
"id" : 1363601429801,  
"operations" : 53  
},  
"docs" : {  
"num\_docs" : 51,  
"max\_doc" : 52,  
"deleted\_docs" : 1  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 2,  
"total\_time" : "20ms",  
"total\_time\_in\_millis" : 20  
},  
"flush" : {  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
}  
} ],  
"4" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "k54i3bPZRiKvtsrWCqXbPg",  
"relocating\_node" : null,  
"shard" : 4,  
"index" : "dc\_user\_idx"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "53.8kb",  
"size\_in\_bytes" : 55192  
},  
"translog" : {  
"id" : 1363601429868,  
"operations" : 62  
},  
"docs" : {  
"num\_docs" : 60,  
"max\_doc" : 61,  
"deleted\_docs" : 1  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 2,  
"total\_time" : "43ms",  
"total\_time\_in\_millis" : 43  
},  
"flush" : {  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
}  
} ]  
}  
}  
}  
}

On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:

> Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 18 mars 2013 à 08:45, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> Hi All,
> 
> i have used in windows system to search based on text using elastic  
> search java api..it is working.. when i moved it into linux i am getting  
> index not found exception..
> 
> [dc\_user\_idx] missing
> 
> is there any thing missing.?
> 
> this is java code:
> 
> Node node = NodeBuilder.nodeBuilder().client(true).node();  
> Client client = node.client();  
> SearchResponse response = null;
> 
> ```
> response = 
> 
> ```
> 
> client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> .setTypes("DC\_USER").execute().actionGet();  
> SearchHit results = response.getHits().getHits();
> 
> for (SearchHit hit : results) {  
> result.put(""+count, hit.getSource()); // the retrieved document  
> list.add(hit.getSource());  
> }
> 
> [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> 
> output:
> 
> {  
> "\_index" : "\_river",  
> "\_type" : "dc\_user\_river",  
> "\_id" : "\_status",  
> "\_version" : 2,  
> "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> }
> 
> [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> 
> {  
> "cluster\_name" : "DC\_Cluster",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 91,  
> "active\_shards" : 91,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 91  
> }  
> can one help me..
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 18, 2013, 10:13am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/4 "2013-03-18T10:13:38Z")

</div>

Are you sure you are joining the cluster in Java?  
What do you see in Java logs?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 18 mars 2013 à 11:11, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> Hi David..
> 
> i getting this output: only 5 shards are getting success..
> 
> {  
> "ok" : true,  
> "\_shards" : {  
> "total" : 10,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "indices" : {  
> "dc\_user\_idx" : {  
> "index" : {  
> "primary\_size" : "305.8kb",  
> "primary\_size\_in\_bytes" : 313183,  
> "size" : "305.8kb",  
> "size\_in\_bytes" : 313183  
> },  
> "translog" : {  
> "operations" : 354  
> },  
> "docs" : {  
> "num\_docs" : 350,  
> "max\_doc" : 352,  
> "deleted\_docs" : 2  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 12,  
> "total\_time" : "149ms",  
> "total\_time\_in\_millis" : 149  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "shards" : {  
> "0" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 0,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "68.6kb",  
> "size\_in\_bytes" : 70261  
> },  
> "translog" : {  
> "id" : 1363601429673,  
> "operations" : 79  
> },  
> "docs" : {  
> "num\_docs" : 79,  
> "max\_doc" : 79,  
> "deleted\_docs" : 0  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 3,  
> "total\_time" : "26ms",  
> "total\_time\_in\_millis" : 26  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ],  
> "1" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 1,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "73.8kb",  
> "size\_in\_bytes" : 75662  
> },  
> "translog" : {  
> "id" : 1363601429734,  
> "operations" : 87  
> },  
> "docs" : {  
> "num\_docs" : 87,  
> "max\_doc" : 87,  
> "deleted\_docs" : 0  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 3,  
> "total\_time" : "41ms",  
> "total\_time\_in\_millis" : 41  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ],  
> "2" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 2,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "63.2kb",  
> "size\_in\_bytes" : 64776  
> },  
> "translog" : {  
> "id" : 1363601430455,  
> "operations" : 73  
> },  
> "docs" : {  
> "num\_docs" : 73,  
> "max\_doc" : 73,  
> "deleted\_docs" : 0  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 2,  
> "total\_time" : "19ms",  
> "total\_time\_in\_millis" : 19  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ],  
> "3" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 3,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "46.1kb",  
> "size\_in\_bytes" : 47292  
> },  
> "translog" : {  
> "id" : 1363601429801,  
> "operations" : 53  
> },  
> "docs" : {  
> "num\_docs" : 51,  
> "max\_doc" : 52,  
> "deleted\_docs" : 1  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 2,  
> "total\_time" : "20ms",  
> "total\_time\_in\_millis" : 20  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ],  
> "4" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 4,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "53.8kb",  
> "size\_in\_bytes" : 55192  
> },  
> "translog" : {  
> "id" : 1363601429868,  
> "operations" : 62  
> },  
> "docs" : {  
> "num\_docs" : 60,  
> "max\_doc" : 61,  
> "deleted\_docs" : 1  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 2,  
> "total\_time" : "43ms",  
> "total\_time\_in\_millis" : 43  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ]  
> }  
> }  
> }  
> }
> 
> On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:  
> Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 18 mars 2013 à 08:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> 
> > Hi All,
> > 
> > i have used in windows system to search based on text using Elasticsearch java api..it is working.. when i moved it into linux i am getting index not found exception..  
> > [dc\_user\_idx] missing
> > 
> > is there any thing missing.?
> > 
> > this is java code:
> > 
> > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > Client client = node.client();  
> > SearchResponse response = null;
> > 
> > ```
> > response = client.prepareSearch().setQuery(QueryBuilders.queryString("*"+searchText+"*").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc_user_idx")
> > .setTypes("DC_USER").execute().actionGet();
> > 
> > ```
> > 
> > SearchHit results = response.getHits().getHits();
> > 
> > for (SearchHit hit : results) {  
> > result.put(""+count, hit.getSource()); // the retrieved document  
> > list.add(hit.getSource());  
> > }
> > 
> > [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> > 
> > output:
> > 
> > {  
> > "\_index" : "\_river",  
> > "\_type" : "dc\_user\_river",  
> > "\_id" : "\_status",  
> > "\_version" : 2,  
> > "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> > }
> > 
> > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > 
> > {  
> > "cluster\_name" : "DC\_Cluster",  
> > "status" : "yellow",  
> > "timed\_out" : false,  
> > "number\_of\_nodes" : 1,  
> > "number\_of\_data\_nodes" : 1,  
> > "active\_primary\_shards" : 91,  
> > "active\_shards" : 91,  
> > "relocating\_shards" : 0,  
> > "initializing\_shards" : 0,  
> > "unassigned\_shards" : 91  
> > }  
> > can one help me..
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 18, 2013, 10:59am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/5 "2013-03-18T10:59:56Z")

</div>

in elasticsearch.yml

i have given clustername =MyCluster

network:  
host: 10.0.0.12

and es.properties

# Node test setup

cluster.name=dc-cluster  
name=junit.node

# Disable network

discovery.zen.ping.multicast.enabled=false  
node.local=true  
#transport.tcp.port=9300-9400  
#discovery.zen.ping.unicast.hosts=localhost

# Using less filesystem as possible

index.store.type=memory  
index.store.fs.memory.enabled=true  
index.gateway.type=none  
gateway.type=none

# If ES needs to write something, it's here

path.data=/es/twitter

# Index are minimalists by default

index.number\_of\_shards=0  
index.number\_of\_replicas=1

in java..  
Node node = NodeBuilder.nodeBuilder().client(true).node();  
Client client = node.client();  
is there any thing is missing

On Monday, March 18, 2013 3:43:38 PM UTC+5:30, David Pilato wrote:

> Are you sure you are joining the cluster in Java?  
> What do you see in Java logs?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 18 mars 2013 à 11:11, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> Hi David..
> 
> i getting this output: only 5 shards are getting success..
> 
> {  
> "ok" : true,  
> "\_shards" : {  
> "total" : 10,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "indices" : {  
> "dc\_user\_idx" : {  
> "index" : {  
> "primary\_size" : "305.8kb",  
> "primary\_size\_in\_bytes" : 313183,  
> "size" : "305.8kb",  
> "size\_in\_bytes" : 313183  
> },  
> "translog" : {  
> "operations" : 354  
> },  
> "docs" : {  
> "num\_docs" : 350,  
> "max\_doc" : 352,  
> "deleted\_docs" : 2  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 12,  
> "total\_time" : "149ms",  
> "total\_time\_in\_millis" : 149  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "shards" : {  
> "0" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 0,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "68.6kb",  
> "size\_in\_bytes" : 70261  
> },  
> "translog" : {  
> "id" : 1363601429673,  
> "operations" : 79  
> },  
> "docs" : {  
> "num\_docs" : 79,  
> "max\_doc" : 79,  
> "deleted\_docs" : 0  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 3,  
> "total\_time" : "26ms",  
> "total\_time\_in\_millis" : 26  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ],  
> "1" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 1,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "73.8kb",  
> "size\_in\_bytes" : 75662  
> },  
> "translog" : {  
> "id" : 1363601429734,  
> "operations" : 87  
> },  
> "docs" : {  
> "num\_docs" : 87,  
> "max\_doc" : 87,  
> "deleted\_docs" : 0  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 3,  
> "total\_time" : "41ms",  
> "total\_time\_in\_millis" : 41  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ],  
> "2" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 2,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "63.2kb",  
> "size\_in\_bytes" : 64776  
> },  
> "translog" : {  
> "id" : 1363601430455,  
> "operations" : 73  
> },  
> "docs" : {  
> "num\_docs" : 73,  
> "max\_doc" : 73,  
> "deleted\_docs" : 0  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 2,  
> "total\_time" : "19ms",  
> "total\_time\_in\_millis" : 19  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ],  
> "3" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 3,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "46.1kb",  
> "size\_in\_bytes" : 47292  
> },  
> "translog" : {  
> "id" : 1363601429801,  
> "operations" : 53  
> },  
> "docs" : {  
> "num\_docs" : 51,  
> "max\_doc" : 52,  
> "deleted\_docs" : 1  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 2,  
> "total\_time" : "20ms",  
> "total\_time\_in\_millis" : 20  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ],  
> "4" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> "relocating\_node" : null,  
> "shard" : 4,  
> "index" : "dc\_user\_idx"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "53.8kb",  
> "size\_in\_bytes" : 55192  
> },  
> "translog" : {  
> "id" : 1363601429868,  
> "operations" : 62  
> },  
> "docs" : {  
> "num\_docs" : 60,  
> "max\_doc" : 61,  
> "deleted\_docs" : 1  
> },  
> "merges" : {  
> "current" : 0,  
> "current\_docs" : 0,  
> "current\_size" : "0b",  
> "current\_size\_in\_bytes" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0,  
> "total\_docs" : 0,  
> "total\_size" : "0b",  
> "total\_size\_in\_bytes" : 0  
> },  
> "refresh" : {  
> "total" : 2,  
> "total\_time" : "43ms",  
> "total\_time\_in\_millis" : 43  
> },  
> "flush" : {  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> }  
> } ]  
> }  
> }  
> }  
> }
> 
> On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:
> 
> > Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 18 mars 2013 à 08:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > Hi All,
> > 
> > i have used in windows system to search based on text using elastic  
> > search java api..it is working.. when i moved it into linux i am getting  
> > index not found exception..
> > 
> > [dc\_user\_idx] missing
> > 
> > is there any thing missing.?
> > 
> > this is java code:
> > 
> > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > Client client = node.client();  
> > SearchResponse response = null;
> > 
> > ```
> > response = 
> > 
> > ```
> > 
> > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > .setTypes("DC\_USER").execute().actionGet();  
> > SearchHit results = response.getHits().getHits();
> > 
> > for (SearchHit hit : results) {  
> > result.put(""+count, hit.getSource()); // the retrieved document  
> > list.add(hit.getSource());  
> > }
> > 
> > [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> > 
> > output:
> > 
> > {  
> > "\_index" : "\_river",  
> > "\_type" : "dc\_user\_river",  
> > "\_id" : "\_status",  
> > "\_version" : 2,  
> > "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> > }
> > 
> > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > 
> > {  
> > "cluster\_name" : "DC\_Cluster",  
> > "status" : "yellow",  
> > "timed\_out" : false,  
> > "number\_of\_nodes" : 1,  
> > "number\_of\_data\_nodes" : 1,  
> > "active\_primary\_shards" : 91,  
> > "active\_shards" : 91,  
> > "relocating\_shards" : 0,  
> > "initializing\_shards" : 0,  
> > "unassigned\_shards" : 91  
> > }  
> > can one help me..
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 18, 2013, 11:30am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/6 "2013-03-18T11:30:14Z")

</div>

this is java code:

Node node = NodeBuilder.nodeBuilder().  
client(true).node();  
Client client = node.client();  
SearchResponse response = null;

```
    response = 

```

client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
.setTypes("DC\_USER").execute().actionGet();  
SearchHit results = response.getHits().getHits();

for (SearchHit hit : results) {  
result.put(""+count, hit.getSource()); // the retrieved document  
list.add(hit.getSource());  
}

[http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)

On Monday, March 18, 2013 4:29:56 PM UTC+5:30, srikanth gone wrote:

> in elasticsearch.yml
> 
> i have given clustername =MyCluster
> 
> network:  
> host: 10.0.0.12
> 
> and es.properties
> 
> # Node test setup
> 
> cluster.name=dc-cluster  
> name=junit.node
> 
> # Disable network
> 
> discovery.zen.ping.multicast.enabled=false  
> node.local=true  
> #transport.tcp.port=9300-9400  
> #discovery.zen.ping.unicast.hosts=localhost
> 
> # Using less filesystem as possible
> 
> index.store.type=memory  
> index.store.fs.memory.enabled=true  
> index.gateway.type=none  
> gateway.type=none
> 
> # If ES needs to write something, it's here
> 
> path.data=/es/twitter
> 
> # Index are minimalists by default
> 
> index.number\_of\_shards=0  
> index.number\_of\_replicas=1
> 
> in java..  
> Node node = NodeBuilder.nodeBuilder().client(true).node();  
> Client client = node.client();  
> is there any thing is missing
> 
> On Monday, March 18, 2013 3:43:38 PM UTC+5:30, David Pilato wrote:
> 
> > Are you sure you are joining the cluster in Java?  
> > What do you see in Java logs?
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 18 mars 2013 à 11:11, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > Hi David..
> > 
> > i getting this output: only 5 shards are getting success..
> > 
> > {  
> > "ok" : true,  
> > "\_shards" : {  
> > "total" : 10,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "indices" : {  
> > "dc\_user\_idx" : {  
> > "index" : {  
> > "primary\_size" : "305.8kb",  
> > "primary\_size\_in\_bytes" : 313183,  
> > "size" : "305.8kb",  
> > "size\_in\_bytes" : 313183  
> > },  
> > "translog" : {  
> > "operations" : 354  
> > },  
> > "docs" : {  
> > "num\_docs" : 350,  
> > "max\_doc" : 352,  
> > "deleted\_docs" : 2  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 12,  
> > "total\_time" : "149ms",  
> > "total\_time\_in\_millis" : 149  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "shards" : {  
> > "0" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 0,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "68.6kb",  
> > "size\_in\_bytes" : 70261  
> > },  
> > "translog" : {  
> > "id" : 1363601429673,  
> > "operations" : 79  
> > },  
> > "docs" : {  
> > "num\_docs" : 79,  
> > "max\_doc" : 79,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 3,  
> > "total\_time" : "26ms",  
> > "total\_time\_in\_millis" : 26  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "1" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 1,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "73.8kb",  
> > "size\_in\_bytes" : 75662  
> > },  
> > "translog" : {  
> > "id" : 1363601429734,  
> > "operations" : 87  
> > },  
> > "docs" : {  
> > "num\_docs" : 87,  
> > "max\_doc" : 87,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 3,  
> > "total\_time" : "41ms",  
> > "total\_time\_in\_millis" : 41  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "2" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 2,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "63.2kb",  
> > "size\_in\_bytes" : 64776  
> > },  
> > "translog" : {  
> > "id" : 1363601430455,  
> > "operations" : 73  
> > },  
> > "docs" : {  
> > "num\_docs" : 73,  
> > "max\_doc" : 73,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "19ms",  
> > "total\_time\_in\_millis" : 19  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "3" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 3,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "46.1kb",  
> > "size\_in\_bytes" : 47292  
> > },  
> > "translog" : {  
> > "id" : 1363601429801,  
> > "operations" : 53  
> > },  
> > "docs" : {  
> > "num\_docs" : 51,  
> > "max\_doc" : 52,  
> > "deleted\_docs" : 1  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "20ms",  
> > "total\_time\_in\_millis" : 20  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "4" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 4,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "53.8kb",  
> > "size\_in\_bytes" : 55192  
> > },  
> > "translog" : {  
> > "id" : 1363601429868,  
> > "operations" : 62  
> > },  
> > "docs" : {  
> > "num\_docs" : 60,  
> > "max\_doc" : 61,  
> > "deleted\_docs" : 1  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "43ms",  
> > "total\_time\_in\_millis" : 43  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ]  
> > }  
> > }  
> > }  
> > }
> > 
> > On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:
> > 
> > > Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 18 mars 2013 à 08:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > Hi All,
> > > 
> > > i have used in windows system to search based on text using elastic  
> > > search java api..it is working.. when i moved it into linux i am getting  
> > > index not found exception..
> > > 
> > > [dc\_user\_idx] missing
> > > 
> > > is there any thing missing.?
> > > 
> > > this is java code:
> > > 
> > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > Client client = node.client();  
> > > SearchResponse response = null;
> > > 
> > > ```
> > > response = 
> > > 
> > > ```
> > > 
> > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > .setTypes("DC\_USER").execute().actionGet();  
> > > SearchHit results = response.getHits().getHits();
> > > 
> > > for (SearchHit hit : results) {  
> > > result.put(""+count, hit.getSource()); // the retrieved document  
> > > list.add(hit.getSource());  
> > > }
> > > 
> > > [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> > > 
> > > output:
> > > 
> > > {  
> > > "\_index" : "\_river",  
> > > "\_type" : "dc\_user\_river",  
> > > "\_id" : "\_status",  
> > > "\_version" : 2,  
> > > "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> > > }
> > > 
> > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > 
> > > {  
> > > "cluster\_name" : "DC\_Cluster",  
> > > "status" : "yellow",  
> > > "timed\_out" : false,  
> > > "number\_of\_nodes" : 1,  
> > > "number\_of\_data\_nodes" : 1,  
> > > "active\_primary\_shards" : 91,  
> > > "active\_shards" : 91,  
> > > "relocating\_shards" : 0,  
> > > "initializing\_shards" : 0,  
> > > "unassigned\_shards" : 91  
> > > }  
> > > can one help me..
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 18, 2013, 11:30am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/7 "2013-03-18T11:30:57Z")

</div>

## Cluster names are not equals. Your client probably is not able to join the cluster.

David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 18 mars 2013 à 11:59, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> in elasticsearch.yml
> 
> i have given clustername =MyCluster
> 
> network:  
> host: 10.0.0.12
> 
> and es.properties
> 
> # Node test setup
> 
> cluster.name=dc-cluster  
> name=junit.node
> 
> # Disable network
> 
> discovery.zen.ping.multicast.enabled=false  
> node.local=true  
> #transport.tcp.port=9300-9400  
> #discovery.zen.ping.unicast.hosts=localhost
> 
> # Using less filesystem as possible
> 
> index.store.type=memory  
> index.store.fs.memory.enabled=true  
> index.gateway.type=none  
> gateway.type=none
> 
> # If ES needs to write something, it's here
> 
> path.data=/es/twitter
> 
> # Index are minimalists by default
> 
> index.number\_of\_shards=0  
> index.number\_of\_replicas=1
> 
> in java..  
> Node node = NodeBuilder.nodeBuilder().client(true).node();  
> Client client = node.client();  
> is there any thing is missing
> 
> On Monday, March 18, 2013 3:43:38 PM UTC+5:30, David Pilato wrote:  
> Are you sure you are joining the cluster in Java?  
> What do you see in Java logs?
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 18 mars 2013 à 11:11, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> 
> > Hi David..
> > 
> > i getting this output: only 5 shards are getting success..
> > 
> > {  
> > "ok" : true,  
> > "\_shards" : {  
> > "total" : 10,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "indices" : {  
> > "dc\_user\_idx" : {  
> > "index" : {  
> > "primary\_size" : "305.8kb",  
> > "primary\_size\_in\_bytes" : 313183,  
> > "size" : "305.8kb",  
> > "size\_in\_bytes" : 313183  
> > },  
> > "translog" : {  
> > "operations" : 354  
> > },  
> > "docs" : {  
> > "num\_docs" : 350,  
> > "max\_doc" : 352,  
> > "deleted\_docs" : 2  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 12,  
> > "total\_time" : "149ms",  
> > "total\_time\_in\_millis" : 149  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "shards" : {  
> > "0" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 0,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "68.6kb",  
> > "size\_in\_bytes" : 70261  
> > },  
> > "translog" : {  
> > "id" : 1363601429673,  
> > "operations" : 79  
> > },  
> > "docs" : {  
> > "num\_docs" : 79,  
> > "max\_doc" : 79,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 3,  
> > "total\_time" : "26ms",  
> > "total\_time\_in\_millis" : 26  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "1" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 1,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "73.8kb",  
> > "size\_in\_bytes" : 75662  
> > },  
> > "translog" : {  
> > "id" : 1363601429734,  
> > "operations" : 87  
> > },  
> > "docs" : {  
> > "num\_docs" : 87,  
> > "max\_doc" : 87,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 3,  
> > "total\_time" : "41ms",  
> > "total\_time\_in\_millis" : 41  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "2" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 2,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "63.2kb",  
> > "size\_in\_bytes" : 64776  
> > },  
> > "translog" : {  
> > "id" : 1363601430455,  
> > "operations" : 73  
> > },  
> > "docs" : {  
> > "num\_docs" : 73,  
> > "max\_doc" : 73,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "19ms",  
> > "total\_time\_in\_millis" : 19  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "3" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 3,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "46.1kb",  
> > "size\_in\_bytes" : 47292  
> > },  
> > "translog" : {  
> > "id" : 1363601429801,  
> > "operations" : 53  
> > },  
> > "docs" : {  
> > "num\_docs" : 51,  
> > "max\_doc" : 52,  
> > "deleted\_docs" : 1  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "20ms",  
> > "total\_time\_in\_millis" : 20  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "4" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 4,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "53.8kb",  
> > "size\_in\_bytes" : 55192  
> > },  
> > "translog" : {  
> > "id" : 1363601429868,  
> > "operations" : 62  
> > },  
> > "docs" : {  
> > "num\_docs" : 60,  
> > "max\_doc" : 61,  
> > "deleted\_docs" : 1  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "43ms",  
> > "total\_time\_in\_millis" : 43  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ]  
> > }  
> > }  
> > }  
> > }
> > 
> > On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:  
> > Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> > 
> > --  
> > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > @dadoonet | @elasticsearchfr | @scrutmydocs
> > 
> > Le 18 mars 2013 à 08:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > > Hi All,
> > > 
> > > i have used in windows system to search based on text using Elasticsearch java api..it is working.. when i moved it into linux i am getting index not found exception..  
> > > [dc\_user\_idx] missing
> > > 
> > > is there any thing missing.?
> > > 
> > > this is java code:
> > > 
> > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > Client client = node.client();  
> > > SearchResponse response = null;
> > > 
> > > ```
> > > response = client.prepareSearch().setQuery(QueryBuilders.queryString("*"+searchText+"*").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc_user_idx")
> > > .setTypes("DC_USER").execute().actionGet();
> > > 
> > > ```
> > > 
> > > SearchHit results = response.getHits().getHits();
> > > 
> > > for (SearchHit hit : results) {  
> > > result.put(""+count, hit.getSource()); // the retrieved document  
> > > list.add(hit.getSource());  
> > > }
> > > 
> > > [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> > > 
> > > output:
> > > 
> > > {  
> > > "\_index" : "\_river",  
> > > "\_type" : "dc\_user\_river",  
> > > "\_id" : "\_status",  
> > > "\_version" : 2,  
> > > "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> > > }
> > > 
> > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > 
> > > {  
> > > "cluster\_name" : "DC\_Cluster",  
> > > "status" : "yellow",  
> > > "timed\_out" : false,  
> > > "number\_of\_nodes" : 1,  
> > > "number\_of\_data\_nodes" : 1,  
> > > "active\_primary\_shards" : 91,  
> > > "active\_shards" : 91,  
> > > "relocating\_shards" : 0,  
> > > "initializing\_shards" : 0,  
> > > "unassigned\_shards" : 91  
> > > }  
> > > can one help me..
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 18, 2013, 1:54pm UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/8 "2013-03-18T13:54:04Z")

</div>

how to give the cluster name from java.. i have not used the es.properties  
file

On Monday, March 18, 2013 5:01:00 PM UTC+5:30, David Pilato wrote:

> ## Cluster names are not equals. Your client probably is not able to join the cluster.
> 
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 18 mars 2013 à 11:59, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> in elasticsearch.yml
> 
> i have given clustername =MyCluster
> 
> network:  
> host: 10.0.0.12
> 
> and es.properties
> 
> # Node test setup
> 
> cluster.name=dc-cluster  
> name=junit.node
> 
> # Disable network
> 
> discovery.zen.ping.multicast.enabled=false  
> node.local=true  
> #transport.tcp.port=9300-9400  
> #discovery.zen.ping.unicast.hosts=localhost
> 
> # Using less filesystem as possible
> 
> index.store.type=memory  
> index.store.fs.memory.enabled=true  
> index.gateway.type=none  
> gateway.type=none
> 
> # If ES needs to write something, it's here
> 
> path.data=/es/twitter
> 
> # Index are minimalists by default
> 
> index.number\_of\_shards=0  
> index.number\_of\_replicas=1
> 
> in java..  
> Node node = NodeBuilder.nodeBuilder().client(true).node();  
> Client client = node.client();  
> is there any thing is missing
> 
> On Monday, March 18, 2013 3:43:38 PM UTC+5:30, David Pilato wrote:
> 
> > Are you sure you are joining the cluster in Java?  
> > What do you see in Java logs?
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > \*  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 18 mars 2013 à 11:11, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > Hi David..
> > 
> > i getting this output: only 5 shards are getting success..
> > 
> > {  
> > "ok" : true,  
> > "\_shards" : {  
> > "total" : 10,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "indices" : {  
> > "dc\_user\_idx" : {  
> > "index" : {  
> > "primary\_size" : "305.8kb",  
> > "primary\_size\_in\_bytes" : 313183,  
> > "size" : "305.8kb",  
> > "size\_in\_bytes" : 313183  
> > },  
> > "translog" : {  
> > "operations" : 354  
> > },  
> > "docs" : {  
> > "num\_docs" : 350,  
> > "max\_doc" : 352,  
> > "deleted\_docs" : 2  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 12,  
> > "total\_time" : "149ms",  
> > "total\_time\_in\_millis" : 149  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "shards" : {  
> > "0" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 0,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "68.6kb",  
> > "size\_in\_bytes" : 70261  
> > },  
> > "translog" : {  
> > "id" : 1363601429673,  
> > "operations" : 79  
> > },  
> > "docs" : {  
> > "num\_docs" : 79,  
> > "max\_doc" : 79,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 3,  
> > "total\_time" : "26ms",  
> > "total\_time\_in\_millis" : 26  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "1" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 1,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "73.8kb",  
> > "size\_in\_bytes" : 75662  
> > },  
> > "translog" : {  
> > "id" : 1363601429734,  
> > "operations" : 87  
> > },  
> > "docs" : {  
> > "num\_docs" : 87,  
> > "max\_doc" : 87,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 3,  
> > "total\_time" : "41ms",  
> > "total\_time\_in\_millis" : 41  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "2" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 2,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "63.2kb",  
> > "size\_in\_bytes" : 64776  
> > },  
> > "translog" : {  
> > "id" : 1363601430455,  
> > "operations" : 73  
> > },  
> > "docs" : {  
> > "num\_docs" : 73,  
> > "max\_doc" : 73,  
> > "deleted\_docs" : 0  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "19ms",  
> > "total\_time\_in\_millis" : 19  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "3" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 3,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "46.1kb",  
> > "size\_in\_bytes" : 47292  
> > },  
> > "translog" : {  
> > "id" : 1363601429801,  
> > "operations" : 53  
> > },  
> > "docs" : {  
> > "num\_docs" : 51,  
> > "max\_doc" : 52,  
> > "deleted\_docs" : 1  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "20ms",  
> > "total\_time\_in\_millis" : 20  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ],  
> > "4" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > "relocating\_node" : null,  
> > "shard" : 4,  
> > "index" : "dc\_user\_idx"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "53.8kb",  
> > "size\_in\_bytes" : 55192  
> > },  
> > "translog" : {  
> > "id" : 1363601429868,  
> > "operations" : 62  
> > },  
> > "docs" : {  
> > "num\_docs" : 60,  
> > "max\_doc" : 61,  
> > "deleted\_docs" : 1  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "current\_docs" : 0,  
> > "current\_size" : "0b",  
> > "current\_size\_in\_bytes" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0,  
> > "total\_docs" : 0,  
> > "total\_size" : "0b",  
> > "total\_size\_in\_bytes" : 0  
> > },  
> > "refresh" : {  
> > "total" : 2,  
> > "total\_time" : "43ms",  
> > "total\_time\_in\_millis" : 43  
> > },  
> > "flush" : {  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > }  
> > } ]  
> > }  
> > }  
> > }  
> > }
> > 
> > On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:
> > 
> > > Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > \*  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 18 mars 2013 à 08:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > Hi All,
> > > 
> > > i have used in windows system to search based on text using elastic  
> > > search java api..it is working.. when i moved it into linux i am getting  
> > > index not found exception..
> > > 
> > > [dc\_user\_idx] missing
> > > 
> > > is there any thing missing.?
> > > 
> > > this is java code:
> > > 
> > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > Client client = node.client();  
> > > SearchResponse response = null;
> > > 
> > > ```
> > > response = 
> > > 
> > > ```
> > > 
> > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > .setTypes("DC\_USER").execute().actionGet();  
> > > SearchHit results = response.getHits().getHits();
> > > 
> > > for (SearchHit hit : results) {  
> > > result.put(""+count, hit.getSource()); // the retrieved document  
> > > list.add(hit.getSource());  
> > > }
> > > 
> > > [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> > > 
> > > output:
> > > 
> > > {  
> > > "\_index" : "\_river",  
> > > "\_type" : "dc\_user\_river",  
> > > "\_id" : "\_status",  
> > > "\_version" : 2,  
> > > "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> > > }
> > > 
> > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > 
> > > {  
> > > "cluster\_name" : "DC\_Cluster",  
> > > "status" : "yellow",  
> > > "timed\_out" : false,  
> > > "number\_of\_nodes" : 1,  
> > > "number\_of\_data\_nodes" : 1,  
> > > "active\_primary\_shards" : 91,  
> > > "active\_shards" : 91,  
> > > "relocating\_shards" : 0,  
> > > "initializing\_shards" : 0,  
> > > "unassigned\_shards" : 91  
> > > }  
> > > can one help me..
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 18, 2013, 2:01pm UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/9 "2013-03-18T14:01:14Z")

</div>

Read: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 18 mars 2013 à 14:54, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> how to give the cluster name from java.. i have not used the es.properties file
> 
> ## On Monday, March 18, 2013 5:01:00 PM UTC+5:30, David Pilato wrote: Cluster names are not equals. Your client probably is not able to join the cluster.
> 
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 18 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> 
> > in elasticsearch.yml
> > 
> > i have given clustername =MyCluster
> > 
> > network:  
> > host: 10.0.0.12
> > 
> > and es.properties
> > 
> > # Node test setup
> > 
> > cluster.name=dc-cluster  
> > name=junit.node
> > 
> > # Disable network
> > 
> > discovery.zen.ping.multicast.enabled=false  
> > node.local=true  
> > #transport.tcp.port=9300-9400  
> > #discovery.zen.ping.unicast.hosts=localhost
> > 
> > # Using less filesystem as possible
> > 
> > index.store.type=memory  
> > index.store.fs.memory.enabled=true  
> > index.gateway.type=none  
> > gateway.type=none
> > 
> > # If ES needs to write something, it's here
> > 
> > path.data=/es/twitter
> > 
> > # Index are minimalists by default
> > 
> > index.number\_of\_shards=0  
> > index.number\_of\_replicas=1
> > 
> > in java..  
> > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > Client client = node.client();  
> > is there any thing is missing
> > 
> > On Monday, March 18, 2013 3:43:38 PM UTC+5:30, David Pilato wrote:  
> > Are you sure you are joining the cluster in Java?  
> > What do you see in Java logs?
> > 
> > --  
> > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > @dadoonet | @elasticsearchfr | @scrutmydocs
> > 
> > Le 18 mars 2013 à 11:11, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > > Hi David..
> > > 
> > > i getting this output: only 5 shards are getting success..
> > > 
> > > {  
> > > "ok" : true,  
> > > "\_shards" : {  
> > > "total" : 10,  
> > > "successful" : 5,  
> > > "failed" : 0  
> > > },  
> > > "indices" : {  
> > > "dc\_user\_idx" : {  
> > > "index" : {  
> > > "primary\_size" : "305.8kb",  
> > > "primary\_size\_in\_bytes" : 313183,  
> > > "size" : "305.8kb",  
> > > "size\_in\_bytes" : 313183  
> > > },  
> > > "translog" : {  
> > > "operations" : 354  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 350,  
> > > "max\_doc" : 352,  
> > > "deleted\_docs" : 2  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 12,  
> > > "total\_time" : "149ms",  
> > > "total\_time\_in\_millis" : 149  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > },  
> > > "shards" : {  
> > > "0" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 0,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "68.6kb",  
> > > "size\_in\_bytes" : 70261  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601429673,  
> > > "operations" : 79  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 79,  
> > > "max\_doc" : 79,  
> > > "deleted\_docs" : 0  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 3,  
> > > "total\_time" : "26ms",  
> > > "total\_time\_in\_millis" : 26  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ],  
> > > "1" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 1,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "73.8kb",  
> > > "size\_in\_bytes" : 75662  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601429734,  
> > > "operations" : 87  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 87,  
> > > "max\_doc" : 87,  
> > > "deleted\_docs" : 0  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 3,  
> > > "total\_time" : "41ms",  
> > > "total\_time\_in\_millis" : 41  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ],  
> > > "2" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 2,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "63.2kb",  
> > > "size\_in\_bytes" : 64776  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601430455,  
> > > "operations" : 73  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 73,  
> > > "max\_doc" : 73,  
> > > "deleted\_docs" : 0  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 2,  
> > > "total\_time" : "19ms",  
> > > "total\_time\_in\_millis" : 19  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ],  
> > > "3" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 3,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "46.1kb",  
> > > "size\_in\_bytes" : 47292  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601429801,  
> > > "operations" : 53  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 51,  
> > > "max\_doc" : 52,  
> > > "deleted\_docs" : 1  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 2,  
> > > "total\_time" : "20ms",  
> > > "total\_time\_in\_millis" : 20  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ],  
> > > "4" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 4,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "53.8kb",  
> > > "size\_in\_bytes" : 55192  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601429868,  
> > > "operations" : 62  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 60,  
> > > "max\_doc" : 61,  
> > > "deleted\_docs" : 1  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 2,  
> > > "total\_time" : "43ms",  
> > > "total\_time\_in\_millis" : 43  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ]  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:  
> > > Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> > > 
> > > --  
> > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > 
> > > Le 18 mars 2013 à 08:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > > Hi All,
> > > > 
> > > > i have used in windows system to search based on text using Elasticsearch java api..it is working.. when i moved it into linux i am getting index not found exception..  
> > > > [dc\_user\_idx] missing
> > > > 
> > > > is there any thing missing.?
> > > > 
> > > > this is java code:
> > > > 
> > > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > > Client client = node.client();  
> > > > SearchResponse response = null;
> > > > 
> > > > ```
> > > > response = client.prepareSearch().setQuery(QueryBuilders.queryString("*"+searchText+"*").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc_user_idx")
> > > > .setTypes("DC_USER").execute().actionGet();
> > > > 
> > > > ```
> > > > 
> > > > SearchHit results = response.getHits().getHits();
> > > > 
> > > > for (SearchHit hit : results) {  
> > > > result.put(""+count, hit.getSource()); // the retrieved document  
> > > > list.add(hit.getSource());  
> > > > }
> > > > 
> > > > [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> > > > 
> > > > output:
> > > > 
> > > > {  
> > > > "\_index" : "\_river",  
> > > > "\_type" : "dc\_user\_river",  
> > > > "\_id" : "\_status",  
> > > > "\_version" : 2,  
> > > > "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> > > > }
> > > > 
> > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > 
> > > > {  
> > > > "cluster\_name" : "DC\_Cluster",  
> > > > "status" : "yellow",  
> > > > "timed\_out" : false,  
> > > > "number\_of\_nodes" : 1,  
> > > > "number\_of\_data\_nodes" : 1,  
> > > > "active\_primary\_shards" : 91,  
> > > > "active\_shards" : 91,  
> > > > "relocating\_shards" : 0,  
> > > > "initializing\_shards" : 0,  
> > > > "unassigned\_shards" : 91  
> > > > }  
> > > > can one help me..
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 18, 2013, 3:07pm UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/10 "2013-03-18T15:07:01Z")

</div>

ok.. thank you david

On Monday, March 18, 2013 7:31:14 PM UTC+5:30, David Pilato wrote:

> Read: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 18 mars 2013 à 14:54, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> how to give the cluster name from java.. i have not used the es.properties  
> file
> 
> On Monday, March 18, 2013 5:01:00 PM UTC+5:30, David Pilato wrote:
> 
> > ## Cluster names are not equals. Your client probably is not able to join the cluster.
> > 
> > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > \*  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 18 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > in elasticsearch.yml
> > 
> > i have given clustername =MyCluster
> > 
> > network:  
> > host: 10.0.0.12
> > 
> > and es.properties
> > 
> > # Node test setup
> > 
> > cluster.name=dc-cluster  
> > name=junit.node
> > 
> > # Disable network
> > 
> > discovery.zen.ping.multicast.enabled=false  
> > node.local=true  
> > #transport.tcp.port=9300-9400  
> > #discovery.zen.ping.unicast.hosts=localhost
> > 
> > # Using less filesystem as possible
> > 
> > index.store.type=memory  
> > index.store.fs.memory.enabled=true  
> > index.gateway.type=none  
> > gateway.type=none
> > 
> > # If ES needs to write something, it's here
> > 
> > path.data=/es/twitter
> > 
> > # Index are minimalists by default
> > 
> > index.number\_of\_shards=0  
> > index.number\_of\_replicas=1
> > 
> > in java..  
> > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > Client client = node.client();  
> > is there any thing is missing
> > 
> > On Monday, March 18, 2013 3:43:38 PM UTC+5:30, David Pilato wrote:
> > 
> > > Are you sure you are joining the cluster in Java?  
> > > What do you see in Java logs?
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > \*  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 18 mars 2013 à 11:11, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > Hi David..
> > > 
> > > i getting this output: only 5 shards are getting success..
> > > 
> > > {  
> > > "ok" : true,  
> > > "\_shards" : {  
> > > "total" : 10,  
> > > "successful" : 5,  
> > > "failed" : 0  
> > > },  
> > > "indices" : {  
> > > "dc\_user\_idx" : {  
> > > "index" : {  
> > > "primary\_size" : "305.8kb",  
> > > "primary\_size\_in\_bytes" : 313183,  
> > > "size" : "305.8kb",  
> > > "size\_in\_bytes" : 313183  
> > > },  
> > > "translog" : {  
> > > "operations" : 354  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 350,  
> > > "max\_doc" : 352,  
> > > "deleted\_docs" : 2  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 12,  
> > > "total\_time" : "149ms",  
> > > "total\_time\_in\_millis" : 149  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > },  
> > > "shards" : {  
> > > "0" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 0,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "68.6kb",  
> > > "size\_in\_bytes" : 70261  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601429673,  
> > > "operations" : 79  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 79,  
> > > "max\_doc" : 79,  
> > > "deleted\_docs" : 0  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 3,  
> > > "total\_time" : "26ms",  
> > > "total\_time\_in\_millis" : 26  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ],  
> > > "1" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 1,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "73.8kb",  
> > > "size\_in\_bytes" : 75662  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601429734,  
> > > "operations" : 87  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 87,  
> > > "max\_doc" : 87,  
> > > "deleted\_docs" : 0  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 3,  
> > > "total\_time" : "41ms",  
> > > "total\_time\_in\_millis" : 41  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ],  
> > > "2" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 2,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "63.2kb",  
> > > "size\_in\_bytes" : 64776  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601430455,  
> > > "operations" : 73  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 73,  
> > > "max\_doc" : 73,  
> > > "deleted\_docs" : 0  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 2,  
> > > "total\_time" : "19ms",  
> > > "total\_time\_in\_millis" : 19  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ],  
> > > "3" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 3,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "46.1kb",  
> > > "size\_in\_bytes" : 47292  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601429801,  
> > > "operations" : 53  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 51,  
> > > "max\_doc" : 52,  
> > > "deleted\_docs" : 1  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 2,  
> > > "total\_time" : "20ms",  
> > > "total\_time\_in\_millis" : 20  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ],  
> > > "4" : [ {  
> > > "routing" : {  
> > > "state" : "STARTED",  
> > > "primary" : true,  
> > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > "relocating\_node" : null,  
> > > "shard" : 4,  
> > > "index" : "dc\_user\_idx"  
> > > },  
> > > "state" : "STARTED",  
> > > "index" : {  
> > > "size" : "53.8kb",  
> > > "size\_in\_bytes" : 55192  
> > > },  
> > > "translog" : {  
> > > "id" : 1363601429868,  
> > > "operations" : 62  
> > > },  
> > > "docs" : {  
> > > "num\_docs" : 60,  
> > > "max\_doc" : 61,  
> > > "deleted\_docs" : 1  
> > > },  
> > > "merges" : {  
> > > "current" : 0,  
> > > "current\_docs" : 0,  
> > > "current\_size" : "0b",  
> > > "current\_size\_in\_bytes" : 0,  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0,  
> > > "total\_docs" : 0,  
> > > "total\_size" : "0b",  
> > > "total\_size\_in\_bytes" : 0  
> > > },  
> > > "refresh" : {  
> > > "total" : 2,  
> > > "total\_time" : "43ms",  
> > > "total\_time\_in\_millis" : 43  
> > > },  
> > > "flush" : {  
> > > "total" : 0,  
> > > "total\_time" : "0s",  
> > > "total\_time\_in\_millis" : 0  
> > > }  
> > > } ]  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:
> > > 
> > > > Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> > > > 
> > > > --  
> > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > \*  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > 
> > > > Le 18 mars 2013 à 08:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > > 
> > > > Hi All,
> > > > 
> > > > i have used in windows system to search based on text using elastic  
> > > > search java api..it is working.. when i moved it into linux i am getting  
> > > > index not found exception..
> > > > 
> > > > [dc\_user\_idx] missing
> > > > 
> > > > is there any thing missing.?
> > > > 
> > > > this is java code:
> > > > 
> > > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > > Client client = node.client();  
> > > > SearchResponse response = null;
> > > > 
> > > > ```
> > > > response = 
> > > > 
> > > > ```
> > > > 
> > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > .setTypes("DC\_USER").execute().actionGet();  
> > > > SearchHit results = response.getHits().getHits();
> > > > 
> > > > for (SearchHit hit : results) {  
> > > > result.put(""+count, hit.getSource()); // the retrieved document  
> > > > list.add(hit.getSource());  
> > > > }
> > > > 
> > > > [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> > > > 
> > > > output:
> > > > 
> > > > {  
> > > > "\_index" : "\_river",  
> > > > "\_type" : "dc\_user\_river",  
> > > > "\_id" : "\_status",  
> > > > "\_version" : 2,  
> > > > "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> > > > }
> > > > 
> > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > 
> > > > {  
> > > > "cluster\_name" : "DC\_Cluster",  
> > > > "status" : "yellow",  
> > > > "timed\_out" : false,  
> > > > "number\_of\_nodes" : 1,  
> > > > "number\_of\_data\_nodes" : 1,  
> > > > "active\_primary\_shards" : 91,  
> > > > "active\_shards" : 91,  
> > > > "relocating\_shards" : 0,  
> > > > "initializing\_shards" : 0,  
> > > > "unassigned\_shards" : 91  
> > > > }  
> > > > can one help me..
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 19, 2013, 5:45am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/11 "2013-03-19T05:45:29Z")

</div>

Hi David,

i am still getting index not found exception in my linux remote server

where as in windows its working fine..

my xml  
\<elasticsearch:node id="esNode" /\>  
\<elasticsearch:client node="esNode" id="esClient" /\>

this is java code

SearchResponse response = null;  
response =  
client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
.setTypes("DC\_USER").execute().actionGet();

SearchHit results = response.getHits().getHits();  
if(results.length != 0){  
result = new HashMap\<String, Object\>();  
list = new ArrayList();  
}  
int count = 0;  
for (SearchHit hit : results) {  
result.put(""+count, hit.getSource()); // the retrieved document  
list.add(hit.getSource());  
count++;  
}

it is getting exception in linux macine.. index not found exception

status of index is success  
[http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)

{  
"ok" : true,  
"\_shards" : {  
"total" : 10,  
"successful" : 5,  
"failed" : 0  
},  
"indices" : {  
"dc\_user\_idx" : {  
"index" : {  
"primary\_size" : "306kb",  
"primary\_size\_in\_bytes" : 313373,  
"size" : "306kb",  
"size\_in\_bytes" : 313373  
},  
.....

i have not configured any manual settings  
please help me.. is there any thing missing..

On Monday, March 18, 2013 8:37:01 PM UTC+5:30, srikanth gone wrote:

> ok.. thank you david
> 
> On Monday, March 18, 2013 7:31:14 PM UTC+5:30, David Pilato wrote:
> 
> > Read: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 18 mars 2013 à 14:54, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > how to give the cluster name from java.. i have not used the  
> > es.properties file
> > 
> > On Monday, March 18, 2013 5:01:00 PM UTC+5:30, David Pilato wrote:
> > 
> > > ## Cluster names are not equals. Your client probably is not able to join the cluster.
> > > 
> > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > \*  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 18 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > in elasticsearch.yml
> > > 
> > > i have given clustername =MyCluster
> > > 
> > > network:  
> > > host: 10.0.0.12
> > > 
> > > and es.properties
> > > 
> > > # Node test setup
> > > 
> > > cluster.name=dc-cluster  
> > > name=junit.node
> > > 
> > > # Disable network
> > > 
> > > discovery.zen.ping.multicast.enabled=false  
> > > node.local=true  
> > > #transport.tcp.port=9300-9400  
> > > #discovery.zen.ping.unicast.hosts=localhost
> > > 
> > > # Using less filesystem as possible
> > > 
> > > index.store.type=memory  
> > > index.store.fs.memory.enabled=true  
> > > index.gateway.type=none  
> > > gateway.type=none
> > > 
> > > # If ES needs to write something, it's here
> > > 
> > > path.data=/es/twitter
> > > 
> > > # Index are minimalists by default
> > > 
> > > index.number\_of\_shards=0  
> > > index.number\_of\_replicas=1
> > > 
> > > in java..  
> > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > Client client = node.client();  
> > > is there any thing is missing
> > > 
> > > On Monday, March 18, 2013 3:43:38 PM UTC+5:30, David Pilato wrote:
> > > 
> > > > Are you sure you are joining the cluster in Java?  
> > > > What do you see in Java logs?
> > > > 
> > > > --  
> > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > \*  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > 
> > > > Le 18 mars 2013 à 11:11, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > > 
> > > > Hi David..
> > > > 
> > > > i getting this output: only 5 shards are getting success..
> > > > 
> > > > {  
> > > > "ok" : true,  
> > > > "\_shards" : {  
> > > > "total" : 10,  
> > > > "successful" : 5,  
> > > > "failed" : 0  
> > > > },  
> > > > "indices" : {  
> > > > "dc\_user\_idx" : {  
> > > > "index" : {  
> > > > "primary\_size" : "305.8kb",  
> > > > "primary\_size\_in\_bytes" : 313183,  
> > > > "size" : "305.8kb",  
> > > > "size\_in\_bytes" : 313183  
> > > > },  
> > > > "translog" : {  
> > > > "operations" : 354  
> > > > },  
> > > > "docs" : {  
> > > > "num\_docs" : 350,  
> > > > "max\_doc" : 352,  
> > > > "deleted\_docs" : 2  
> > > > },  
> > > > "merges" : {  
> > > > "current" : 0,  
> > > > "current\_docs" : 0,  
> > > > "current\_size" : "0b",  
> > > > "current\_size\_in\_bytes" : 0,  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0,  
> > > > "total\_docs" : 0,  
> > > > "total\_size" : "0b",  
> > > > "total\_size\_in\_bytes" : 0  
> > > > },  
> > > > "refresh" : {  
> > > > "total" : 12,  
> > > > "total\_time" : "149ms",  
> > > > "total\_time\_in\_millis" : 149  
> > > > },  
> > > > "flush" : {  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0  
> > > > },  
> > > > "shards" : {  
> > > > "0" : [ {  
> > > > "routing" : {  
> > > > "state" : "STARTED",  
> > > > "primary" : true,  
> > > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > > "relocating\_node" : null,  
> > > > "shard" : 0,  
> > > > "index" : "dc\_user\_idx"  
> > > > },  
> > > > "state" : "STARTED",  
> > > > "index" : {  
> > > > "size" : "68.6kb",  
> > > > "size\_in\_bytes" : 70261  
> > > > },  
> > > > "translog" : {  
> > > > "id" : 1363601429673,  
> > > > "operations" : 79  
> > > > },  
> > > > "docs" : {  
> > > > "num\_docs" : 79,  
> > > > "max\_doc" : 79,  
> > > > "deleted\_docs" : 0  
> > > > },  
> > > > "merges" : {  
> > > > "current" : 0,  
> > > > "current\_docs" : 0,  
> > > > "current\_size" : "0b",  
> > > > "current\_size\_in\_bytes" : 0,  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0,  
> > > > "total\_docs" : 0,  
> > > > "total\_size" : "0b",  
> > > > "total\_size\_in\_bytes" : 0  
> > > > },  
> > > > "refresh" : {  
> > > > "total" : 3,  
> > > > "total\_time" : "26ms",  
> > > > "total\_time\_in\_millis" : 26  
> > > > },  
> > > > "flush" : {  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0  
> > > > }  
> > > > } ],  
> > > > "1" : [ {  
> > > > "routing" : {  
> > > > "state" : "STARTED",  
> > > > "primary" : true,  
> > > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > > "relocating\_node" : null,  
> > > > "shard" : 1,  
> > > > "index" : "dc\_user\_idx"  
> > > > },  
> > > > "state" : "STARTED",  
> > > > "index" : {  
> > > > "size" : "73.8kb",  
> > > > "size\_in\_bytes" : 75662  
> > > > },  
> > > > "translog" : {  
> > > > "id" : 1363601429734,  
> > > > "operations" : 87  
> > > > },  
> > > > "docs" : {  
> > > > "num\_docs" : 87,  
> > > > "max\_doc" : 87,  
> > > > "deleted\_docs" : 0  
> > > > },  
> > > > "merges" : {  
> > > > "current" : 0,  
> > > > "current\_docs" : 0,  
> > > > "current\_size" : "0b",  
> > > > "current\_size\_in\_bytes" : 0,  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0,  
> > > > "total\_docs" : 0,  
> > > > "total\_size" : "0b",  
> > > > "total\_size\_in\_bytes" : 0  
> > > > },  
> > > > "refresh" : {  
> > > > "total" : 3,  
> > > > "total\_time" : "41ms",  
> > > > "total\_time\_in\_millis" : 41  
> > > > },  
> > > > "flush" : {  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0  
> > > > }  
> > > > } ],  
> > > > "2" : [ {  
> > > > "routing" : {  
> > > > "state" : "STARTED",  
> > > > "primary" : true,  
> > > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > > "relocating\_node" : null,  
> > > > "shard" : 2,  
> > > > "index" : "dc\_user\_idx"  
> > > > },  
> > > > "state" : "STARTED",  
> > > > "index" : {  
> > > > "size" : "63.2kb",  
> > > > "size\_in\_bytes" : 64776  
> > > > },  
> > > > "translog" : {  
> > > > "id" : 1363601430455,  
> > > > "operations" : 73  
> > > > },  
> > > > "docs" : {  
> > > > "num\_docs" : 73,  
> > > > "max\_doc" : 73,  
> > > > "deleted\_docs" : 0  
> > > > },  
> > > > "merges" : {  
> > > > "current" : 0,  
> > > > "current\_docs" : 0,  
> > > > "current\_size" : "0b",  
> > > > "current\_size\_in\_bytes" : 0,  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0,  
> > > > "total\_docs" : 0,  
> > > > "total\_size" : "0b",  
> > > > "total\_size\_in\_bytes" : 0  
> > > > },  
> > > > "refresh" : {  
> > > > "total" : 2,  
> > > > "total\_time" : "19ms",  
> > > > "total\_time\_in\_millis" : 19  
> > > > },  
> > > > "flush" : {  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0  
> > > > }  
> > > > } ],  
> > > > "3" : [ {  
> > > > "routing" : {  
> > > > "state" : "STARTED",  
> > > > "primary" : true,  
> > > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > > "relocating\_node" : null,  
> > > > "shard" : 3,  
> > > > "index" : "dc\_user\_idx"  
> > > > },  
> > > > "state" : "STARTED",  
> > > > "index" : {  
> > > > "size" : "46.1kb",  
> > > > "size\_in\_bytes" : 47292  
> > > > },  
> > > > "translog" : {  
> > > > "id" : 1363601429801,  
> > > > "operations" : 53  
> > > > },  
> > > > "docs" : {  
> > > > "num\_docs" : 51,  
> > > > "max\_doc" : 52,  
> > > > "deleted\_docs" : 1  
> > > > },  
> > > > "merges" : {  
> > > > "current" : 0,  
> > > > "current\_docs" : 0,  
> > > > "current\_size" : "0b",  
> > > > "current\_size\_in\_bytes" : 0,  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0,  
> > > > "total\_docs" : 0,  
> > > > "total\_size" : "0b",  
> > > > "total\_size\_in\_bytes" : 0  
> > > > },  
> > > > "refresh" : {  
> > > > "total" : 2,  
> > > > "total\_time" : "20ms",  
> > > > "total\_time\_in\_millis" : 20  
> > > > },  
> > > > "flush" : {  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0  
> > > > }  
> > > > } ],  
> > > > "4" : [ {  
> > > > "routing" : {  
> > > > "state" : "STARTED",  
> > > > "primary" : true,  
> > > > "node" : "k54i3bPZRiKvtsrWCqXbPg",  
> > > > "relocating\_node" : null,  
> > > > "shard" : 4,  
> > > > "index" : "dc\_user\_idx"  
> > > > },  
> > > > "state" : "STARTED",  
> > > > "index" : {  
> > > > "size" : "53.8kb",  
> > > > "size\_in\_bytes" : 55192  
> > > > },  
> > > > "translog" : {  
> > > > "id" : 1363601429868,  
> > > > "operations" : 62  
> > > > },  
> > > > "docs" : {  
> > > > "num\_docs" : 60,  
> > > > "max\_doc" : 61,  
> > > > "deleted\_docs" : 1  
> > > > },  
> > > > "merges" : {  
> > > > "current" : 0,  
> > > > "current\_docs" : 0,  
> > > > "current\_size" : "0b",  
> > > > "current\_size\_in\_bytes" : 0,  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0,  
> > > > "total\_docs" : 0,  
> > > > "total\_size" : "0b",  
> > > > "total\_size\_in\_bytes" : 0  
> > > > },  
> > > > "refresh" : {  
> > > > "total" : 2,  
> > > > "total\_time" : "43ms",  
> > > > "total\_time\_in\_millis" : 43  
> > > > },  
> > > > "flush" : {  
> > > > "total" : 0,  
> > > > "total\_time" : "0s",  
> > > > "total\_time\_in\_millis" : 0  
> > > > }  
> > > > } ]  
> > > > }  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > On Monday, March 18, 2013 2:51:59 PM UTC+5:30, David Pilato wrote:
> > > > 
> > > > > Can you curl [http://10.0.0.12:9200/dc\_user\_idx/\_status](http://10.0.0.12:9200/dc_user_idx/_status)
> > > > > 
> > > > > --  
> > > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > > \*  
> > > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > > 
> > > > > Le 18 mars 2013 à 08:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > > > 
> > > > > Hi All,
> > > > > 
> > > > > i have used in windows system to search based on text using elastic  
> > > > > search java api..it is working.. when i moved it into linux i am getting  
> > > > > index not found exception..
> > > > > 
> > > > > [dc\_user\_idx] missing
> > > > > 
> > > > > is there any thing missing.?
> > > > > 
> > > > > this is java code:
> > > > > 
> > > > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > > > Client client = node.client();  
> > > > > SearchResponse response = null;
> > > > > 
> > > > > ```
> > > > > response = 
> > > > > 
> > > > > ```
> > > > > 
> > > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > > .setTypes("DC\_USER").execute().actionGet();  
> > > > > SearchHit results = response.getHits().getHits();
> > > > > 
> > > > > for (SearchHit hit : results) {  
> > > > > result.put(""+count, hit.getSource()); // the retrieved  
> > > > > document  
> > > > > list.add(hit.getSource());  
> > > > > }
> > > > > 
> > > > > [http://10.0.0.12:9200/\_river/dc\_user\_river/\_status?pretty=true](http://10.0.0.12:9200/_river/dc_user_river/_status?pretty=true)
> > > > > 
> > > > > output:
> > > > > 
> > > > > {  
> > > > > "\_index" : "\_river",  
> > > > > "\_type" : "dc\_user\_river",  
> > > > > "\_id" : "\_status",  
> > > > > "\_version" : 2,  
> > > > > "exists" : true, "\_source" : {"ok":true,"node":{"id":"k54i3bPZRiKvtsrWCqXbPg","name":"Vengeance","transport\_address":"inet[/10.0.0.12:9300]"}}  
> > > > > }
> > > > > 
> > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > 
> > > > > {  
> > > > > "cluster\_name" : "DC\_Cluster",  
> > > > > "status" : "yellow",  
> > > > > "timed\_out" : false,  
> > > > > "number\_of\_nodes" : 1,  
> > > > > "number\_of\_data\_nodes" : 1,  
> > > > > "active\_primary\_shards" : 91,  
> > > > > "active\_shards" : 91,  
> > > > > "relocating\_shards" : 0,  
> > > > > "initializing\_shards" : 0,  
> > > > > "unassigned\_shards" : 91  
> > > > > }  
> > > > > can one help me..
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:45am UTC](https://discuss.elastic.co/t/how-to-resolve-the-index-missing-exception/11185/12 "2017-07-06T02:45:55Z")

</div>


