support upsert indexing.
support facet query