{"push_id":840552427,"size":1,"distinct_size":1,"ref":"refs/heads/fix/13884_v1","head":"6bf6229ffc184a72c9e0002536adb954a768fdff","before":"8e7b94956eeb8cedc7d1b17c2232e16e15347f07","commits":[{"sha":"6bf6229ffc184a72c9e0002536adb954a768fdff","author":{"email":"7abde52c298496fa169fb750f91f213a282142af@elastic.co","name":"Christoph Büscher"},"message":"Fix `minimum should match` for single term and multiple fields\n\nCurrently when applying `minimum_should_match` to a single term\nquery and multiple fields, if gets applied to a boolean query\nwhere the number of clauses is determined by the number of fields,\nwhich lead to wrong calculation of `minimum_should_match`.\n\nThis PR adds checks to detect this case and wraps the resulting\nboolean query in another boolean query with just one clause (for\nthe single term), so `minimum_should_match` calculation is correct.\n\nIn order to differentiate between the case where one term is queried\nin multiple fields and the second case where multiple terms are queried\nin one field, we override a simplification in lucene SimpleQueryParser\nthat reduces one-clause boolean queries to the clause itself.\n\nCloses #13884","distinct":true,"url":"https://api.github.com/repos/cbuescher/elasticsearch/commits/6bf6229ffc184a72c9e0002536adb954a768fdff"}]}