Created
March 31, 2015 09:44
-
-
Save prismicdeveloper/1efb7363a5f573627308 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