Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow reloading of search time analyzers #42669

Merged

Commits on May 29, 2019

  1. Allow reloading of search time analyzers

    Currently changing resources (like dictionaries, synonym files etc...) of search
    time analyzers is only possible by closing an index, changing the underlying
    resource (e.g. synonym files) and then re-opening the index for the change to
    take effect.
    
    This PR adds a new API endpoint that allows triggering reloading of certain
    analysis resources (currently token filters) that will then pick up changes in
    underlying file resources. To achieve this we introduce a new type of custom
    analyzer (ReloadableCustomAnalyzer) that uses a ReuseStrategy that allows
    swapping out analysis components. Custom analyzers that contain filters that are
    markes as "updateable" will automatically choose this implementation. This PR
    also adds this capability to `synonym` token filters for use in search time
    analyzers.
    
    Relates to elastic#29051
    Christoph Büscher committed May 29, 2019
    Configuration menu
    Copy the full SHA
    fde8089 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2019

  1. Addressing review comments

    Christoph Büscher committed Jun 4, 2019
    Configuration menu
    Copy the full SHA
    44211d8 View commit details
    Browse the repository at this point in the history