Search from your own code
Build your own search page, app or agent on top of your index and keep everything the hosted search page has: results that match the words and the meaning of a question, filters on any field, and results you pinned.
Search
embed_and_searchOne call: the question is understood by its words and by its meaning, and the hybrid results come back; your Search Tuning settings can be changed for that call alone.
Referencevdb_info, vdb_searchYour index as the vector database of Drupal AI Search: whether it is ready, then results with the passages that answer, PDF pages included.
Drupal AI SearchYour index also answers Solr queries over HTTPS with its own connection details, the Opensolr {!hybrid} parser included.
Filters and pinned results
get_facetable_fieldsThe fields of your index that can become filters, with their kind (text value, number or date), how many documents carry them and your saved filter settings.
Referenceelevation_toggleTurn Query Elevation on or off for an index: the results you pin to the top or hide for chosen searches.
ReferenceA search by meaning counts against the monthly AI allowance of the account that owns the index, only when the vector of the question is not already in cache (API Quota). How the ranking works: Hybrid search, Search Tuning, Facets and Query Elevation.