def do_filter_ranking(self, engine_slug, queryset, search_text):
        return queryset.extra(
            select = {
                "watson_rank": "ts_rank_cd(watson_searchentry.search_tsv, to_tsquery('{search_config}', %s))".format(
                    search_config = self.search_config
                ),
            },
            select_params = (self.escape_postgres_query(search_text),),
            order_by = ("-watson_rank",),
        )
This function converts the MP3 files stored in a folder to WAV. If required, the output names of the WAV files are based on MP3 tags, otherwise the same names are used.
dataset/ETHPy150Open etianen/django-watson/src/watson/backends.py/PostgresSearchBackend.do_filter_ranking--crossover with--dataset/ETHPy150Open tyiannak/pyAudioAnalysis/audioBasicIO.py/convertDirMP3ToWav