Commit 20c2835e authored by Jonas Waeber's avatar Jonas Waeber
Browse files

First version object map.

parent d032b4a7
This source diff could not be displayed because it is too large. You can view the blob instead.
from simple_elastic import ElasticIndex
if __name__ == '__main__':
index = ElasticIndex('documents-v19', url='localhost:8080')
query = {
"_source": {
"includes": ["id", "oldMemobaseId"]
},
"query": {
"exists": {
"field": "oldMemobaseId"
}
}
}
with open('object_map.txt', 'w') as fp:
for items in index.scroll(query=query, size=1000):
for item in items:
fp.write(f'{item["oldMemobaseId"]} {item["id"]}\n')
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