How to use "search-as-you-type" type with Hibernate Search?

How to fully and correctly use “search_as_you_type” type with Hibernate Search.

There’s no direct equivalent in Hibernate Search, so you’ll have to rely on native APIs.

You can use @NonStandardField to map your property to the search_as_you_type type in Elasticsearch.

Then you can use native JSON predicates to run a multi_match query similar to what’s recommended in the Elasticsearch documentation.