Archives for 2015
How to change slow log settings in Elasticsearch
What are the slow log settings in Elasticsearch? Elasticsearch provide facility to keep track of your slow queries while indexing and searching data. It helps us to identify the slow…
HTML Tags which should not be closed in HTML5
In HTML5 Void element doesn't require closing tags. What are the Void Elements? A Void element is an element that can not allow to have any content in between the…
Partial Update in Elasticsearch
Partial update in elasticsearch works same as updating whole document in Elasticsearch. This process retrieve the document, change it and reindex it again. In elasticsearch partial update is done through…
Updating Document in Elasticsearch
Documents in Elasticsearch are always immutable we cannot replace or change them directly. If we require updating an existing document, we need to reindex or replace it. We can change…
How to Increase or Decrease Replica in Elasticsearch
How to increase or decrease replica in Elasticsearch You can change number of replicas in live Elasticsearch Cluster using Indices APIs update indices settings. Update number of replicas for all…
Add New Node in Elasticsearch Cluster
How to add new node in elasticsearch cluster? Here is step by step guideline to add new node in existing elasticsearch cluster. 1) Elasticsearch Installation: Install elasticsearch in new node.…
CircuitBreaking Exception: Data Too Large for field parent/child id cache
You might get this problem with fielddata size limit. fielddata size limit is checked after the query data is loaded. When your elasticsearch query tried to load data more than…
Get File MIME Type in Python
Get file MIME type in Python You can get mime type in python by using python-magic library. You can install python-magic using PIP. $ pip install python-magic To find mime…
How to Delete a Git branch?
Delete a git branch Delete a local branch : Syntax: git branch -d<branch> git branch -d test-branch If you face any error like "error: The branch 'test-branch' is not fully…
Install Opencv in CentOS
What is OpenCV? OpenCV (Open Source Computer Vision Library) is an Open Source Library for computer vision, machine learning and image processing. You can use OpenCV with multiple programming languages…