Commit 02e49772 by Sxy

优化同音字

parent 7f2cf406
...@@ -172,7 +172,7 @@ async function seven(name, length, zhlength, enlength, otherlength, boost) { ...@@ -172,7 +172,7 @@ async function seven(name, length, zhlength, enlength, otherlength, boost) {
should: [ should: [
{ {
bool: { bool: {
"must": [ must: [
{ {
term: { term: {
length: { length: {
...@@ -193,9 +193,24 @@ async function seven(name, length, zhlength, enlength, otherlength, boost) { ...@@ -193,9 +193,24 @@ async function seven(name, length, zhlength, enlength, otherlength, boost) {
query: name, query: name,
"boost": boost "boost": boost
}, },
} }
} },
],
should: [
{
bool: {
"must": [
{
match: {
"name.standard": {
query: name,
"boost": boost
}
}
}
],
}
},
], ],
"must_not": [ "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