hub icon indicating copy to clipboard operation
hub copied to clipboard

Dead code pertaining to "any_languages" query generation

Open moodyjon opened this issue 3 years ago • 0 comments

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.

moodyjon avatar May 09 '22 21:05 moodyjon