elasticsearch (databases/elasticsearch) Updated: 2 years, 4 months ago Add to my watchlist

Distributed RESTful search engine built for the cloud

Elasticsearch is a highly scalable open-source full-text search and analytics engine. It allows you to store search, and analyze big volumes of data quickly and in near real time. It is generally used as the underlying engine/technology that powers applications that have complex search features and requirements. Elasticsearch requires Java/OpenJDK 11+, which comes installed. Other Java versions are not supported.

Version: 7.16.1 License: Apache-2 GitHub
Maintainers gerardsoleca
Categories databases java
Homepage https://www.elastic.co/
Platforms {darwin any}
Variants -

"elasticsearch" depends on

lib (1)
build (1)

Ports that depend on "elasticsearch"



Port notes

Elasticsearch requires Java/OpenJDK 11+, which comes installed. Other Java versions are not supported.

To interact with Elasticsearch, start with commands like:

# default Elasticsearch response
curl -XGET "http://localhost:9200"

# create and configure a new index
curl -XPUT "http://localhost:9200/my_first_index" \
-H 'Content-Type: application/json' -d'
{
"settings" : {
"index" : {
"number_of_shards" : 5,
"number_of_replicas" : 2
}
}
}
'

# examine cluster health, shard disk usage and status
curl -XGET "http://localhost:9200/_cluster/health?pretty"
curl -XGET "http://localhost:9200/_cat/shards?v"

# irreversibly delete all data in /my_first_index
curl -XDELETE "http://localhost:9200/my_first_index"

Each Elasticsearch shard is a Lucene index; aim for 10-50 GB per shard.

elasticsearch is tested with the JDK provided in port openjdk11. Add these lines to your ~/.profile to set up your java environment and test with 'java -version':

# Java environment
if [ -x /usr/libexec/java_home ]; then
export JAVA_HOME=$(/usr/libexec/java_home)
export KEYTOOL="$JAVA_HOME"/jre/bin
fi A startup item has been generated that will aid in starting elasticsearch with launchd. It is disabled by default. Execute the following command to start it, and to cause it to launch at startup:

sudo port load elasticsearch


Port Health:

Loading Port Health

Installations (30 days)

8

Requested Installations (30 days)

3

Livecheck results

elasticsearch seems to have been updated (port version: 7.16.1, new version: 720)

livecheck ran: 6 hours ago