Configure Search API
Last updated
Was this helpful?
Last updated
Was this helpful?
Aidbox Search API can be configured in many ways. This page explains the difference between general types of Search API.
Aidbox has two engines to search: and .
The engine is responsible for SQL generation for search operations. SQL by jsonpath and jsonknife is different for search parameter types: date, number, quantity, reference, string, token, uri. _lastUpdated, _createdAt search parameters and :missing modifier searches are also differs by engine.
jsonpath-engine:
supported by PostgreSQL without external extensions, can be used with managed PostgreSQL, e.g. Azure PostgreSQL
better performance for string search parameters and all string-related search (e.g. :text modifier)*
will be supported as main engine
jsonknife:
is an external extension, can not be used with managed PostgreSQL
better performance for dates, number and quantity search parameters*
* makes performance approximately the same
Use BOX_SEARCH_ENGINE
environment variable to choose engine. The default is knife.
To enable zen-search, use BOX_SEARCH_ZEN__FHIR=true
and BOX_SEARCH_RESOURCE__COMPAT=false
to use preferred version of zen-search (backward compatibility environment variable).
You can also auto-generate indexes for SearchParameter:
is a powerful DSL language to , profiles, and search. It allows you to set up search parameters from IGs automatically, make your own search parameters and indexes associated with them.
Follow guide.