UNPKG

solrkit

Version:

![Build Status](https://travis-ci.org/garysieling/solrkit.svg?branch=master) ![Dependencies](https://david-dm.org/garysieling/solrkit/status.svg) UI Components for Solr, using TypeScript + React

47 lines 1.95 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { DataStore } from '../../../../context/DataStore'; var AppDataStore = (function (_super) { __extends(AppDataStore, _super); function AppDataStore() { return _super.call(this) || this; } Object.defineProperty(AppDataStore.prototype, "talks", { // Every core should have it's own function // registered in your datastore // // If you want to have some UI controls use // different subsets of the data in the index // you should register one entry per use case. get: function () { if (!this.core) { this.core = _super.prototype.registerCore.call(this, { url: 'http://40.87.64.225:8983/solr/', core: 'talks', primaryKey: 'id', // Unfortunately these have to be repeated // since there is no apparent way to sync // this with Typescript fields: ['title_s', 'url_s', 'id'], defaultSearchFields: ['title_s', 'auto_transcript_txt_en'], pageSize: 10, prefix: 'talk' }); } return this.core; }, enumerable: true, configurable: true }); return AppDataStore; }(DataStore)); export { AppDataStore }; //# sourceMappingURL=AppDataStore.js.map