API to run analysis on a given String

Description

Currently we offer ways to retrieve a given Analyzer by name on Lucene, which makes running analysis manually possible (if not very practical).

On the Elasticsearch backend, however, there is no such feature.

Hibernate Tools in particular, and maybe integrators in general, would benefit from some APIs to run analysis for a given analyzer name and input string; something like List<String> analyze(String analyzerName, String terms).

The API may need to be backend-specific, as the Lucene backend defines analyzers at the backend level while the Elasticsearch backend defines them at the index level:

  • Either we expose the API in a standard way at the index level for all backends.

  • Or we expose the API in a standard way at the index level for all backends and (in a backend-specific way) at the backend level for Lucene.

  • Or we only expose the API in a backend-specific way at the index level for Elasticearch, and not at all for Lucene.

Activity

Show:
Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Priority

Created September 20, 2023 at 9:57 AM
Updated May 16, 2024 at 10:10 AM
Resolved February 26, 2024 at 10:42 AM