class_docstr: Runs a query search against a given index on an OpenSearch cluster and returns results.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:OpenSearchQueryOperator`
  
  :param query: A Dictionary OpenSearch DSL query.
  :param search_object: A Search object from opensearch-dsl.
  :param index_name: The name of the index to search for documents.
  :param opensearch_conn_id: opensearch connection to use
  :param log_query: Whether to log the query used. Defaults to True and logs query used.
code: def __init__(
      self,
      *,
      query: dict | None = None,
      search_object: Any | None = None,
      index_name: str | None = None,
      opensearch_conn_id: str = "opensearch_default",
      log_query: bool = True,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      self.query = query
      self.index_name = index_name
      self.opensearch_conn_id = opensearch_conn_id
      self.log_query = log_query
      self.search_object = search_object
  
imports: from __future__ import annotations
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Sequence
  from opensearchpy.exceptions import OpenSearchException
  from airflow.exceptions import AirflowException
  from airflow.models import BaseOperator
  from airflow.providers.opensearch.hooks.opensearch import OpenSearchHook
label_desc: Use image node_id 1 to create a new OpenSearchQueryOperator object from inherited base classes: BaseOperator with example: obj = OpenSearchQueryOperator()