Last active
August 29, 2015 14:07
-
-
Save erwan/057350d746fa64a673df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "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