# Compound index

**URL:** <https://discuss.elastic.co/t/compound-index/7610>\
**Category:** Elasticsearch\
**Created:** [May 9, 2012, 7:31am UTC](https://discuss.elastic.co/t/compound-index/7610 "2012-05-09T07:31:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashu\_raikvar](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@ashu\_raikvar](https://discuss.elastic.co/u/ashu_raikvar)\
**Post date:** [May 9, 2012, 7:31am UTC](https://discuss.elastic.co/t/compound-index/7610/1 "2012-05-09T07:31:24Z")

</div>

Hi,  
I want to create compound index how can i do that  
1.By changing config file in my ES  
2.using java API  
what i am doing currently is changing the config file and typing  
index.compound\_format: true.but index is still multi-file.what am i  
doing wrong? also can some1 tell how to do that using java api.

Thanks  
Ashutosh Raikvar

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 10, 2012, 7:41am UTC](https://discuss.elastic.co/t/compound-index/7610/2 "2012-05-10T07:41:12Z")

</div>

Setting index.compound\_format set to true will work, you will still see  
several files in the each shard index, but less...

On Wed, May 9, 2012 at 10:31 AM, ashu raikvar [ashu.raikvar@gmail.com](mailto:ashu.raikvar@gmail.com)wrote:

> Hi,  
> I want to create compound index how can i do that  
> 1.By changing config file in my ES  
> 2.using java API  
> what i am doing currently is changing the config file and typing  
> index.compound\_format: true.but index is still multi-file.what am i  
> doing wrong? also can some1 tell how to do that using java api.
> 
> Thanks  
> Ashutosh Raikvar

---

<div class="post-metadata">

**Author:** ![ashu\_raikvar](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@ashu\_raikvar](https://discuss.elastic.co/u/ashu_raikvar)\
**Post date:** [May 10, 2012, 8:07am UTC](https://discuss.elastic.co/t/compound-index/7610/3 "2012-05-10T08:07:44Z")

</div>

ya right after posting the problem i got the solution thanks a ton for  
replying

On Thu, May 10, 2012 at 1:11 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Setting index.compound\_format set to true will work, you will still see  
> several files in the each shard index, but less...
> 
> On Wed, May 9, 2012 at 10:31 AM, ashu raikvar [ashu.raikvar@gmail.com](mailto:ashu.raikvar@gmail.com)wrote:
> 
> > Hi,  
> > I want to create compound index how can i do that  
> > 1.By changing config file in my ES  
> > 2.using java API  
> > what i am doing currently is changing the config file and typing  
> > index.compound\_format: true.but index is still multi-file.what am i  
> > doing wrong? also can some1 tell how to do that using java api.
> > 
> > Thanks  
> > Ashutosh Raikvar

--  
ashutosh raikvar

---

<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:29am UTC](https://discuss.elastic.co/t/compound-index/7610/4 "2017-07-06T03:29:30Z")

</div>


