Elastica icon indicating copy to clipboard operation
Elastica copied to clipboard

No way to query _suggest

Open mojzis opened this issue 8 years ago • 1 comments

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 avatar Apr 28 '16 12:04 mojzis

@mojzis Agree. Can you open a PR with the change?

ruflin avatar May 04 '16 07:05 ruflin