<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Elasticsearch on pistocop</title><link>https://www.pistocop.dev/tags/elasticsearch/</link><description>Recent content in Elasticsearch on pistocop</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 26 Nov 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://www.pistocop.dev/tags/elasticsearch/index.xml" rel="self" type="application/rss+xml"/><item><title>🌉 Connecting GCP Dataproc and Elasticsearch: Bridging the Worlds of Big Data and (vector) Search</title><link>https://www.pistocop.dev/posts/elasticsearch_spark_connector/</link><pubDate>Sun, 26 Nov 2023 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/elasticsearch_spark_connector/</guid><description>&lt;blockquote&gt;
&lt;p&gt;🧭 Install the official Elasticsearch Spark connector on Dataproc adapting one of the official &lt;em&gt;&lt;a href="https://github.com/GoogleCloudDataproc/initialization-actions" class="external-link" target="_blank" rel="noopener"&gt;initialization-actions&lt;/a&gt;&lt;/em&gt; scripts, then test multiple architectures to index 1 Million vectors in less than 20 minutes&lt;/p&gt;
&lt;p&gt;🔗 Repo: &lt;a href="https://github.com/pistocop/elasticsearch-spark-connector/tree/main" class="external-link" target="_blank" rel="noopener"&gt;elasticsearch-spark-connector&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-intro" &gt;✨ Intro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-components" &gt;🍣 Components&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#dataproc" &gt;Dataproc&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#elasticsearch" &gt;Elasticsearch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#spark-connector" &gt;Spark Connector&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-deploy" &gt;🏗️ Deploy&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#elasticsearch-cluster" &gt;Elasticsearch Cluster&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#elasticsearch-index" &gt;Elasticsearch Index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#elasticsearch-exposition---architecture-1" &gt;Elasticsearch exposition - architecture 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#elasticsearch---exposition-architecture-2" &gt;Elasticsearch - exposition architecture 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#spark-connector" &gt;Spark Connector&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#dataproc" &gt;Dataproc&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-usage" &gt;🔨 Usage&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-test-the-knn-search" &gt;📝 Test the KNN search&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#performances-of-_elasticsearch-architecture-1_" &gt;Performances of &lt;em&gt;Elasticsearch Architecture 1:&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#performances-of-_elasticsearch-architecture-2_" &gt;Performances of &lt;em&gt;Elasticsearch Architecture 2:&lt;/em&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-conclusion" &gt;🚀 Conclusion&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-faq" &gt;⁉️ FAQ&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-references" &gt;🔗 References&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;style&gt;
 .bottom-three {
 margin-bottom: 2em;
 }
&lt;/style&gt;

&lt;p class="bottom-three"&gt;
 
&lt;/p&gt;</description></item><item><title>🛠️ Deploy Elasticsearch 8.5 on Kubernetes with Okteto</title><link>https://www.pistocop.dev/posts/deploy_es_on_okteto/</link><pubDate>Tue, 15 Nov 2022 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/deploy_es_on_okteto/</guid><description>&lt;blockquote&gt;
&lt;p&gt;🧭 Guide to deploy Elasticsearch 8.5 cluster on Okteto Cloud,&lt;br&gt;
for free and with basic security settings.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;🔗 Repo: &lt;a href="https://github.com/pistocop/okteto-elasticsearch" class="external-link" target="_blank" rel="noopener"&gt;okteto-elasticsearch&lt;/a&gt;&lt;br&gt;
📧 Found an error or have a question? &lt;a href="https://www.pistocop.dev" class="external-link" target="_blank" rel="noopener"&gt;write to me&lt;/a&gt; or leave a comment&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-intro" &gt;📢 Intro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-features" &gt;✨ Features&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-steps" &gt;🚀 Steps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-notes" &gt;✍️ Notes&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-how-to" &gt;🔧 How to&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-okteto" &gt;⚒️ Okteto&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-disclaimer" &gt;🛂 Disclaimer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-todos" &gt;💤 TODOs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;style&gt;
 .bottom-three {
 margin-bottom: 2em;
 }
&lt;/style&gt;

&lt;p class="bottom-three"&gt;
 
&lt;/p&gt;
&lt;hr&gt;
&lt;style&gt;
 .bottom-three {
 margin-bottom: 2em;
 }
&lt;/style&gt;

&lt;p class="bottom-three"&gt;
 
&lt;/p&gt;
&lt;figure&gt;&lt;img src="https://www.pistocop.dev/images/pistocop.dev-images/10_deploy_es_on_okteto/IMGP0408.webp"
 alt="A cloud in the sky"&gt;
&lt;/figure&gt;

