elasticpress-autosuggest-endpoint
elasticpress-autosuggest-endpoint copied to clipboard
If ES version is 7.x, don't pass an unsupported 'type' parameter
See this ElasticPress ticket for more context: https://github.com/10up/ElasticPress/issues/1633#issuecomment-580453327
For version 7.x of ES, 'type
' is no longer a supported parameter. This script should either 1) conditionally detect ES version and not pass type
or (for perhaps more simplicity) 2) add a comment in the code with the clear instruction to remove this in ES 7.x+.