src/TemplateIndexer.js
Function indexMapping
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static get indexMapping() {
return {
properties: {
id: {
type: "keyword",
Function index
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async index() {
const resourceId = this.valueFor(
"http://sinopia.io/vocabulary/hasResourceId"
)
// Don't index base templates (i.e., templates for templates).