def custom_filter(self, view_row):
        """
        Custom filter if you want to do additional filtering based on the view

        Return true if to index, false if to SKIP
        """
        if 'xmlns' in view_row:
            return view_row['xmlns'] != 'http://code.javarosa.org/devicereport'
        elif 'key' in view_row:
            return view_row['key'] != 'http://code.javarosa.org/devicereport'
        else:
            return True
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/hqcase/management/commands/ptop_fast_reindex_reportxforms.py/Command.custom_filter/original