Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A full-text search engine in Go with fuzzy (partial words/typos) search based on prefix trees and instant indexing

NotificationsYou must be signed in to change notification settings

dariasmyr/fts-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

293 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A custom-built full-text search engine in Go, with inverted indexed based on prefix trees (tries) and n-grams, with concurrent processing document. The engine handles tokenization, stemming, stop-word removal, and now even supports fuzzy search (partial words and typos).

Demo

Configuration

Configuration files are located in./config/. Useconfig_prod_example.yaml as a template.

Install dependencies:

make tidy# Or manually:go mod tidy

Download the wiki dump

The Wikipedia abstract dump can be downloaded from Dump example:https://dumps.wikimedia.your.org/enwiki/latest/enwiki-latest-abstract1.xml.gz. Extract the file and place it in the./data/ directory.

## Build and RunBuild the service:```bashmake build# Or manually:go build -o build/fts ./cmd/fts

Run the service (!Check the configuration file!):

make execute# Or manually:./build/fts --config=./config/config_local.yaml

Test

#Test the trie implementationmake test-trie# Or manually:gotest -v ./internal/services/fts_trie -count=1#Test the key-value implementationmake test-kv# Or manually:gotest -v ./internal/services/fts_kv -count=1

About

A full-text search engine in Go with fuzzy (partial words/typos) search based on prefix trees and instant indexing

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2026 Movatter.jp