Hi,
I'm porting my custom similarity provider to 5.0. There seems to be no interface that I can implement on my plugin to return a similarity provider.
Before diving too deep: is this functionality removed in 5.0 (no, right????)?
Or should it be implemented different nowadays?
Kind regards,
Peter
Nevermind. The IndexModule has an addSimilarity(). Will try that.
/P
edwinran
(edwin)
November 21, 2016, 8:09am
3
Hi,Did you figure out how to solve the problem?
Hi Edwin,
Yep, just override the onIndexModule () in your plugin, like:
@Override
public void onIndexModule(IndexModule indexModule) {
indexModule.addSimilarity("bounded_similarity", (name,settings)->new BoundedSimilarity.Provider(name, settings));
}
1 Like
system
(system)
Closed
December 22, 2016, 10:15am
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.