Commit f00ada8e authored by lixiaofang's avatar lixiaofang

add

parent 4a796afc
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="7b835479-ee84-40d6-9b97-0e9285d92119" name="Default Changelist" comment="" /> <list default="true" id="7b835479-ee84-40d6-9b97-0e9285d92119" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/index_contrast/tag.py" beforeDir="false" afterPath="$PROJECT_DIR$/index_contrast/tag.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
...@@ -25,13 +27,13 @@ ...@@ -25,13 +27,13 @@
<usages-collector id="statistics.file.extensions.edit"> <usages-collector id="statistics.file.extensions.edit">
<counts> <counts>
<entry key="dummy" value="1" /> <entry key="dummy" value="1" />
<entry key="py" value="1427" /> <entry key="py" value="1502" />
</counts> </counts>
</usages-collector> </usages-collector>
<usages-collector id="statistics.file.types.edit"> <usages-collector id="statistics.file.types.edit">
<counts> <counts>
<entry key="PLAIN_TEXT" value="1" /> <entry key="PLAIN_TEXT" value="1" />
<entry key="Python" value="1427" /> <entry key="Python" value="1502" />
</counts> </counts>
</usages-collector> </usages-collector>
<usages-collector id="statistics.lifecycle.project"> <usages-collector id="statistics.lifecycle.project">
...@@ -58,10 +60,11 @@ ...@@ -58,10 +60,11 @@
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/index_contrast/tag.py"> <entry file="file://$PROJECT_DIR$/index_contrast/tag.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="61"> <state relative-caret-position="267">
<caret line="151" column="48" selection-start-line="151" selection-start-column="48" selection-end-line="151" selection-end-column="48" /> <caret line="542" column="51" lean-forward="true" selection-start-line="542" selection-start-column="51" selection-end-line="542" selection-end-column="51" />
<folding> <folding>
<element signature="e#46#55#0" expanded="true" /> <element signature="e#46#55#0" expanded="true" />
<element signature="e#378#16711#0" />
<element signature="e#8854#9452#0" /> <element signature="e#8854#9452#0" />
<element signature="e#9522#10831#0" /> <element signature="e#9522#10831#0" />
<element signature="e#10934#13999#0" /> <element signature="e#10934#13999#0" />
...@@ -234,6 +237,7 @@ ...@@ -234,6 +237,7 @@
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="0" y="23" width="1280" height="720" extended-state="6" /> <frame x="0" y="23" width="1280" height="720" extended-state="6" />
<editor active="true" />
<layout> <layout>
<window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" /> <window_info id="Structure" order="0" sideWeight="0.21188119" side_tool="true" weight="0.19112115" />
<window_info id="Favorites" order="1" side_tool="true" /> <window_info id="Favorites" order="1" side_tool="true" />
...@@ -247,7 +251,7 @@ ...@@ -247,7 +251,7 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" /> <window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" /> <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
<window_info active="true" anchor="bottom" id="Terminal" order="8" sideWeight="0.49960285" visible="true" weight="0.21652892" /> <window_info active="true" anchor="bottom" id="Terminal" order="8" sideWeight="0.49960285" visible="true" weight="0.3289256" />
<window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.50039715" side_tool="true" weight="0.32890365" /> <window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.50039715" side_tool="true" weight="0.32890365" />
<window_info anchor="bottom" id="Python Console" order="10" /> <window_info anchor="bottom" id="Python Console" order="10" />
<window_info anchor="bottom" id="DB Execution Console" order="11" /> <window_info anchor="bottom" id="DB Execution Console" order="11" />
...@@ -510,10 +514,11 @@ ...@@ -510,10 +514,11 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/index_contrast/tag.py"> <entry file="file://$PROJECT_DIR$/index_contrast/tag.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="61"> <state relative-caret-position="267">
<caret line="151" column="48" selection-start-line="151" selection-start-column="48" selection-end-line="151" selection-end-column="48" /> <caret line="542" column="51" lean-forward="true" selection-start-line="542" selection-start-column="51" selection-end-line="542" selection-end-column="51" />
<folding> <folding>
<element signature="e#46#55#0" expanded="true" /> <element signature="e#46#55#0" expanded="true" />
<element signature="e#378#16711#0" />
<element signature="e#8854#9452#0" /> <element signature="e#8854#9452#0" />
<element signature="e#9522#10831#0" /> <element signature="e#9522#10831#0" />
<element signature="e#10934#13999#0" /> <element signature="e#10934#13999#0" />
......
...@@ -12,7 +12,7 @@ import elasticsearch.helpers ...@@ -12,7 +12,7 @@ import elasticsearch.helpers
ES_INFO_LIST = [ ES_INFO_LIST = [
{ {
"host": "62.234.191.183", "host": "172.21.40.14",
"port": 9200 "port": 9200
} }
] ]
...@@ -516,6 +516,22 @@ for old_item in result_dict["hits"]: ...@@ -516,6 +516,22 @@ for old_item in result_dict["hits"]:
print(old_source["suggest"]) print(old_source["suggest"])
print(new_source["suggest"]) print(new_source["suggest"])
print("-----suggest-----") print("-----suggest-----")
for key, values in old_source["suggest"].items():
if key == "input":
for i in values:
if i not in values:
print(i)
else:
is_online = values["is_online"]
is_deleted = values["is_deleted"]
if is_online != new_source["suggest"]["contexts"]["is_online"]:
print(is_online)
print ("----is_online--------")
if is_deleted != new_source["suggest"]["contexts"]["is_deleted"]:
print(is_deleted)
print("-------is_deleted---------")
if old_source["is_deleted"] != new_source["is_deleted"]: if old_source["is_deleted"] != new_source["is_deleted"]:
print(old_source["is_deleted"]) print(old_source["is_deleted"])
......
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