👇🏼 Inferring issue metadata upon import
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user