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

Fixed multi term queries support in postings highlighter for non top-level queries #5143

Merged
merged 1 commit into from Feb 21, 2014

Commits on Feb 21, 2014

  1. Fixed multi term queries support in postings highlighter for non top-…

    …level queries
    
    In elastic#4052 we added support for highlighting multi term queries using the postings highlighter. That worked only for top-level queries though, and not for multi term queries that are nested for instance within a bool query, or filtered query, or a constant score query.
    
    The way we make this work is by walking the query structure and temporarily overriding the query rewrite method with a method that allows for multi terms extraction.
    
    Closes elastic#5102
    javanna committed Feb 21, 2014
    Copy the full SHA
    4e6610a View commit details
    Browse the repository at this point in the history