feat: add onlyOnType field for SCFacet

This commit is contained in:
Wieland Schöbl
2019-09-03 11:18:12 +02:00
committed by Karl-Philipp Wulfert
parent 8a5251c2e6
commit fba63db137

View File

@@ -13,6 +13,7 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {SCThingsField} from '../../meta';
import {SCThingType} from '../../things/abstract/thing';
/**
* A search facet
@@ -27,6 +28,11 @@ export interface SCFacet {
* Field of the aggregation
*/
field: SCThingsField;
/**
* Type of the aggregation
*/
onlyOnType?: SCThingType;
}
/**