fuzzydb icon indicating copy to clipboard operation
fuzzydb copied to clipboard

Implement fluent API for building a fuzzy query

Open nealeu opened this issue 14 years ago • 0 comments

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);

nealeu avatar May 13 '11 18:05 nealeu