@@ -33,22 +33,22 @@ def __init__(
3333 self ,
3434 suffix : str | None = None ,
3535 rebuild : bool | None = False ,
36- single_cache_file : bool | None = False ,
37- enable_cache_indexer : bool | None = False ,
36+ single_query_cache_file : bool | None = False ,
37+ enable_query_cache_indexer : bool | None = False ,
3838 ):
3939 """Initialize the Text2SqlAISearch class. This class implements the deployment of the sql index.
4040
4141 Args:
4242 suffix (str, optional): The suffix for the indexer. Defaults to None. If an suffix is provided, it is assumed to be a test indexer.
4343 rebuild (bool, optional): Whether to rebuild the index. Defaults to False.
44- single_cache_file (bool, optional): Whether to use a single cache file. Defaults to False. Only applies if the cache indexer is enabled.
45- enable_cache_indexer (bool, optional): Whether to enable cache indexer. Defaults to False.
44+ single_query_cache_file (bool, optional): Whether to use a single cache file. Defaults to False. Only applies if the cache indexer is enabled.
45+ enable_query_cache_indexer (bool, optional): Whether to enable cache indexer. Defaults to False.
4646 """
4747 self .indexer_type = IndexerType .TEXT_2_SQL_QUERY_CACHE
48- self .enable_cache_indexer = enable_cache_indexer
48+ self .enable_query_cache_indexer = enable_query_cache_indexer
4949 super ().__init__ (suffix , rebuild )
5050
51- if single_cache_file :
51+ if single_query_cache_file :
5252 self .parsing_mode = BlobIndexerParsingMode .JSON_ARRAY
5353 else :
5454 self .parsing_mode = BlobIndexerParsingMode .JSON
@@ -164,7 +164,7 @@ def get_skills(self) -> list:
164164 Returns:
165165 list: The skillsets used in the indexer"""
166166
167- if self .enable_cache_indexer is False :
167+ if self .enable_query_cache_indexer is False :
168168 return []
169169
170170 embedding_skill = self .get_vector_skill (
@@ -181,7 +181,7 @@ def get_indexer(self) -> SearchIndexer:
181181 Returns:
182182 SearchIndexer: The indexer for sql"""
183183
184- if self .enable_cache_indexer is False :
184+ if self .enable_query_cache_indexer is False :
185185 return None
186186
187187 # Only place on schedule if it is not a test deployment
0 commit comments