You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**recordSchema**: Schema of the records. **Mandatory**.
28
41
-**version**: SRU version. Defaults to **2.0**.
29
-
-**maxRecordsPerRequest**: Maximum number of records to retrieve per requests. Defaults to **1000**.
42
+
-**maxRecordsPerRequest**: Maximum number of records to retrieve per requests. Defaults to **1000**. If maxRecordsPerRequest is set to **0** search does not retrieve any records. The **total** event returns still the total number of records available for search.
30
43
-**recordFormat**: Format of the record argument in **record** event. Defaults to **string** (See export **recordFormats**)
31
-
-**retrieveAll**: Whether to retrieve all records or just from the first response. If **false**, the **end** event return the offset of the next record for the query
44
+
-**retrieveAll**: Whether to retrieve all records or just from the first response. If **false**, the **end** event return the offset of the next record for the query. The **total** event returns still the total number of records available for search.
32
45
## searchRetrieve options:
33
46
The first parameter is the mandatory query string. Second is an optional object which supports the following properties:
34
47
-**startRecord**: The offset of the record from which to start fetching results from. See **retrieveAll** of the client creation options.
35
48
-**recordSchema**: Override default record schema
49
+
50
+
# Notes
51
+
- The **totalNumberOfRecords** returned by the **total** event is limited to the maximum number of records provided by server. Ie. if the SRU servers limit for search and retrieve is 20 000 records, 20 000 is the maximum totalNumberOfRecords available, even if the server's database actually contains more records matching the query.
52
+
36
53
## License and copyright
37
54
38
-
Copyright (c) 2015, 2017-2018, 2020 **University Of Helsinki (The National Library Of Finland)**
55
+
Copyright (c) 2015, 2017-2018, 2020-2021**University Of Helsinki (The National Library Of Finland)**
39
56
40
57
This project's source code is licensed under the terms of **GNU Lesser General Public License Version 3** or any later version.
0 commit comments