(self, index_name, sketch_id, timeline_id=None, data_type=None)
Initializes a similarity scorer.

        Args:
            index_name: OpenSearch index name.
            sketch_id: The ID of the sketch.
            timeline_id: The ID of the timeline.
            data_type: Name of the data_type.
Initializes a similarity scorer.
Initializes a similarity scorer .
def __init__(self, index_name, sketch_id, timeline_id=None, data_type=None):
        """Initializes a similarity scorer.

        Args:
            index_name: OpenSearch index name.
            sketch_id: The ID of the sketch.
            timeline_id: The ID of the timeline.
            data_type: Name of the data_type.
        """
        self._config = None
        if data_type:
            self._config = SimilarityScorerConfig(index_name, data_type)
        super().__init__(index_name, sketch_id, timeline_id=timeline_id)
def __init__ ( self , index_name , sketch_id , timeline_id = None , data_type = None ) : self . _config = None if data_type : self . _config = SimilarityScorerConfig ( index_name , data_type ) super ( ) . __init__ ( index_name , sketch_id , timeline_id = timeline_id )