-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] fuzziness
parameter differs in types dependant on relevance functionc
#3749
Comments
This is more of a matter of method signature consistency than of a bug. Here's the trade-off between taking Take
Take
|
Why not to have both options? |
Object is more general, and Fuzziness.build() takes object as input already |
fixed by #5433 |
What is the bug?
Parsing accepts types
fuzziness
andObject
dependent on relevance function. This is confusing for developers and whenfuzziness
is not used as type, an incorrect implementation can be placed on top of the API.QueryStringQueryBuilder
MultiMatchQueryBuilder
MatchQueryBuilder
What is the expected behavior?
One consistent type should used.
fuzziness
type would be preferred to ensure validfuzziness
types through the API conformity.Additional Notes
The main drawback from not using the
fuzziness
type would be when fulfilling the API a compile time error could be replaced with a run-time error. For example this bug would not be produceable:PR-668
The text was updated successfully, but these errors were encountered: