mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
committed by
Rainer Killinger
parent
42c7350c36
commit
8b457c9911
@@ -15,7 +15,9 @@
|
||||
*/
|
||||
import {SCThingType} from '@openstapps/core';
|
||||
import {SCThing} from '@openstapps/core';
|
||||
import {NameList} from 'elasticsearch';
|
||||
|
||||
/* tslint:disable:completed-docs */ // TODO: document properties of interfaces
|
||||
/**
|
||||
* An elasticsearch bucket aggregation
|
||||
* @see https://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-aggregations-bucket.html
|
||||
@@ -60,9 +62,11 @@ export interface ElasticsearchObject<T extends SCThing> {
|
||||
_source: T;
|
||||
_type: string;
|
||||
_version?: number;
|
||||
fields?: any;
|
||||
fields?: NameList;
|
||||
// tslint:disable: no-any
|
||||
highlight?: any;
|
||||
inner_hits?: any;
|
||||
// tslint:enable: no-any
|
||||
matched_queries?: string[];
|
||||
sort?: string[];
|
||||
}
|
||||
@@ -156,7 +160,7 @@ export interface ESBooleanFilter<T> {
|
||||
export interface ESFunctionScoreQuery {
|
||||
function_score: {
|
||||
functions: ESFunctionScoreQueryFunction[];
|
||||
query: ESBooleanFilter<any>;
|
||||
query: ESBooleanFilter<unknown>;
|
||||
score_mode: 'multiply';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user