Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.4.5
-
None
-
None
-
0
Description
Suggested release note:
Fixed a regression in Couchbase Java SDK 3.4.5 and Scala SDK 1.4.5 that caused Full Text Search `term` queries to throw `NullPointerException` unless `prefixLength` and `fuzziness` were specified.
To reproduce:
cluster.searchQuery("foo", SearchQuery.term("foo")); |
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "this.fuzziness" is null
|
at com.couchbase.client.core.api.search.queries.CoreTermQuery.injectParams(CoreTermQuery.java:53)
|
at com.couchbase.client.core.api.search.CoreSearchQuery.export(CoreSearchQuery.java:44)
|