👇🏼 Inferring issue metadata upon import

This commit is contained in:
2022-02-06 23:14:18 -08:00
parent f0d6143af2
commit bfb1f7fa28
9 changed files with 6712 additions and 479 deletions

View File

@@ -4,8 +4,8 @@ const paginate = require("mongoose-paginate-v2");
const { Client } = require("@elastic/elasticsearch");
const eSClient = new Client({
node: "http://tower.local:9200",
export const eSClient = new Client({
node: "http://localhost:9200",
auth: {
username: "elastic",
password: "password",
@@ -60,6 +60,14 @@ const ComicSchema = mongoose.Schema({
coverWriteResult: String,
}
},
inferredMetadata: {
issue: {
name: String,
number: { type: Number, es_indexed: true },
year: String,
subtitle: String,
}
},
acquisition: {
wanted: Boolean,
release: {},