我有此数据的solr同义词文件
aaa =>胸罩
fff =>胸罩
搜索“ aaa”会显示一些结果。 (与胸罩相同的结果)
搜索“ bra”会显示一些结果
搜索“ bras”会显示一些结果
搜索“ fff”不会显示任何结果
这里可能有什么问题?
更新:这是架构
const express = require ('express');
const router = express.Router();
const mongoose = require ('mongoose');
const Admin = mongoose.model('Admin');
const Thing = mongoose.model('Thing');
const ctrlAdmin = require ('../controllers/admin.controller.js');
const jwt = require('jsonwebtoken');
router.get('/verify',function(req,res){
console.log('request recieved');
const emailTokenn = req.query.id;
console.log(emailTokenn);
Thing.updateOne( { emailResetTokenn: emailTokenn },{ $set: { verified: true }},(err) =>{
if(!err){
return res.redirect('https://localhost/something.com/fw18/index.html');
}
else{
throw err;
}
});
});
谢谢