Elasticsearch: Completion suggester docs claim `_source` filters the source but this isn't implemented

Created on 14 Sep 2016  路  8Comments  路  Source: elastic/elasticsearch

I found this while going through snippets that aren't marked // CONSOLE. In this case the this snippet looks to suggest something that isn't implemented.

:SearcSuggesters >bug

All 8 comments

I know @jimferenczi's been working on source filtering lately but the completion suggester is @areek's baby. It looks like this is simply a case of the parsing not being implemented which isn't super difficult to fix so I expect anyone can take it.

I can also take this if everyone else is busy!

I don't think it is worth implementing this since the _suggest endpoint will be deprecated in 5.0 (https://github.com/elastic/elasticsearch/pull/20435) and that it works with the _search API ?

Perfect! So long as we use the _search API in the docs we're all good then.

@nik9000 Completion Suggester documentation still says _suggest supports _source filtering.

Since _suggest endpoint still exists in 5.0, I think source filtering should be included as per the current documentation, to be consistent with suggestions when using the _search endpoint.

Yeah, if we're going to remove it in 6.0 we don't need docks there but we should fix the docs in the 5.0 and 5.x branch. @russcam, are you willing to open a PR to do it?

Yeah, if we're going to remove it in 6.0 we don't need docks there but we should fix the docs in the 5.0 and 5.x branch. @russcam, are you willing to open a PR to do it?

Ignore that. I've found a moment so I'll just do it now.

@russcam I opened #21268.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasontedor picture jasontedor  路  3Comments

matthughes picture matthughes  路  3Comments

dadoonet picture dadoonet  路  3Comments

makeyang picture makeyang  路  3Comments

martijnvg picture martijnvg  路  3Comments