Commit fba63db1 authored by Thea Schöbl's avatar Thea Schöbl Committed by krlwlfrt
Browse files

feat: add onlyOnType field for SCFacet

parent 8a5251c2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;
}

/**