when i am adding es_type in model the value is ignored from indexing
I have two models category and products in that i need to populate the primarycategoryid.
Category schema
import { Schema, model } from "mongoose";
var mexp = require('mongoose-elasticsearch-xp').v7;
var categorySchema = Schema({
title: {
type: String,
required: 'title required',
trim: true
},
description: {
type: String,
trim: true
},
imageurl: {
type: String
}
})
categorySchema.plugin(mexp);
// Export Category
var categoryModel = (module.exports = model("category", categorySchema));
when i am adding es_type in model the value is ignored from indexing I have two models category and products in that i need to populate the primarycategoryid. Category schema
Product Schema
But in elastic search the primarycategoryid is not there, when i am removing
the primarycategoryid added