elasticsearch - Automatically decide document type -


i have large database 2 different types of documents , want them indexed in es different document types in es terms well. don't want prefilter database.

is possible configure es set type of documents according structure during indexing?

to give more information:

i'm indexing tweets twitter api. not have tweets in json format json documents delete tweet in database. want index these 2 documents unique. tweets ensure setting tweet id document id mapping. can't same on delete docs because overwrite tweets. separating 2 setting them different docs both use same id ensure that, i'm open other suggestions.

the delete docs this:

{"delete":     {"status":         {"id":417427762463649792,         "user_id":608116073,         "id_str": "417427762463649792",         "user_id_str":"608116073"}     } } 

and tweets this(excerpt):

{"created_at":     "sun dec 29 22:59:59 +0000 2013",     "id":417429821849743360 [...] } 

i want index stream2es or elasticsearch-hadoop.

thanks!


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -