fuzzydb
fuzzydb copied to clipboard
Implement fluent API for building a fuzzy query
Db has support for merging search config with attrs of item being matched against. For M1, what would make life easy for new users, is to ignore items that may already be in the database, and have a query that's something like:
SearchSpec searchSpec = SearchFactory.simpleSearch()
.mustNotHave("Newspaper", eq("Daily Mail"))
.wouldLike("Newspaper",eq("Guardian")
.maxResults(10)
.build();
ResultSet<Cafe> = entityManager.query(Cafe.class, searchSpec);