## Not run:
# # simple content search
# zeit_search(endpoint="content", query="bayreuth")
# zeit_search("content", "bayreuth") # same same
#
# # multiple tokens
# zeit_search("content", c("bayreuth", "festspiele"))
#
# # entire string
# zeit_search("content", "bayreuther festspiele")
#
# # field query
# zeit_search("content", "title:bayreuth")
#
# # partial selection
# zeit_search("content", "bayreuth", fields=c("title", "teaser_text"))
#
# # pagination
# zeit_search("content", "bayreuth", limit=1) # just one match
# zeit_search("content", "bayreuth", limit=1, offset=1) # just the second match
#
# # sorting
# zeit_search("content", "bayreuth",
# sort=c("release_date", "asc")) # sort by date
# zeit_search("content", "bayreuth",
# sort=list(c("release_date", "desc"), c("title", "asc"))) # sort by date and title
#
# # hide matches
# bt.matches <- zeit_search("content", "bayreuth", print=FALSE)
#
# # author search
# zeit_search(endpoint="author", query="Stefan Locke")
# ## End(Not run)
Run the code above in your browser using DataLab