I have my index created with multiple types, each type represents different
different sets of data, having about 200K documents per type. Number of
types per index could go up to 50 at the max.. At present I have 5 types in
my index.
To make sure that my index is up to date, I have a thread that runs once in
a day to collect any missing documents, deleted documents from the database
and update the index, so that I make sure 100% of the documents are
available to search. To perform this task, I am rebuilding the type from
scratch - by deleting the mapping for the given type and re-creating the
mapping before I start indexing the documents. At present it takes about 30
minutes to re-index some of the types. During this time the search feature
doesn't work since my type in the index is almost empty!
To overcome this, here is the idea I have in my mind - While rebuilding
the index, add a temporary type (say SupplierA_temp for SupplierA), and
once I am done with the rebuilding I could delete the mapping for
SupplierA, and then renaming SupplierA-temp to SupplierA. Is that a
feasible solution? or is there a better solution?
Thanks
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.