client.indices.create(
index=index,
body={
'settings': {
'number_of_shards': 1,
'number_of_replicas': 0,
'analysis': {
'analyzer': {
'file_path': {
'type': 'custom',
'tokenizer': 'path_hierarchy',
'filter': ['lowercase']
}
}
}
}
},
ignore=400
)
Look at here .
source
share