Skip to content

Commit 872acfa

Browse files
Sync upstream changes and prepare OSS defaults
1 parent aa58a70 commit 872acfa

335 files changed

Lines changed: 4748 additions & 3027 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ log
77
telemetrylog
88
.vscode
99
indices
10-
data
10+
data
11+
*.pgo
12+
es_load_check.sh
13+
ali-body.json

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.21.3 AS builder
1+
FROM golang:1.26.0 AS builder
22

3-
ARG VERSION=8.22.2
3+
ARG VERSION=9.2.0
44
ENV VERSION="${VERSION}"
55

66
# Default value
77
# Run `--build-arg BILLING=true` to enable billing
8-
ARG BILLING=true
8+
ARG BILLING=false
99
ENV BILLING="${BILLING}"
1010

1111
# Run `--build-arg HOSTED_BILLING=true` to enable billing for hosted reactivesearch
@@ -18,7 +18,7 @@ ENV CLUSTER_BILLING="${CLUSTER_BILLING}"
1818

1919

2020
# Run `--build-arg OPENSOURCE=true` to build opensource
21-
ARG OPENSOURCE=false
21+
ARG OPENSOURCE=true
2222
ENV OPENSOURCE="${OPENSOURCE}"
2323

2424
# Run `--build-arg IGNORE_BILLING_MIDDLEWARE=true` to disable billing middleware for testing

Dockerfile-byoc

Lines changed: 0 additions & 59 deletions
This file was deleted.

Dockerfile-cluster

Lines changed: 0 additions & 59 deletions
This file was deleted.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
GC=go build
22

33
BUILD_DIR=build
4-
DEFAULT_VERSION=8.22.2
4+
DEFAULT_VERSION=9.2.0
55
VERSION := $(or $(VERSION),$(DEFAULT_VERSION))
66

77
cmd: build
88

99
build:
10-
$(GC) -pgo=auto -ldflags "-w -X main.Billing=$(BILLING) -X main.HostedBilling=$(HOSTED_BILLING) -X main.ClusterBilling=$(CLUSTER_BILLING) -X main.Opensource=$(OPENSOURCE) -X main.PlanRefreshInterval=$(PLAN_REFRESH_INTERVAL) -X main.IgnoreBillingMiddleware=$(IGNORE_BILLING_MIDDLEWARE) -X main.Tier=$(TEST_TIER) -X main.FeatureCustomEvents=$(TEST_FEATURE_CUSTOM_EVENTS) -X main.FeatureSuggestions=$(TEST_FEATURE_SUGGESTIONS) -X main.FeatureOpenAI=$(TEST_FEATURE_OPEN_AI) -X main.Version=$(VERSION)" -o $(BUILD_DIR)/reactivesearch github.com/appbaseio-confidential/reactivesearch
10+
$(GC) -pgo=auto -ldflags "-w -X main.Billing=$(BILLING) -X main.HostedBilling=$(HOSTED_BILLING) -X main.ClusterBilling=$(CLUSTER_BILLING) -X main.Opensource=$(OPENSOURCE) -X main.PlanRefreshInterval=$(PLAN_REFRESH_INTERVAL) -X main.IgnoreBillingMiddleware=$(IGNORE_BILLING_MIDDLEWARE) -X main.Tier=$(TEST_TIER) -X main.FeatureCustomEvents=$(TEST_FEATURE_CUSTOM_EVENTS) -X main.FeatureSuggestions=$(TEST_FEATURE_SUGGESTIONS) -X main.FeatureOpenAI=$(TEST_FEATURE_OPEN_AI) -X main.Version=$(VERSION)" -o $(BUILD_DIR)/reactivesearch github.com/appbaseio/reactivesearch-api
1111

1212
clean:
1313
rm -rf $(BUILD_DIR)

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ReactiveSearch API
22

