Class TextResourceSearchService
java.lang.Object
ch.tocco.nice2.optional.aiassistant.impl.textresource.TextResourceSearchService
Finds text resources by their source-language text and returns the target-language text of the same
keys. A text translated differently depending on its key is returned once per translation, with its keys.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TextResourceSearchService
-
-
Method Details
-
search
public List<TextResourceSearchService.TermTranslations> search(List<String> terms, List<String> keyFilters, Locale source, Locale target) - Parameters:
terms- case-insensitive parts of the source text; exact matches are ranked firstkeyFilters- case-insensitive parts of the key to limit the search to; if empty, all keys are searched
-