|
@@ -103,7 +103,7 @@ const SearchVocabularyWidget = ({
|
|
|
.then((json) => {
|
|
.then((json) => {
|
|
|
const words: ValueType[] = json.data.rows
|
|
const words: ValueType[] = json.data.rows
|
|
|
.map((item) => {
|
|
.map((item) => {
|
|
|
- let weight = item.count / item.strlen;
|
|
|
|
|
|
|
+ let weight = item.count / (item.strlen - value.length + 0.1);
|
|
|
if (item.word.length === value.length) {
|
|
if (item.word.length === value.length) {
|
|
|
weight = 100;
|
|
weight = 100;
|
|
|
}
|
|
}
|