Pass min_score to shoudl close

i want to pass a min_score but for only should clauses, i want filter should clause by min_score to eliminate docs which have cosinesimilarity poor

{'bool': {'filter': {'term': {'hidden': 'false'}}, 'must': [{'bool': {'should': [{'term': {'collects': 'health'}}]}}, {'range': {'publish_date': {'gte': '2017-01-01'}}}, {'bool': {'filter': {'term': {'hidden': 'false'}}, 'must': [{'bool': {'should': [{'term': {'collections': 'cfc'}}, {'term': {'collections': 'rp'}}]}}, {'range': {'publish_date': {'gte': '2017-01-01'}}}], 'must_not': [{'term': {'collections': 'sport'}}], 'should': [{'script_score': {'query': {'match_all': {}}, 'script': {'source': "1.0 + cosineSimilarity(params['query_vector'], 'vector')", 'params': {'query_vector': [-0.02133239060640335, -0.4670245349407196]}}, 'boost': 0.5}}]}}], 'must_not': [{'term': {'collects': 'sport'}}], 'should': []}}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.