From 7d9b69be94aaeafc079e365324de5f36552949fe Mon Sep 17 00:00:00 2001 From: Marcus Kinsella Date: Tue, 14 May 2019 12:05:12 -0700 Subject: [PATCH] Remove `should` clauses from lira queries They don't do anything, they just look like they do. " If the bool query is in a query context and has a must or filter clause then a document will match the bool query even if none of the should queries match." https://www.elastic.co/guide/en/elasticsearch/reference/6.3/query-dsl-bool-query.html --- .../elasticsearch_queries/smartseq2-query.json | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/subscription/elasticsearch_queries/smartseq2-query.json b/subscription/elasticsearch_queries/smartseq2-query.json index 026baec2..9a6044bd 100644 --- a/subscription/elasticsearch_queries/smartseq2-query.json +++ b/subscription/elasticsearch_queries/smartseq2-query.json @@ -19,18 +19,6 @@ } } ], - "should": [ - { - "match": { - "files.dissociation_protocol_json.method.ontology": "EFO:0009108" - } - }, - { - "match": { - "files.dissociation_protocol_json.method.text": "mouth pipette" - } - } - ], "must_not": [ { "match": {