Interface: FacetedSearchQuery
Defined in: src/types/interfaces/search.interface.ts:210
Faceted search query with aggregations.
Extends
Properties
facets
readonlyfacets: readonlystring[]
Defined in: src/types/interfaces/search.interface.ts:220
Facet dimensions to aggregate.
Remarks
Common facets:
- "subjects" - Count by subject classification
- "author" - Count by author
- "year" - Count by publication year
filters?
readonlyoptionalfilters:object
Defined in: src/types/interfaces/search.interface.ts:119
Filters to apply.
author?
readonlyoptionalauthor:DID
Filter by author DID.
dateFrom?
readonlyoptionaldateFrom:Date
Filter by creation date range (from).
dateTo?
readonlyoptionaldateTo:Date
Filter by creation date range (to).
subjects?
readonlyoptionalsubjects: readonlystring[]
Filter by subject classifications.
Remarks
Filters are applied as boolean filters (not affecting scoring).
Inherited from
limit?
readonlyoptionallimit:number
Defined in: src/types/interfaces/search.interface.ts:147
Maximum number of results to return.
Remarks
Default: 10. Maximum: 100.
Inherited from
offset?
readonlyoptionaloffset:number
Defined in: src/types/interfaces/search.interface.ts:155
Offset for pagination.
Remarks
For deep pagination, use search_after instead.
Inherited from
q
readonlyq:string
Defined in: src/types/interfaces/search.interface.ts:111
Query string.
Remarks
Supports Elasticsearch query string syntax:
- Simple: "neural networks"
- Field-specific: "title:neural AND abstract:biology"
- Wildcards: "neuro*"
- Phrases: ""neural networks""