3-
[![Tests](https://github.com/appbaseio/reactivesearch-api/actions/workflows/tests.yml/badge.svg)](https://github.com/appbaseio/reactivesearch-api/actions/workflows/tests.yml) [![Docker](https://github.com/appbaseio/reactivesearch-api/actions/workflows/docker-image.yml/badge.svg)](https://github.com/appbaseio/reactivesearch-api/actions/workflows/docker-image.yml)
3+
[![Tests](https://github.com/appbaseio/reactivesearch-api/actions/workflows/tests.yml/badge.svg)](https://github.com/appbaseio/reactivesearch-api/actions/workflows/tests.yml) [![Docker](https://github.com/appbaseio/reactivesearch-api/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/appbaseio/reactivesearch-api/actions/workflows/docker-publish.yml)
44

55
ReactiveSearch API is a declarative, open-source API for querying Elasticsearch, OpenSearch, Solr, MongoDB Atlas Search and OpenAI. It also acts as a reverse proxy and API gateway for Elasticsearch and OpenSearch. ReactiveSearch API is best suited for site search, app search and e-commerce search use-cases.
66

@@ -41,29 +41,20 @@ docker network create reactivesearch
4141
2. Start a single node Elasticsearch cluster locally
4242

4343
```sh
44-
docker run -d --rm --name elasticsearch -p 9200:9200 -p 9300:9300 --net=reactivesearch -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.10.3
44+
docker run -d --rm --name elasticsearch -p 9200:9200 -p 9300:9300 --net=reactivesearch -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:8.17.0
4545
```
4646

47-
> NOTE: It is advised to use `-e "xpack.security.enabled=false"` for local runs of ElasticSearch since otherwise ES is not available on :9200.
47+
> NOTE: It is advised to use `-e "xpack.security.enabled=false"` for local runs of Elasticsearch since otherwise ES is not available on :9200.
4848
4949
OR
5050

5151
Alternative to using Elasticsearch, you can also start a single node OpenSearch cluster locally
5252

5353
```sh
54-
docker run --name opensearch --rm -d -p 9200:9200 -e http.port=9200 -e discovery.type=single-node -e http.max_content_length=10MB -e http.cors.enabled=true -e http.cors.allow-origin=\* -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -e http.cors.allow-credentials=true -e "plugins.security.disabled=true" --net=reactivesearch opensearchproject/opensearch:2.10.0
54+
docker run --name opensearch --rm -d -p 9200:9200 -e http.port=9200 -e discovery.type=single-node -e http.max_content_length=10MB -e http.cors.enabled=true -e http.cors.allow-origin=\* -e http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -e http.cors.allow-credentials=true -e "plugins.security.disabled=true" --net=reactivesearch opensearchproject/opensearch:latest
5555
```
5656

57-
3. Start Zinc locally
58-
59-
```sh
60-
mkdir data 
61-
docker run --rm -d -v data:/data -e ZINC_DATA_PATH="/data" -p 4080:4080 --net=reactivesearch \
62-
-e ZINC_FIRST_ADMIN_USER=appbase -e ZINC_FIRST_ADMIN_PASSWORD=zincf0rappbase \
63-
--name zinc public.ecr.aws/zinclabs/zinc:latest
64-
```
65-
66-
4. Start ReactiveSearch locally
57+
3. Start ReactiveSearch locally
6758

6859
```sh
6960
docker build -t reactivesearch . && docker run --rm --name reactivesearch -p 8000:8000 --net=reactivesearch --env-file=config/docker.env reactivesearch --log=info --diff-logs=false --enable-telemetry=false --enable-logs=true --disable-health-check=true

ami.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"region": "us-east-1",
1313
"instance_type": "t2.micro",
1414
"ssh_username": "ec2-user",
15-
"source_ami": "ami-0eaf8bcec9ab4bde5",
15+
"source_ami": "ami-086ec7d10754b79ca",
1616
"ami_name": "reactivesearch-api-{{user `VERSION` | clean_resource_name}}",
1717
"ssh_timeout": "10m",
1818
"ami_regions": ["us-east-1"],

docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ services:
2222
reactivesearch:
2323
build: ./
2424
container_name: reactivesearch
25-
env_file:
26-
- config/docker.env
25+
environment:
26+
- ES_CLUSTER_URL=http://elasticsearch:9200
27+
- USERNAME=admin
28+
- PASSWORD=admin
2729
networks:
2830
- reactivesearch
2931
restart: on-failure

docs/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The `greeter.go` would be responsible for implementing the `Plugin` interface an
3838
import (
3939
"fmt"
4040

41-
"github.com/appbaseio-confidential/reactivesearch/plugins"
41+
"github.com/appbaseio/reactivesearch-api/plugins"
4242
)
4343

4444
const pluginName = "greeter"
@@ -79,7 +79,7 @@ Define a list of routes that the plugin aims to handle.
7979
import (
8080
"net/http"
8181

82-
"github.com/appbaseio-confidential/reactivesearch/plugins"
82+
"github.com/appbaseio/reactivesearch-api/plugins"
8383
)
8484

8585
func (g *Greeter) routes() []plugin.Route {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/appbaseio-confidential/reactivesearch
1+
module github.com/appbaseio/reactivesearch-api
22

33
go 1.16
44

0 commit comments

Comments
 (0)