Class ExactFilenameAnalyzerProvider

  • All Implemented Interfaces:
    OpenSearchAnalyzerProvider

    public class ExactFilenameAnalyzerProvider
    extends Object
    implements OpenSearchAnalyzerProvider
    Provides OpenSearch analyzer for ExactFilenameAnalyzerDescriptor to support exact matching on file names.

    Use when indexing for fields which should support exact matches or when searching for fields which support exact matches for filenames.

    Only create tokens by whitespace, and lowercase each token. Filenames will also be split into tokens the file extension delimiter ".". The original filename will also be a token.

    e.g. "filename.txt" -> {"filename.txt", "filename", "txt"} "file name.txt" -> {"file name.txt", "file", "name", "txt"}

    Searching for the original filename, the name or the extension will match.

    Since:
    8.7