Commit 02e49772 by Sxy

优化同音字

parent 7f2cf406
......@@ -172,7 +172,7 @@ async function seven(name, length, zhlength, enlength, otherlength, boost) {
should: [
{
bool: {
"must": [
must: [
{
term: {
length: {
......@@ -193,9 +193,24 @@ async function seven(name, length, zhlength, enlength, otherlength, boost) {
query: name,
"boost": boost
},
}
}
},
],
should: [
{
bool: {
"must": [
{
match: {
"name.standard": {
query: name,
"boost": boost
}
}
}
],
}
},
],
"must_not": [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment