(self, elements)
return ' OR '.join(conditions)
Generates the OpenSearch query.

        Args:
            elements: Dictionary with a list of conditions

        Returns:
            The OpenSearch query
Generates the OpenSearch query.
Generates the OpenSearch query .
def formulate_query(self, elements):
        """Generates the OpenSearch query.

        Args:
            elements: Dictionary with a list of conditions

        Returns:
            The OpenSearch query
        """
        conditions = list()
        for element_list in elements.values():
            conditions += ['({0})'.format(' AND '.join(element_list))]
        return ' OR '.join(conditions)
def formulate_query ( self , elements ) : conditions = list ( ) for element_list in elements . values ( ) : conditions += [ '({0})' . format ( ' AND ' . join ( element_list ) ) ] return ' OR ' . join ( conditions )