Methods
-
staticbelhop.factory.options.search.custom(filterOptions, start, size, faceted) {belhop.__.SearchOptions}
-
Custom search options factory. See the
typethis factory produces for more.Name Type Default Description filterOptionsbelhop.__.FilterOptions nullable Filter options
startnumber 0 optional Page to start from
sizenumber 10 optional Maximum search results
facetedboolean false optional Controls faceting of the response
Returns:
Type Description belhop.__.SearchOptions the BELHop type produced by this factory Example
// search for 'foo' var filterOpts = belhop.factory.options.filter.default('foo'); // paging search results 10 at a time, get the second page var searchOpts = belhop.factory.options.search.custom(filterOpts, 10, 10); -
staticbelhop.factory.options.search.default(value) {belhop.__.DefaultSearchOptions}
-
Default search options factory. See the
typethis factory produces for more.Name Type Description valuestring Search term
Returns:
Type Description belhop.__.DefaultSearchOptions the BELHop type produced by this factory Example
// search for 'foo' using defaults var opts = belhop.factory.options.search.default('foo'); -
staticbelhop.factory.options.search.evidence(filterOptions, start, size, faceted) {belhop.__.SearchOptions}
-
Default evidence search options factory. See the
typethis factory produces for more.Name Type Default Description filterOptionsbelhop.__.FilterOptions nullable Filter options
startnumber 0 optional Page to start from
sizenumber 100 optional Maximum search results
facetedboolean false optional Controls faceting of the response
Returns:
Type Description belhop.__.SearchOptions the BELHop type produced by this factory