Greetings : I have Above than 1M records in ES. Now i want to dedup data on bases of percentage. For Example "Give me list of all records whose title are 90% matched or above".
Lets take another example. "I need to retrieve all records whose locations are 80% or above matched".
I try to dedup records according to title but i need to retrieve by percentage.
GET index/_search
{
"size": 0,
"aggs": {
"duplicate": {
"terms": {
"script": "doc['product_title'].value",
"size": 1000
},
"aggs": {
"duplicate list": {
"top_hits": {
}
}
}
}
}
}
How can i fetch duplicate records whose specific column match by defined percentage with other records. Any help would be appreciable. Thanks