Skip to content

Instantly share code, notes, and snippets.

@erwan
Last active August 29, 2015 14:07
Show Gist options
  • Save erwan/057350d746fa64a673df to your computer and use it in GitHub Desktop.
Save erwan/057350d746fa64a673df to your computer and use it in GitHub Desktop.
# "at" predicate: equality of a fragment to a value.
at = predicates.at("document.type", "article")
# "any" predicate: equality of a fragment to a value.
any = predicates.any("document.type", ["article", "blog-post"])
# "fulltext" predicate: fulltext search in a fragment.
fulltext = predicates.fulltext("my.article.body", "sausage")
# "similar" predicate, with a document id as reference
similar = predicates.similar("UXasdFwe42D", 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment