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
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
iIndex
Result object
foreach()Iterate over results
Results$foreach(fn)fnFunction to apply to each result
clone()The objects of this class are cloneable with this method.
Results$clone(deep = FALSE)deepWhether to make a deep clone.