Skip to content

Commit

Permalink
Build: merge main into elasticsearch-7x (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexklibisz authored Jan 17, 2023
1 parent e065603 commit 082ba8b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Release
on:
push:
branches:
- main

workflow_dispatch:

permissions:
Expand All @@ -22,9 +18,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.7.5'
python-version: '3.7.15'
cache: 'pip'
- uses: arduino/setup-task@v1
with:
Expand Down Expand Up @@ -64,9 +60,9 @@ jobs:
${{ github.workflow }}.${{ github.job }}
path: |
**/target/**/*
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: '3.7.5'
python-version: '3.7.15'
cache: 'pip'
- uses: actions/setup-java@v3
with:
Expand Down
29 changes: 21 additions & 8 deletions docs/pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,41 @@ permalink: /installation/
classes: wide
---

The Elastiknn plugin gets published as a zip file in a Github release. [The lastest release can be found here.](https://github.com/alexklibisz/elastiknn/releases/latest)
## Overview

To install it, copy the zip file URL and run `elasticsearch-plugin install <THE URL>` on each of your Elasticsearch nodes.
To install Elastiknn:

1. Copy the zip file URL from an Elastiknn [Github release](https://github.com/alexklibisz/elastiknn/releases).
2. Run `elasticsearch-plugin install <zip file URL>` on each Elasticsearch node.

## Versions

### Versioning Scheme

Elasticsearch requires a new version of Elastiknn for every version of Elasticsearch.
Because of this, Elastiknn's versioning scheme includes the Elasticsearch version, followed by an incrementing version denoting changes to Elastiknn.
For example, Elastiknn versions `8.4.2.0` and `8.4.2.1` were the first and second releases of Elastiknn corresponding to Elasticsearch version 8.4.2.

Elastiknn's main branch and the documentation site stay up-to-date with the latest Elasticsearch version, currently 8.x.
We maintain a second branch, [elasticsearch-7x](https://github.com/alexklibisz/elastiknn/tree/elasticsearch-7x), for Elasticsearch 7.x releases.

### Elasticsearch 8.x

|:--|:--|
|Plugin Release| [![Plugin Release Status][Badge-Plugin-Release]][Link-Plugin-Release]|
|Plugin Snapshot| [![Plugin Snapshot Status][Badge-Plugin-Snapshot]][Link-Plugin-Snapshot]|

[Link-Plugin-Release]: https://github.com/alexklibisz/elastiknn/releases/latest
[Link-Plugin-Snapshot]: https://github.com/alexklibisz/elastiknn/releases

[Badge-Plugin-Release]: https://img.shields.io/github/v/release/alexklibisz/elastiknn?style=for-the-badge "Plugin Release"
[Badge-Plugin-Snapshot]: https://img.shields.io/github/v/release/alexklibisz/elastiknn?include_prereleases&style=for-the-badge "Plugin Snapshot"

**A caveat on versioning:** Elasticsearch requires that the plugin's Elasticsearch version matches the version on the node. For now I'm only releasing the plugin for a single Elasticsearch version. I'd like to eventually come back and implement releases for multiple versions.
### Elasticsearch 7.x

To find the latest 7.x release, please browse the [Github releases](https://github.com/alexklibisz/elastiknn/releases).

## Example Installation in a Docker Image

Make a Dockerfile like below. The image version (`elasticsearch:A.B.C`) must match the plugin's version (e.g. `A.B.C.x/elastiknn-A.B.C.x`).
`A.B.C` is the Elasticsearch version. `.x` just refers to an incremental version of Elastiknn on top of `A.B.C`.
Make a Dockerfile like below.
The image version (`elasticsearch:A.B.C`) must match the plugin's version (e.g. `A.B.C.x/elastiknn-A.B.C.x`).

```docker
FROM docker.elastic.co/elasticsearch/elasticsearch:7.17.8
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ toc_icon: cog

## Python client

[elastiknn-client on pypi](https://pypi.org/project/elastiknn-client/)

The Python client provides a pythonic interface for using Elastiknn.
This includes a low level HTTP client as well as a higher level "model" that mimics the scikit-learn interface.

Expand Down

0 comments on commit 082ba8b

Please sign in to comment.