Skip to content

[BUG] REGRESSION in 3.4.0 for suggestion response no longer being typed by result TDocument #1835

@apatrida

Description

@apatrida

The API has changed for the SearchResult<TDocument> class where previously the signature of suggest() result function was typed to List<Suggest<TDocument>> it is now List<Suggest<JsonData>> breaking the typesafe binding that used to be present.

Was this intentional or another regression?

We now have to figure out how to map JsonData into our desired hit document type which is unexpected and inconsistent with the rest of the result object.

I guess the workaround is to do...

whatever.source().to(MyType.class)

and use the helper and the bound JsonpMapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3.5.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions