Git Product home page Git Product logo

Comments (3)

ajinkya avatar ajinkya commented on June 16, 2024 1

Having the same issue, trying to build from source, will update here if successful.

from elasticsearch-learning-to-rank.

nathancday avatar nathancday commented on June 16, 2024 1

Finally got around to cutting a formal release for it: https://github.com/o19s/elasticsearch-learning-to-rank/releases/tag/v1.5.8-es7.17.9
Please take it for a spin and report bugs....

from elasticsearch-learning-to-rank.

ajinkya avatar ajinkya commented on June 16, 2024

I managed to compile this using the following steps on a AWS EC2 instance with Ubuntu 20.04 using oracle jdk. openjdk-17 build failed with a bunch of errors.

Below are the steps that I executed to build this, the resulting zip file was installed successfully in ES 7.17.9.
Haven't checked if all the features are working fully yet, will do that over the next few days.

P.S.: Not a Java dev, so please improve/fix any step that might be wrong below, but these worked for me:

sudo apt-get update
sudo apt install oracle-java17-jdk oracle-java17-set-default

# Check if the correct Java version is installed
java -version

# Get the path to java bin folder from the below command
sudo update-alternatives --config java

# Set JAVA_HOME path
export JAVA_HOME=/usr/lib/jvm/java-17-oracle

# Check if its set 
echo $JAVA_HOME

# Clone repo
gh repo clone Shibe/elasticsearch-learning-to-rank
cd elasticsearch-learning-to-rank/

# Switch to the 7x branch
git checkout origin/es_7_17_7
git pull

# change elasticsearchVersion = 7.17.7 to 7.17.9
sudo nano gradle.properties

# Start the build process... after compeletion the zip should be in ./build/distributions/ltr-1.5.8-es7.17.9.zip
./gradlew clean check

# install the plugin (your path for elasticsearch-plugin command might be different)
# note the file:/// prefix... had forgotten that while copy pasting the path
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install -v file:///home/ubuntu/elasticsearch-learning-to-rank/build/distributions/ltr-1.5.8-es7.17.9.zip

# Restart ES
sudo systemctl stop elasticsearch.service
sudo systemctl start elasticsearch.service
sudo systemctl status elasticsearch.service

Output Zip from my build in case you want to try it out directly: https://github.com/ajinkya/es-ltr-7.17.9

ltr-1.5.8-es7.17.9.zip

from elasticsearch-learning-to-rank.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.