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

Make simple_query_string leniency more fine-grained #8162

Merged
merged 1 commit into from Oct 22, 2014

Commits on Oct 22, 2014

  1. Make simple_query_string leniency more fine-grained

    Previously, the leniency was on a per-query basis, with each query being
    parsed into multiple queries, one for each field. If any one of these
    queries failed, the entire query was discarded in the name of being
    lenient.
    
    Now query parts will only be discarded if they fail for a particular
    field, the entire query is not discarded. This helps when performing a
    query over a numeric and string field, as only the sub-queries that are
    invalid due to format exceptions will be discarded.
    
    Also moves the `simple_query_string` queries out of SimpleQueryTests and
    into a dedicated SimpleQueryStringTests class.
    
    Fixes elastic#7967
    dakrone committed Oct 22, 2014
    Configuration menu
    Copy the full SHA
    26bc940 View commit details
    Browse the repository at this point in the history