Add comprehensive documentation with i18n support (EN/BG)
- Add docs/ folder with English (en/) and Bulgarian (bg/) documentation - Create index.md with language switching and links - English docs: installation, quickstart, architecture, baraql, storage, schema, lsm, btree, vector, graph, fts, columnar, transactions, distributed, protocol, udf, api-binary, api-http, api-websocket - Bulgarian docs: installation, quickstart, architecture, baraql, schema, lsm, btree, vector, graph, fts, transactions, distributed - Update README license to BSD 3-Clause - Add LICENSE file with BSD 3-Clause text
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# Пълнотекстово Търсене
|
||||
|
||||
Инвертиран индекс с BM25 и TF-IDF ранжиране.
|
||||
|
||||
## Употреба
|
||||
|
||||
```nim
|
||||
import barabadb/fts/engine
|
||||
|
||||
var idx = newInvertedIndex()
|
||||
idx.addDocument(1, "Nim е бърз език за програмиране")
|
||||
idx.addDocument(2, "Python е популярен за data science")
|
||||
|
||||
let results = idx.search("език програмиране")
|
||||
let tfidf = idx.searchTfidf("език")
|
||||
let fuzzy = idx.fuzzySearch("програмиране", maxDistance = 2)
|
||||
```
|
||||
|
||||
## Методи за Ранжиране
|
||||
|
||||
### BM25
|
||||
|
||||
Най-добрият алгоритъм за съвпадение
|
||||
|
||||
### TF-IDF
|
||||
|
||||
Term Frequency-Inverse Document Frequency
|
||||
|
||||
## Търсене
|
||||
|
||||
| Тип | Описание |
|
||||
|-----|----------|
|
||||
| Fuzzy | Толерантност към правописни грешки |
|
||||
| Wildcard | Префикс, суфикс, и инфикс заместващи символи |
|
||||
| Regex | Регулярни изрази |
|
||||
Reference in New Issue
Block a user