(self, query_dsl)
Make changes to the query DSL of the search.
Make changes to the query DSL of the search.
Make changes to the query DSL of the search .
def query_dsl(self, query_dsl):
        """Make changes to the query DSL of the search."""
        if query_dsl and isinstance(query_dsl, str):
            query_dsl = json.loads(query_dsl)

        # Special condition of an empty DSL.
        if query_dsl == '""':
            query_dsl = ''

        self._query_dsl = query_dsl
        self.commit()
def query_dsl ( self , query_dsl ) : if query_dsl and isinstance ( query_dsl , str ) : query_dsl = json . loads ( query_dsl ) # Special condition of an empty DSL. if query_dsl == '""' : query_dsl = '' self . _query_dsl = query_dsl self . commit ( )