IntruSearch is a lightweight Go client library developed by IntruderLabs for the OpenSearch search engine. It provides a simple yet powerful abstraction layer over the OpenSearch API, allowing developers to easily query and manipulate search indices.
Built on top of the official OpenSearch Go client library, IntruSearch enhances it with additional functionality and ease-of-use features. It supports all major OpenSearch features such as querying, filtering, aggregations, sorting, and more.
IntruSearch is designed to be easy to use and easy to integrate into your Go applications. It is fully compatible with the latest version of OpenSearch and has been thoroughly tested for stability and performance.
If you're looking for a fast and efficient way to interact with OpenSearch from your Go code, look no further than IntruSearch.
- Install GoLang (1.20+)
To install Intrusearch, simply run the following command:
go get github.com/IntruderLabs/intrusearch
Alternatively, you can clone the repository and install it manually:
git clone https://github.com/IntruderLabs/intrusearch.git
cd intrusearch
go install
Once installed, you can start using Intrusearch in your Go code:
package main
import (
intrusearch "github.com/intruderlabs/intrusearch/main"
)
func main() {
client := NewSearchClient()
client.CreateIndex("test")
}
func NewSearchClient() *intrusearch.Client {
openSearchAddress := "http://127.0.0.1" // OpenSearch address
awsSamLocal := true // is your environment development? (debug mode)
client := intrusearch.NewClient(openSearchAddress, awsSamLocal) // instance for creating a new OpenSearch client
return &client
}
If you would like to contribute to Intrusearch, please fork the repository and submit a pull request. Before submitting a pull request, please make sure to run the tests:
go test -v
Felipe Rios - @rios0rios0 - frios at intruderlabs dot com dot br
Project Link: https://github.com/IntruderLabs/intrusearch