From 545097785c8ff1b9d1cd7d9258a1bbf889e93eb7 Mon Sep 17 00:00:00 2001 From: Sergey Nikolaev Date: Tue, 21 Oct 2025 17:32:36 +0700 Subject: [PATCH 1/2] docs: minor fixes in Spell_correction.md --- manual/english/Searching/Spell_correction.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manual/english/Searching/Spell_correction.md b/manual/english/Searching/Spell_correction.md index f99c5a9dfb..e142eb5886 100755 --- a/manual/english/Searching/Spell_correction.md +++ b/manual/english/Searching/Spell_correction.md @@ -331,6 +331,8 @@ CALL QSUGGEST('bag with tasel', 'products', 1 as sentence); ##### Different display mode + + The `1 as result_line` option changes the way the suggestions are displayed in the output. Instead of showing each suggestion in a separate row, it displays all suggestions, distances, and docs in a single row. Here's an example to demonstrate this: @@ -355,6 +357,8 @@ CALL QSUGGEST('bagg with tasel', 'products', 1 as result_line); ##### Using force_bigrams for better transposition handling + + The `force_bigrams` option can help with words that have transposition errors, such as "ipohne" vs "iphone". By using bigrams instead of trigrams, the algorithm can better handle character transpositions. @@ -381,7 +385,3 @@ CALL SUGGEST('ipohne', 'products', 1 as force_bigrams); * [This interactive course](https://play.manticoresearch.com/didyoumean/) shows how `CALL SUGGEST` works in a little web app. ![CALL SUGGEST example](didyoumean.png){.scale-0.5} - - - - From 2afce6a0b75bd55ff82826bf4645980b321928d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 21 Oct 2025 10:40:38 +0000 Subject: [PATCH 2/2] docs: Auto-translate documentation changes by sanikolaev --- manual/chinese/Searching/Spell_correction.md | 3 ++- manual/russian/Searching/Spell_correction.md | 3 ++- translation.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/manual/chinese/Searching/Spell_correction.md b/manual/chinese/Searching/Spell_correction.md index 4e8e9e3422..1d46abbf75 100644 --- a/manual/chinese/Searching/Spell_correction.md +++ b/manual/chinese/Searching/Spell_correction.md @@ -331,6 +331,7 @@ CALL QSUGGEST('bag with tasel', 'products', 1 as sentence); ##### 不同的显示模式 + `1 as result_line` 选项改变了建议在输出中的显示方式。不再将每条建议显示为独立行,而是将所有建议、距离和文档数合并显示在一行。以下示例演示该功能: @@ -356,6 +357,7 @@ CALL QSUGGEST('bagg with tasel', 'products', 1 as result_line); ##### 使用 force_bigrams 更好地处理转置错误 `force_bigrams` 选项可以帮助处理包含转置错误的单词,比如 "ipohne" 与 "iphone"。通过使用双字母组合而非三字母组合,算法能更好地处理字符的转置情况。 + ##### 例子: @@ -379,7 +381,6 @@ CALL SUGGEST('ipohne', 'products', 1 as force_bigrams); ### 演示 * [这个交互式课程](https://play.manticoresearch.com/didyoumean/) 演示了 `CALL SUGGEST` 在一个小型网页应用中的工作方式。 - ![CALL SUGGEST 示例](didyoumean.png){.scale-0.5} diff --git a/manual/russian/Searching/Spell_correction.md b/manual/russian/Searching/Spell_correction.md index 984b6db248..2ce795ef79 100644 --- a/manual/russian/Searching/Spell_correction.md +++ b/manual/russian/Searching/Spell_correction.md @@ -331,6 +331,7 @@ CALL QSUGGEST('bag with tasel', 'products', 1 as sentence); ##### Другой режим отображения + Опция `1 as result_line` меняет способ отображения предложений в выводе. Вместо отображения каждого предложения в отдельной строке, все предложения, расстояния и документы показываются в одной строке. Вот пример для демонстрации: @@ -356,6 +357,7 @@ CALL QSUGGEST('bagg with tasel', 'products', 1 as result_line); ##### Использование force_bigrams для лучшей обработки транспозиций Опция `force_bigrams` может помочь с словами, содержащими ошибки транспозиции, например "ipohne" вместо "iphone". Используя биграммы вместо триграмм, алгоритм лучше справляется с перестановками символов. + ##### Пример: @@ -379,7 +381,6 @@ CALL SUGGEST('ipohne', 'products', 1 as force_bigrams); ### Демонстрация * [Этот интерактивный курс](https://play.manticoresearch.com/didyoumean/) показывает, как работает `CALL SUGGEST` в небольшом веб-приложении. - ![Пример CALL SUGGEST](didyoumean.png){.scale-0.5} diff --git a/translation.json b/translation.json index 592132a4bb..fca7110b03 100644 --- a/translation.json +++ b/translation.json @@ -161,7 +161,7 @@ "Data_creation_and_modification/Updating_documents/REPLACE_vs_UPDATE.md": "40bc01e20427ca60c03219faa37f52c1", "Data_creation_and_modification/Updating_documents/UPDATE.md": "cd2be32a59903de07f40f2eed6bc1628", "Creating_a_table/NLP_and_tokenization/Low-level_tokenization.md": "7dd1833dc6a4d2cc7811453b5f626b43", - "Searching/Spell_correction.md": "5f651cae962168c1da8365633a9ad9ca", + "Searching/Spell_correction.md": "e4f9aa31a07d1a14959c344420327be6", "Installation/Compiling_from_sources.md": "4ca1372b94a832235042f6aab54ecdb0", "Node_info_and_management/SHOW_THREADS.md": "c5f1478f99f19f93f6a9bbe2bbfc69bd", "Creating_a_table/Data_types.md": "f9742fb729ccad2604dcd14573ce2554",