VuFind API Documentation

TermsIdFetcher extends AbstractIdFetcher
in package

Plugin to get IDs for a sitemap from a backend using terms (if supported).

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link
https://vufind.org

Table of Contents

$searchService  : Service
Search service
__construct()  : mixed
Constructor.
getIdsFromBackend()  : array<string|int, mixed>
Retrieve a batch of IDs. Returns an array with two possible keys: ids (the latest set of retrieved IDs) and nextOffset (an offset which can be passed to the next call to this function to retrieve the next page). When all IDs have been retrieved, the nextOffset value MUST NOT be included in the return array.
getInitialOffset()  : string
Get the initial offset to seed the search process
setupBackend()  : void
Set up the backend.

Properties

Methods

__construct()

Constructor.

public __construct(Service $searchService) : mixed
Parameters
$searchService : Service

Search service

Return values
mixed

getIdsFromBackend()

Retrieve a batch of IDs. Returns an array with two possible keys: ids (the latest set of retrieved IDs) and nextOffset (an offset which can be passed to the next call to this function to retrieve the next page). When all IDs have been retrieved, the nextOffset value MUST NOT be included in the return array.

public getIdsFromBackend(string $backend, string $lastTerm, int $countPerPage, array<string|int, mixed> $filters) : array<string|int, mixed>
Parameters
$backend : string

Search backend ID

$lastTerm : string

String representing progress through set

$countPerPage : int

Page size

$filters : array<string|int, mixed>

Filters to apply to the search

Return values
array<string|int, mixed>

getInitialOffset()

Get the initial offset to seed the search process

public getInitialOffset() : string
Return values
string

setupBackend()

Set up the backend.

public setupBackend(string $backend) : void
Parameters
$backend : string

Search backend ID

Return values
void

Search results