-
Notifications
You must be signed in to change notification settings - Fork 1.3k
SDE 4.x, 5.x How to use custom similarity? #2424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
No, we won't change to String, because that would be a breaking change for existing users. I got a vague idea of how this can be solved, have to think about it. |
Seems we have to do the breaking change to a String, as we cannot have interfaces as annotation properties. |
I've tried to change similarity to an interface to reduce the impact on users. But the value of the annotation mode attribute must be a constant.
|
Similarity is defined by index,now I don't know how to use it.
Similarity now defines Enum, not String.
I tried specifying the default similarity index.similarity.default.type: my_similarity in elasticsearch.yml, but that became global
Or instead of using Field annotations, use Mapping altogether.
If Similarity defines String, wouldn't it be easier to extend?
eg:
If think this suggestion is good, I'd be happy to optimize this issue for this. 🧑💻
The text was updated successfully, but these errors were encountered: