Skip to content

How can I use a dynamic tokenizer? #2831

@tezlm

Description

@tezlm

I have a document with a lang field and a content field. How would I tokenize content based on the language?

It doesn't look like tokenizers can be swapped out as needed:

Tokenizers are currently configured and initialized per field, there's no dynamic tokenizer mechanism.

You could have a tokenizer with a language detection or have seperate fields.

#1708 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions