rios0rios0 / ssearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IntruSearch

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.

Prerequisites

Installation

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

Usage

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
}

Contributing

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

Contact

Felipe Rios - @rios0rios0 - frios at intruderlabs dot com dot br

Project Link: https://github.com/IntruderLabs/intrusearch

About

License:Other


Languages

Language:Go 98.4%Language:Makefile 1.6%