&lt;h1 id="-intro"&gt;
 📢 Intro
 &lt;a class="heading-link" href="#-intro"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;Elasticsearch (ES) is probably the most common and famous search engine and has introduced a lot of new features with the 8.0 release, like the dense vector field type and the kNN search, that both combined allow Elasticsearch to be used for vector search for many machine-learning applications.&lt;/p&gt;</description></item><item><title>✒️ Elasticsearch Certified Engineer notes</title><link>https://www.pistocop.dev/posts/es_engineer_exam_notes/</link><pubDate>Sat, 08 Jan 2022 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/es_engineer_exam_notes/</guid><description>&lt;blockquote&gt;
&lt;p&gt;✍ Personal notes and exercises creates to pass the &lt;a href="https://www.elastic.co/training/elastic-certified-engineer-exam" class="external-link" target="_blank" rel="noopener"&gt;Elastic Certified Engineer&lt;/a&gt; certification&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;🏅 Certification &lt;a href="https://certified.elastic.co/9cb466e7-9265-49c3-a863-aec182ed4933" class="external-link" target="_blank" rel="noopener"&gt;successfully passed&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;⚠ The following are my personal notes, so I assume no responsibility or liability for any errors or omissions in the content.&lt;br&gt;
📧 Found an error or have a question? &lt;a href="https://www.pistocop.dev" class="external-link" target="_blank" rel="noopener"&gt;write to me&lt;/a&gt; or leave a comment&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h1 id="-index"&gt;
 🗂 Index
 &lt;a class="heading-link" href="#-index"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-index" &gt;🗂 Index&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#%ef%b8%8f-course-summary" &gt;🗺️ Course summary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-topics-notes" &gt;🎓 Topics notes&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#-data-management" &gt;🔷 Data Management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-searching-data" &gt;🔷 Searching Data&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-developing-search-applications" &gt;🔷 Developing Search Applications&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-data-processing" &gt;🔷 Data Processing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-cluster-management" &gt;🔷 Cluster Management&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-how-to" &gt;👨‍🏭 How to&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#run-es-locally-docker-setup" &gt;Run ES locally: docker setup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#test-hot-warm-cold-architecture" &gt;Test &lt;em&gt;hot-warm-cold&lt;/em&gt; architecture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#configure-a-multicluster-architecture" &gt;Configure a &lt;em&gt;multicluster&lt;/em&gt; architecture&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-deepenings" &gt;🐳 Deepenings&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#cluster-infrastructure" &gt;Cluster infrastructure&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#cluster-formation" &gt;Cluster formation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#index-management" &gt;Index management&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#removal-of-mapping-types" &gt;Removal of mapping types&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#change-static-index-modules-reindex" &gt;Change &lt;em&gt;Static&lt;/em&gt; Index modules (&lt;em&gt;reindex&lt;/em&gt;)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#search" &gt;Search&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#access-the-analyzers-tokens" &gt;Access the analyzers tokens&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#backup" &gt;Backup&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#backuprestore-snapshots" &gt;Backup/restore snapshots&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#security" &gt;Security&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#unsecured-node-connect-to-cluster-with-minimal-security" &gt;Unsecured node connect to cluster with minimal security&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#-pills" &gt;💊 Pills&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-advices" &gt;🤝 Advices&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-dictionary" &gt;📔 Dictionary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#-resources" &gt;🙏 Resources&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h1 id="-course-summary"&gt;
 🗺️ Course summary
 &lt;a class="heading-link" href="#-course-summary"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;Official summary &lt;a href="https://www.elastic.co/training/elastic-certified-engineer-exam" class="external-link" target="_blank" rel="noopener"&gt;Link&lt;/a&gt; - &lt;a href="https://www.elastic.co/training/certification/faq" class="external-link" target="_blank" rel="noopener"&gt;Certification FAQ&lt;/a&gt; - &lt;a href="https://www.elastic.co/subscriptions" class="external-link" target="_blank" rel="noopener"&gt;Stack subscriptions&lt;/a&gt;&lt;/p&gt;</description></item><item><title>🔍 Elasticsearch local setup</title><link>https://www.pistocop.dev/posts/es_local_setup/</link><pubDate>Mon, 01 Feb 2021 00:00:00 +0000</pubDate><guid>https://www.pistocop.dev/posts/es_local_setup/</guid><description>&lt;h2 id="-introduction"&gt;
 🔖 Introduction
 &lt;a class="heading-link" href="#-introduction"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Setup and run a local ES instance on Linux&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;One of my recurrent problem with NLP tasks is how to store unstructured data on my PC. Let&amp;rsquo;s say for example that you had extracted a bunch of text comments from Twitter and you want to store all the entities found for each comment. How to store it? CSV and other tabular-like structures aren&amp;rsquo;t good for this kind of unstructured data.&lt;/p&gt;</description></item></channel></rss>