Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ $ git clone https://github.com/IBM/elasticsearch-spark-recommender.git

### 2. Set up Elasticsearch

This Code Pattern currently depends on Elasticsearch 5.3.0. Go to the [downloads page](https://www.elastic.co/downloads/past-releases/elasticsearch-5-3-0) and download the appropriate package for your system.
This Code Pattern currently depends on Elasticsearch 5.3.0.

#### 2.1 Install Elasticsearch on your machine
(You can skip this if you want to use prepared docker image see: ./docker/elasticsearch/README.md)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"use the prepared"


Go to the [downloads page](https://www.elastic.co/downloads/past-releases/elasticsearch-5-3-0) and download the appropriate package for your system.

For example on Linux / Mac you can download the [TAR archive](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.0.tar.gz) and unzip it using the commands:

Expand Down Expand Up @@ -94,7 +99,7 @@ $ ./bin/elasticsearch
[2017-09-08T15:58:20,676][INFO ][o.e.n.Node ] initialized
...
```

#### 2.2 Elasticsearch python install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Install the Elasticsearch Python client"

Finally, you will need to install the Elasticsearch Python client. You can do this by running the following command (you should do this in a separate terminal window to the one running Elasticsearch):

```
Expand Down
8 changes: 8 additions & 0 deletions docker/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:5.3.0
MAINTAINER ApertusIT <[email protected]>

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/MLnick/elasticsearch-vector-scoring/releases/download/v5.3.0/elasticsearch-vector-scoring-5.3.0.zip
RUN \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this required? Is it a licensing issue?

mv /usr/share/elasticsearch/plugins/x-pack /usr/share/elasticsearch/plugins/.removing-x-pack && \
mv /usr/share/elasticsearch/plugins/.removing-x-pack /usr/share/elasticsearch/plugins/x-pack && \
/usr/share/elasticsearch/bin/elasticsearch-plugin remove x-pack
5 changes: 5 additions & 0 deletions docker/elasticsearch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#### 2.0 Start Elasticsearch with docker
If you familier with docker you can use the elasticsearch docker image with installed elasticsearch-vector-scoring plugin.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just build the image with
```docker build -t es-with-vector-scoring .```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it'll be helpful to show the full output of both commands and state which directory to run them from

and start the image with ```docker run -p 9200:9200 -p 9300:9300 es-with-vector-scoring```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lastly, tell the user where to go back to, something like "Now that you've got Elasticsearch up and running, you can go back to step 3."