# Elastic Search JAVA API

**URL:** <https://discuss.elastic.co/t/elastic-search-java-api/7149>\
**Category:** Elasticsearch\
**Created:** [March 27, 2012, 7:35pm UTC](https://discuss.elastic.co/t/elastic-search-java-api/7149 "2012-03-27T19:35:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samCougars](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@samCougars](https://discuss.elastic.co/u/samCougars)\
**Post date:** [March 27, 2012, 7:35pm UTC](https://discuss.elastic.co/t/elastic-search-java-api/7149/1 "2012-03-27T19:35:53Z")

</div>

I'm using ElasticSearch with JAVA API as a webapp under resin. I created elasticSearch indexes few days back and it was stored under "/elasticSearch/nodes/0/indices/searchdata" folder. But now the business rule has changed for what needs to be indexed. So I deleted everything under elasticSearch Folder and reindexed new list of objects. Now, when I do a search against these new indexes, somehow it is returning the results from old indexes. I have no clue how it is holding on to old indexes. I have upgraded to 0.19.1 elastic search version. Any help will be highly appreciated.  
Thanks  
Satish

---

<div class="post-metadata">

**Author:** ![Aurelien\_2](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@Aurelien\_2](https://discuss.elastic.co/u/Aurelien_2)\
**Post date:** [March 27, 2012, 7:58pm UTC](https://discuss.elastic.co/t/elastic-search-java-api/7149/2 "2012-03-27T19:58:18Z")

</div>

Hello

did you restart the server?

Rgds.  
----- Mail original -----

> De: "samCougars" [sbaniya@gmail.com](mailto:sbaniya@gmail.com)  
> À: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> Envoyé: Mardi 27 Mars 2012 21:35:53  
> Objet: Elastic Search JAVA API

> I'm using Elasticsearch with JAVA API as a webapp under resin. I  
> created  
> elasticSearch indexes few days back and it was stored under  
> "/elasticSearch/nodes/0/indices/searchdata" folder. But now the  
> business  
> rule has changed for what needs to be indexed. So I deleted  
> everything under  
> elasticSearch Folder and reindexed new list of objects. Now, when I  
> do a  
> search against these new indexes, somehow it is returning the results  
> from  
> old indexes. I have no clue how it is holding on to old indexes. I  
> have  
> upgraded to 0.19.1 Elasticsearch version. Any help will be highly  
> appreciated.  
> Thanks  
> Satish

> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Elastic-Search-JAVA-API-tp3862529p3862529.html](http://elasticsearch-users.115913.n3.nabble.com/Elastic-Search-JAVA-API-tp3862529p3862529.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![samCougars](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@samCougars](https://discuss.elastic.co/u/samCougars)\
**Post date:** [March 27, 2012, 9:20pm UTC](https://discuss.elastic.co/t/elastic-search-java-api/7149/3 "2012-03-27T21:20:04Z")

</div>

Yes I did. I'm seeing the indexing data that does not exist any more in my webapp.

---

<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, 3:34am UTC](https://discuss.elastic.co/t/elastic-search-java-api/7149/4 "2017-07-06T03:34:31Z")

</div>

Closed on July 6, 2017, 3:34am UTC


