Elasticsearch

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 elasticsearch query. You can configure slow log threshold according to your requirement. Its just depends on your architecture. Sometimes 2s…
More..
Elasticsearch

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 Update API. Update API also support scripting language to update a document. We can write our own logic in script…
More..
Elasticsearch

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 the fielddata available memory then you would get the OutOfMemoryException. Caused by: : Data too large, data for field would…
More..

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 type, import magic library and pass file path into () >>> import magic >>> ("path/", mime=True) 'application/pdf' If you face…
More..

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 merged" and you are still want to delete this branch then you can forcefully delete. Use 'git branch -D test-branch'…
More..

Install Opencv in CentOS

Install opencv in CentOS Opencv can be install in CentOS in two ways: 1) Install from available yum repository. But till the time of writing this post repository are available. If you need latest version of opencv then go for 2. option. 2) Opencv installation from source. 1) Install opencv…
More..
12
TechieRoopTutorials, Programming Solutions, Tips & Tricks 2017