初めてのクラスターを構築する
Elasticsearchをインストールし、基本的なシングルノードクラスターを構築する手順を実践して、学習を始めます。
「初めてのクラスターを構築する」はCoddyKit上の無料Elasticsearch & Full Text Search Systemsレッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはElasticsearch & Full Text Search Systems学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Elasticsearch & Full Text Search Systemsコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Your First Elasticsearch Node
Let's get a single-node Elasticsearch cluster running locally — your launchpad for experimenting with indexing and search.
Prerequisite: Java Runtime
Elasticsearch runs on Java, so you'll need a JRE — recent versions want Java 11 or later. The command below checks your version.
java -versionDownload Elasticsearch
Grab Elasticsearch from the official Elastic site: a .zip for Windows, a .tar.gz for Linux or macOS. Pick the latest stable release.
Unpack the Archive
Extract the archive to create the Elasticsearch directory. On Linux or macOS the tar command does it — just swap in your version number.
tar -xzf elasticsearch-x.y.z-linux-x86_64.tar.gzExplore the Directories
Inside the unpacked folder, the key directories are bin/ (executables), config/ (settings), data/ (your index), and logs/.
Basic Configuration
For a single node, defaults are usually fine. The main config file is config/elasticsearch.yml, where cluster.name and node.name live.
Start Elasticsearch
Time to start the node: cd into the directory and run the startup script. Elasticsearch runs in the foreground, so keep this terminal open.
cd elasticsearch-x.y.z
bin/elasticsearchVerify Startup
Verify it's up by hitting its default port, 9200, from a new terminal with the curl command below.
curl -X GET "localhost:9200/?pretty"Interpreting the Output
A healthy node returns JSON with cluster_name, node_name, the version, and the tagline You Know, for Search — proof your node is live.
Stopping Elasticsearch
To shut down gracefully, go back to the terminal running Elasticsearch and press Ctrl+C. Closing the window may leave it running in the background.
Quick Check
You've just learned how to set up and verify a basic Elasticsearch node. Let's test your understanding.
Recap & Next Steps
Done! You installed, started, verified, and stopped your first single-node cluster. Next, we'll index and search real documents.
よくある質問
「初めてのクラスターを構築する」レッスンは無料ですか?
はい。「初めてのクラスターを構築する」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Elasticsearch & Full Text Search Systemsコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Elasticsearch & Full Text Search Systemsコースには全4レッスンが含まれています。
「初めてのクラスターを構築する」で何を学びますか?
Elasticsearchをインストールし、基本的なシングルノードクラスターを構築する手順を実践して、学習を始めます。 ブラウザで直接実行するハンズオンコードでElasticsearch & Full Text Search Systemsを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
Elasticsearch & Full Text Search Systemsを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのElasticsearch & Full Text Search Systemsは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。
「初めてのクラスターを構築する」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このElasticsearch & Full Text Search Systemsレッスンでコードを書いて実行できますか?
はい。すべてのElasticsearch & Full Text Search Systemsレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- 全文検索とは
- Elasticsearchの基本概念
- 初めてのクラスターを構築する
- アナライザー、トークナイザー、転置インデックス