Commit a10a5a40 authored by litaolemo's avatar litaolemo

update

parent 4c9f59dc
...@@ -457,13 +457,13 @@ class QuickstartUser(FastHttpUser): ...@@ -457,13 +457,13 @@ class QuickstartUser(FastHttpUser):
"highlight_query": {"bool": {"must": {"terms": {"keynote_sentence": [query]}}}}}}, "highlight_query": {"bool": {"must": {"terms": {"keynote_sentence": [query]}}}}}},
"fragment_size": 10000, "pre_tags": ["<ems>"], "post_tags": ["</ems>"]}, "fragment_size": 10000, "pre_tags": ["<ems>"], "post_tags": ["</ems>"]},
"_source": {"include": ["id", "question_id", "keynote_sentence", "highlight"]}} "_source": {"include": ["id", "question_id", "keynote_sentence", "highlight"]}}
heasers = { # heasers = {
"Content-Type": "application/x-www-form-urlencoded" # "Content-Type": "application/x-www-form-urlencoded"
} # }
response = self.client.post('/gm-dbmw-answer-read/_search', json=data,verify=False, with self.client.post('/gm-dbmw-answer-read/_search', json=data,verify=False,
auth=tuple(auth.split(':', 1)),timeout=1) auth=tuple(auth.split(':', 1)),timeout=1) as response:
if response.status_code != 200: if response.status_code != 200:
raise RescheduleTask() raise RescheduleTask()
# response = requests.post('http://172.16.52.25/gm-dbmw-service-read/_search', json=query, verify=False,auth=("elastic","elastic:gengmei!@#")) # response = requests.post('http://172.16.52.25/gm-dbmw-service-read/_search', json=query, verify=False,auth=("elastic","elastic:gengmei!@#"))
# print(response.text) # print(response.text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment