elasticsearch-entity-resolution
elasticsearch-entity-resolution copied to clipboard
Hits are not being rescored
I'm having an issue with this plugin. It seems as if no matter what I try to do all of my hits only get rescored by the low.
My query looks like this:
(I have also tried using match_all
)
query= {
"query": {
"function_score": {
"query": {
"match": {
"data": testString
}
},
"script_score": {
"script": "entity-resolution",
"lang": "native",
"params": {
"entity": {
"fields": [
{
"field": "data",
"value": testString,
"cleaners": [],
"comparator": {
"name": "no.priv.garshol.duke.comparators.Levenshtein"
},
"low": 0.3,
"high": 0.88
}
]
}
}
},
"boost_mode": "replace"
}
}
}
and my index looks like this:
"receipt": {
"_source": { "enabled": true },
"properties": {
"id": { "type": "string" },
"retailer_id": { "type": "string" },
"images": {
"type" : "object",
"properties": {
"processed": { "type": "string" },
"original": { "type": "string" }
}
},
"data": {
"type": "string",
"fields": {
"raw": { "type": "string", "index": "not_analyzed" }
}
},
"created_at": { "type": "date" },
"updated_at": { "type": "date" }
}
}
I have tried multiple comparators just to try if it actually does anything but I feel like it's not doing anything at all. I'm using elasticsearch Version: 2.1.1, Build: 40e2c53/2015-12-15T13:05:55Z, JVM: 1.8.0_71
I installed the plugin by downloading the .zip and .md5