Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Moving things to the root directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Feb 8, 2024
1 parent 611ea82 commit 63ef036
Show file tree
Hide file tree
Showing 55 changed files with 76 additions and 497 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Run CI tests with Gradle

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java:
- 11
- 17
# We need 2.12.0 at minimum for JDK 21.0.2
- 21.0.1
steps:
- uses: actions/checkout@v2
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew -Dtests.security.manager=false clean test
15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
build/
target/
*.zip
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build

# intellij files
.idea/
*.iml
*.ipr
*.iws
build-idea/
out/
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# OpenSearch Relevance
# search-relevance-plugin

Playground and sandbox for the OpenSearch relevance work.
Build the plugin. Note that you will have to match up the JDK 11 on your system to java home in the `gradle.properties` file:

`./gradlew build`

Build the OpenSearch docker image and add the plugin:

`docker compose build`

Start the containers:

`docker compose up`

Initialize the `awesome` search relevance index:

```
curl -X PUT http://localhost:9200/_plugins/search_relevance/awesome
```

Send an event to the `awesome` store:

```
curl -X POST http://localhost:9200/_plugins/search_relevance/awesome -H "Content-Type: application/json" -d @instant-search.json
```

Get events:

```
curl http://localhost:9200/.awesome_events/_search
```
File renamed without changes.
7 changes: 0 additions & 7 deletions dashboard-plugin/Dockerfile

This file was deleted.

45 changes: 0 additions & 45 deletions dashboard-plugin/README.md

This file was deleted.

Binary file removed dashboard-plugin/build/ublDashboard-2.11.1.zip
Binary file not shown.
2 changes: 0 additions & 2 deletions dashboard-plugin/common/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions dashboard-plugin/opensearch_dashboards.json

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard-plugin/opensearch_dashboards.yml

This file was deleted.

10 changes: 0 additions & 10 deletions dashboard-plugin/package.json

This file was deleted.

23 changes: 0 additions & 23 deletions dashboard-plugin/public/application.tsx

This file was deleted.

116 changes: 0 additions & 116 deletions dashboard-plugin/public/components/app.tsx

This file was deleted.

1 change: 0 additions & 1 deletion dashboard-plugin/public/index.scss

This file was deleted.

10 changes: 0 additions & 10 deletions dashboard-plugin/public/index.ts

This file was deleted.

45 changes: 0 additions & 45 deletions dashboard-plugin/public/plugin.ts

This file was deleted.

11 changes: 0 additions & 11 deletions dashboard-plugin/public/types.ts

This file was deleted.

11 changes: 0 additions & 11 deletions dashboard-plugin/server/index.ts

This file was deleted.

Loading

0 comments on commit 63ef036

Please sign in to comment.