Home / Companies / Elastic / Blog / November 2013

November 2013 Summaries

7 posts from Elastic

Filter
Month: Year:
Post Summaries Back to Blog
The text discusses the benefits and implementation of "doc values" in Elasticsearch, a feature introduced in the 1.0 release, which improves memory management by storing field data on disk rather than in-memory. This change addresses issues related to large memory usage and garbage collection delays when handling analytics through facets. Doc values, a Lucene 4.x feature, optimize storage by using a column stride format, which is effective for sorting and faceting, providing faster refresh times and efficient compression compared to traditional field data methods. While they can increase index size, doc values are advantageous in constrained hardware environments and for memory management, as they allow the Elasticsearch process to run with significantly less RAM. To enable doc values, they must be set in the mappings before indexing documents, and they are currently supported on non-analyzed string fields and numeric fields. The text encourages users to experiment with the latest beta release and provide feedback on their experience.
Nov 28, 2013 723 words in the original blog post.
Konrad Beiske's article on Elasticsearch's similarity models explores the default tf-idf model and the more recent BM25 model, both used for determining textual similarity in document classification and information retrieval. Tf-idf, a vector space model, calculates document relevance by considering term frequency and inverse document frequency, but it can be limited by its linear growth with term frequency. BM25, a probabilistic model, offers more nuanced adjustments, accounting for term saturation and document length, which can be particularly beneficial for collections with shorter documents. While tf-idf remains popular due to its simplicity and effectiveness, BM25 provides greater tuning flexibility and often better performance. The article suggests that for optimal search experiences, these models should be integrated with metadata considerations, such as document update times or author proximity.
Nov 26, 2013 1,823 words in the original blog post.
Andrew Cholakian's article discusses strategies for effectively integrating Elasticsearch with an existing application by managing data flow from a primary data source, such as an SQL database, into Elasticsearch. The bulk API is highlighted as essential for efficient data replication due to its ability to handle multiple document updates quickly and reduce repetitive updates. The article emphasizes the importance of designing a replication strategy that considers acceptable replication delay and data consistency, as perfect synchronization is rarely needed. It advises against frequent updates due to the high cost of modifying documents in Elasticsearch, which is based on Lucene. To manage updates efficiently, Cholakian suggests using queues with uniqueness constraints to group updates and minimize write churn, and describes the implementation of a queue-worker system to handle bulk imports. For datasets that only grow, such as logs, a simpler range-based batching method is recommended. The article also advises against marking source records for updates due to potential performance issues and recommends adopting a strategy that ensures idempotence to handle replication errors effectively.
Nov 19, 2013 3,453 words in the original blog post.
Sense was initially introduced as a Chrome plugin designed to enhance the user experience with Elasticsearch by providing features like autocompletion, code highlighting, and formatting, making it easier to explore Elasticsearch's capabilities through a more comfortable query interface than cURL. Over time, Sense evolved into a Kibana plugin known as "Console" in the Dev Tools section, eliminating the need for a separate browser plugin and integrating directly into Kibana. The tool facilitates users in executing queries using a simpler syntax, supports copy-pasting between cURL and Sense formats, and offers features such as context-sensitive autocompletion and a query history of the last 500 edits to streamline Elasticsearch operations. Sense also includes functionalities like code indentation and folding to help manage complex JSON data structures, making it a valuable tool for both routine tasks and learning how to effectively construct Elasticsearch queries. With ongoing updates, including the requirement for valid content type headers in Elasticsearch 6.0, Sense remains a vital resource for Elasticsearch users, now seamlessly accessible within Kibana's interface.
Nov 13, 2013 1,089 words in the original blog post.
Play is a tool designed to facilitate experimentation with Elasticsearch's extensive features, akin to how jsfiddle operates for HTML, CSS, and JavaScript. It allows users to create and manage sample documents, analyzers, mappings, and searches, providing a runnable demo environment that simplifies the iterative process of developing effective search configurations. Play's interface comprises five editor tabs, each optimized for tasks such as document handling, analysis configuration, and mapping documentation, with context-aware autocompletion and documentation support. Though still in its preview phase with known bugs and limitations, such as a 2 MiB cap on combined documents, mappings, and analyzers, and disabled dynamic scripts, Play aims to evolve into an open-source project, integrating official documentation and more advanced features. While it cannot yet run on live clusters due to its resource-intensive operations, users can export configurations for deployment elsewhere, and a separate plugin is planned to bring its search view capabilities to live environments.
Nov 13, 2013 1,750 words in the original blog post.
Vodori, a digital agency based in Chicago, redesigned its enterprise content management system, Pepper, to enhance global digital marketing efforts using Alfresco and Elasticsearch. The decision to integrate Elasticsearch was driven by its ability to handle complex queries, offer robust search functionalities, and effectively manage the diverse content types required by Pepper. By utilizing Elasticsearch's capabilities, Vodori was able to implement flexible content models, support parent/child relationships for content distribution, and provide advanced search features such as free-text search and parametric filters. Additionally, Vodori created a framework that simplifies content modeling and mapping for engineers, allowing them to focus on client-specific solutions. Future plans for Pepper include leveraging Elasticsearch features such as Index Aliasing, Updating Mappings API, and Distributed Percolator to enhance system capabilities and ensure zero downtime during updates. Vodori's experience highlights Elasticsearch's potential for scalability and adaptability in content management, showcasing its value across various industries and applications.
Nov 12, 2013 1,632 words in the original blog post.
Elasticsearch operates using a full mesh network topology, where each node in a cluster maintains a connection to every other node, simplifying code by using one-way connections. When a node starts, it uses unicast and multicast messages to discover and connect with other nodes in the cluster, allowing it to quickly integrate. Both client nodes, which fully participate in the mesh, and transport clients, which do not require back connections, are supported. Communication between nodes primarily relies on TCP connections, which Elasticsearch organizes into channels to separate different types of traffic, such as recovery, bulk operations, regular operations, state changes, and pings for fault detection. Each new instance added to a cluster establishes multiple connections with each node, and the linked nature of these channels can make the system vulnerable to network issues, discouraging the creation of clusters across distant data centers.
Nov 05, 2013 986 words in the original blog post.