| Results | R Documentation |
Collection of search results with convenient accessors
itemsList of Result objects
querySearch query
modeSearch mode
time_msExecution time in ms
new()Create a new Results object
Results$new(items = list(), query = "", mode = "hybrid", time_ms = 0)
itemsList of Result objects
querySearch query string
modeSearch mode used
time_msExecution time in milliseconds
length()Get number of results
Results$length()
texts()Get all result texts
Results$texts()
Character vector of texts
ids()Get all result IDs
Results$ids()
Character vector of IDs
scores()Get all scores
Results$scores()
Numeric vector of scores
top()Get top result
Results$top()
Result object or NULL if empty
get()Get result by index
Results$get(i)
iIndex
Result object
foreach()Iterate over results
Results$foreach(fn)
fnFunction to apply to each result
print()Print results summary
Results$print()
clone()The objects of this class are cloneable with this method.
Results$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.