hub
hub copied to clipboard
Dead code pertaining to "any_languages" query generation
Saw this while investigating https://github.com/lbryio/lbry-sdk/issues/3328 and any_languages search term implementation.
1 File: https://github.com/lbryio/scribe/blob/baf630dfa7854dd6ec4152ffdf35b13999093cde/scribe/elasticsearch/search.py#L404
...contains duplicate elif cases pertaining to any_languages:
elif key == 'any_languages':
query['must'].append({"terms": {'languages': clean_tags(value)}})
elif key == 'any_languages':
query['must'].append({"terms": {'languages': value}})
Can't say which one is the correct behavior.