This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure the source index is actually open | |
POST /source_index/_open | |
# Put the source index in read-only mode | |
PUT /source_index/_settings | |
{ | |
"settings": { | |
"index.blocks.write": "true" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from datetime import datetime | |
from rapidfuzz.process import extractOne | |
from string_grouper import match_strings, group_similar_strings | |
from sys import argv | |
from time import monotonic | |
from uuid import uuid4 | |
class Constants: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from datetime import datetime | |
from itertools import combinations | |
from math import comb | |
from sys import argv | |
from time import monotonic | |
from typing import List | |
MAX_FAMILY_TOKENS = 6 |