What happens if you put a mapping for your type in the same time you create your new index?
Could this solve your issue?
HTH
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 23 juin 2013 à 02:47, Allan Johns nerdvegas@gmail.com a écrit :
I posted a duplicate question just a few days ago, awaiting response also:
Hi all,
When doing a faceted filter/query where the facet term doesn't exist in any document, is it possible for elasticsearch to return an empty facet result, rather than throw an exception?
If this isn't possible, would it be reasonable to add an option to the API to turn this functionality on?
Thanks
On Fri, Jun 21, 2013 at 12:02 PM, vinh vinh@loggly.com wrote:
Normally, my index has documents with a particular field, so facet requests on that field succeeds. But this time, if the index is empty, the facet request fails and complains that the field doesn't exist.
Is there a way to have facets safely return empty result if no such field exists? Similar to how sorting has "ignore_unmapped". Need this especially in cases where indexes are rolling, and we don't know ahead of time if an index is empty or not before it is searched.
Thanks,
-Vinh
--
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.
--
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.
--
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.