Elastica
Elastica copied to clipboard
No way to query _suggest
According to the docs, one should send suggestion queries to the _suggest endpoint. This seems impossible with the current implementation of Search->search() and getPath(), most probably due to this change: https://github.com/ruflin/Elastica/commit/bbcc90d69d047f00b8db929f115600f68f9d2a65#diff-e37dd8f660ab2b0dab3255a789b2d1a2L401 I guess we should try to allow _suggest again :). Probably even as a separate method, since the result is quite different ? Or just re-enable the switch to the _suggest path as it used to be. Thanks !
@mojzis Agree. Can you open a PR with the change?