Max Id Size


(Knighting Ace) #1

I'm basically doing my own bridge between mongodb and elasticsearch.
What I want to do is use the mongodb id as the id for elasticsearch.
Mongodb, however, uses ids that are 12 bytes long so I was wondering
if elasticsearch index would fit this or would I have to add a another
field within the index. I tried searching around for the information
but found nothing so far.


(Shay Banon) #2

You can use the string representation of the mongodb id, there is no limit
on the size of the id in elasticsearch.

On Tue, Nov 1, 2011 at 6:19 AM, Knighting Ace knaces@gmail.com wrote:

I'm basically doing my own bridge between mongodb and elasticsearch.
What I want to do is use the mongodb id as the id for elasticsearch.
Mongodb, however, uses ids that are 12 bytes long so I was wondering
if elasticsearch index would fit this or would I have to add a another
field within the index. I tried searching around for the information
but found nothing so far.


(system) #3