Пример #1
0
 def __init__(self, app_name, suggest_name):
     OpenSearchAPI.__init__(self)
     self.appName = app_name
     self.suggestName = suggest_name
     self.setParam({
         'query': '',
         'index_name': '',
         'hit': '',
         'suggest_name': ''
     })
     self.setHost("opensearch-cn-corp.aliyuncs.com")
Пример #2
0
 def __init__(self, ak = None, secret = None, host = None):
     OpenSearchAPI.__init__(self)
     if ak is None or secret is None:
         self.setAccessKeyAndSecret("M2plnqGUH5lC4UWQ","CUJSetgXfjdEzP2tE9ZRN74BvS2Te0")
     else:
         self.setAccessKeyAndSecret(ak, secret)
     if host is None or host == "":
         self.setHost("opensearch-cn-corp.aliyuncs.com")
     self.table_name = "main"
     self.setParam({
         "action" : "push",
         "sign_mode" : "1",
         "table_name" : self.table_name
         })
     self.setMethodToPost()
Пример #3
0
 def __init__(self, ak=None, secret=None, host=None):
     OpenSearchAPI.__init__(self)
     if ak is None or secret is None:
         self.setAccessKeyAndSecret("M2plnqGUH5lC4UWQ",
                                    "CUJSetgXfjdEzP2tE9ZRN74BvS2Te0")
     else:
         self.setAccessKeyAndSecret(ak, secret)
     if host is None or host == "":
         self.setHost("opensearch-cn-corp.aliyuncs.com")
     self.table_name = "main"
     self.setParam({
         "action": "push",
         "sign_mode": "1",
         "table_name": self.table_name
     })
     self.setMethodToPost()
Пример #4
0
 def __init__(self, app_name, suggest_name):
     OpenSearchAPI.__init__(self)
     self.appName= app_name
     self.suggestName = suggest_name
     self.setParam({'query':'','index_name':'','hit':'','suggest_name':''})
     self.setHost("opensearch-cn-corp.aliyuncs.com")
Пример #5
0
 def __init__(self):
     OpenSearchAPI.__init__(self)
     self.appName="HDoc_V8"
     self.setParam({'query':'','index_name':''})
     self.setHost("opensearch-cn-corp.aliyuncs.com")
     self.requestNum = 0
Пример #6
0
 def __init__(self):
     OpenSearchAPI.__init__(self)
     self.appName = "HDoc_V8"
     self.setParam({'query': '', 'index_name': ''})
     self.setHost("opensearch-cn-corp.aliyuncs.com")
     self.requestNum = 0
Пример #7
0
 def __init__(self):
     OpenSearchAPI.__init__(self)
     self.appName = "OpensearchHelpdoc"
     self.setParam({"query": "", "index_name": ""})
     self.setHost("opensearch-cn-corp.aliyuncs.com")
Пример #8
0
 def __init__(self):
     OpenSearchAPI.__init__(self)
     self.appName="OpensearchHelpDoc"
     self.suggestName = "**"
     self.setParam({'query':'','index_name':'','hit':'','suggest_name':''})
     self.setHost("opensearch-cn-corp.aliyuncs.com")