malteseduck / spring-data-marklogic

An implementation of the Spring Data interfaces for the MarkLogic NoSQL database
Apache License 2.0
7 stars 9 forks source link

Support "like" queries without requiring an index #32

Open malteseduck opened 6 years ago

malteseduck commented 6 years ago

In MarkLogic 8 it seemed like wildcard searches would resolve fine without indexes, though perhaps not very fast with large data sets. In 9 these queries now do not work - in fact they match everything, unless there are at least 3 characters in the search. Maybe turn on filtering by default, and make that an easy configuration to change?

Also, for the element searches to work right without filtering the "fast element character searches" needs to be turned on as well. The default filtering would fix this as well.