This repository contains Go code to build a full text search engine. The search engine is built using the Inverted Index data structure. The search engine is capable of indexing and searching through a large number of documents.
When first run, the code indexes the documents and stores the inverted index in a file. The code can then be use that file to search through the documents without the need to re-index the documents every time.
- Install Go: Make sure you have Go installed on your system. You can download it here.
- Clone the Repository:
git clone https://github.com/bagasdisini/fearch.git
- Navigate to the Directory:
cd fearch
- Run the Code:
go run main.go
- Output: The code will print the search results to the console.
- Get the documents from ID results.
- Expand boolean queries to support
OR
andNOT
. - More memory and CPU-efficient when working with large indexes, by using techniques like MapReduce and Bloom Filters.
- Support indexing multiple document fields.
- Sort results by relevance.
- Go
Enjoy the code! 🚀