# Using list-type secondary index?

**URL:** <https://discuss.aerospike.com/t/using-list-type-secondary-index/1174>\
**Category:** Java Client\
**Tags:** secondary, index\
**Created:** [April 13, 2015, 10:14am UTC](https://discuss.aerospike.com/t/using-list-type-secondary-index/1174 "2015-04-13T10:14:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peterknego](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/peterknego/32/193_2.png) [@Peterknego](https://discuss.aerospike.com/u/Peterknego)\
**Post date:** [April 13, 2015, 10:14am UTC](https://discuss.aerospike.com/t/using-list-type-secondary-index/1174/1 "2015-04-13T10:14:41Z")

</div>

I’m trying to create a list type secondary index via IndexCollectionType.LIST.

This is the code:

AerospikeClient client = new AerospikeClient(“localhost”, 3000); client.createIndex(new Policy(), “test”, “testSet”, “testSet\_index”, “binName”, IndexType.STRING, IndexCollectionType.LIST);

This results in the following error: com.aerospike.client.AerospikeException: Create index failed: FAIL:4:Invalid type must be [functional, userland, default]

What am I doing wrong? Is it possible to create list-type secondary index and query on it?

Regards, Peter Knego

---

<div class="post-metadata">

**Author:** ![raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@raj](https://discuss.aerospike.com/u/raj)\
**Post date:** [April 13, 2015, 6:19pm UTC](https://discuss.aerospike.com/t/using-list-type-secondary-index/1174/2 "2015-04-13T18:19:53Z")

</div>

Peter,

It is not yet supported on the server side. Should show up soon.

Will be announced when it is done.

– R
