Parameters
Overview
Queries to the Search API consist of the following query parameters:
- bookMark – Bookmark search – Searches for a record matching a previously stored bookmark
- cmd – Command – Allows commands to be passed to the Search API
- debug – Debug – Enables or disables debug mode
- dym – Did You Mean – Enables or disables did you mean functionality
- exp – Query Expansion – Enables or disables query expansion functionality
- fids – Fetch Multiple IDs – Allows retrieval of multiple records by querying on a list of IDs in a single call.
- ff – Facet Field – Allows facet counts for a given field with a given combine mode
- fvf – Facet Value Filter – Applies an exact-value filter for a facet value within a facetable field
- fvgf – Facet Value Group Filter – Advanced feature that allows grouping of facet values within a facet-value filter, using an arbitrary combine mode
- he – Highlight End – Sets the end delimiter for result highlighting
- hs – Highlight Start – Sets the starting delimiter for result highlighting
- hl – Highlight – Enables or disables highlighting within result fields
- ho – Holdings Only – Enables or disables holdings only mode
- l – Language – Defines the language that is used in the user interface application
- light – Light Weight Response – Enables or disables the light weight response format
- mr (deprecated – see s.rec.db.max) – Max Recommendations – Define the maximum number of database recommendations to be presented in the results
- oaf – Open Access Filter – Filters the results by open access content only
- pn – Page Number – Controls the offset of the returned results within the total result set
- ps – Page Size – Controls the number of results per page in the response
- rec.db.max – Max Recommendations – Define the maximum number of database recommendations to be presented in the results
- rec.jt – Journal Title Recommendations – Enables or disables journal title recommendations functionality
- rec.topic.max – Maximum Topics – Determines how many topics to be returned by the Topic Explorer service
- role – Role – Define whether the user is as an authenticated user: authenticated or none.
- rff – Range Facet Field – Allows facet counts by range
- rf – Range Filter – Allows inclusive and exclusive range filters on a single field
- ru – Content Rollup – Defines which content rollups to activate and how many records to be included in each rollup
- sort – Sort – Controls the result sort order
- fq – Text Filter – Filter input allowing direct Lucene-style filter queries
- q – Text Query – One of the primary query inputs. The Text Query parameter allows direct, Lucene-style queries
Token Parameters
Parameters that do not conform to the syntax in the previous heading, such as author=Mark+Twain, will be picked up by the parser and used to token replace values in other parameters.
Example – How token parameters get used
Initial query string:
author=Mark+Twain&s.q=Author:(${author})
Results in:
q=Author:(Mark+Twain)
For more information on token replacing, see Tokens.
Character Escaping
Characters must be escaped with the backslash (‘\’) character. For all parameter values except q and fq, the characters that must be escaped include: ,:\()${}. For parameters and arguments that hold Lucene query syntax, characters that may need to be escaped include: +-&|!(){}[]^”~*?:\. Lucene special characters only need to be escaped if their special meaning was not intended. If Lucene escaping and regular escaping are both needed, as in the setTextQuery() command, the Lucene escaping must be performed before regular escaping.
All parameters must be properly URL-encoded using UTF-8 character encoding.
Example – An example query string
ff=ContentType%2Cor%2C1%2C1&
fvf=ContentType%2CJournal+Article%2Cfalse&
he=%3C%2Fh%3E&
hs=%3Ch%3E&
hl=true&
ho=true&
pn=1&
ps=10&
rff=PublicationDate%2C1990%3A2000&
rf=PublicationDate%2C1990%3A2000&
sort=PublicationDate%3Adesc&
fq=Title%3Arain&
q=forests