GopherSearch

command module
v0.0.0-...-3312965 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 2 Imported by: 0

README

GopherSearch

GopherSearch is a search engine written in GoLang that indexes HTML files within a specified folder, creating a JSON index file. The program also serves a local server that allows users to perform searches using TF-IDF (Term Frequency-Inverse Document Frequency) ranking on the indexed files and returns relevant search results to the user.

Installation

To install GopherSearch, make sure you have GoLang installed on your machine. You can then clone the repository:

git clone https://github.com/yourusername/gophersearch.git
cd gopherSearch
go build main.go

Usage

To index the HTML files and serve the local server, use the following command:

./main serve <path_to_folder>

Replace <path_to_folder> with the path to the folder containing the HTML files you want to index.

Searching Process

Once the server is running, you can perform searches using a web browser or API requests. The search query will be processed using TF-IDF on the indexed files. The server will return relevant search results to the user.

Contributing

Contributions to GopherSearch are welcome! Feel free to fork the repository and submit pull requests for any improvements or new features.

License

This project is open-source and provided under the MIT license. Please refer to the LICENSE file for detailed information regarding the terms and conditions of use, modification, and distribution.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL