How to set different storage to different types in same index?

Hi
I am creating an index named amazon and It has two type cd and book.
I have to do setting for type cd in memory and type book in the file.
I read that we can do the setting while creating the index and I did
that but since both the type belong to the same index, so how can we
set different storage to different type.

Thanks

You will need to have two different indices, one called book and one called
cd (you can still search across them). Then, when you create the index (from
the API), set the index.store.type setting to control where it will be
stored. Note, long term persistency is only supported for for memory indices
when using shared gateway (shared fs, s3).

If you plan to store the index in memory for performance reasons, my
suggestion is first make sure that you really have a performance problem.

On Thu, Dec 23, 2010 at 1:19 PM, cheepu cheeputech@gmail.com wrote:

Hi
I am creating an index named amazon and It has two type cd and book.
I have to do setting for type cd in memory and type book in the file.
I read that we can do the setting while creating the index and I did that
but since both the type belong to the same index, so how can we set
different storage to different type.

Thanks

View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/How-to-set-different-storage-to-different-types-in-same-index-tp2135982p2135982.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.