Script in elasticsearch - elasticsearch

I am new to elasticsearch, and currently studying the scriptting in ES.It would be really great if anyone who knows scripting in elasticsearch can put some light over scripting and its use in ES ?

You can start with reading elasticsearch documentation. Scripting is covered in the following topics on elasticsearch web site:
General information
Script Fields
Using script to filter the results
Using script to sort the results
Using scripts in facets (see individual facet documentation pages)
If after reviewing these pages, you still have concreate questions about scripting, don't hesitate to ask them in elasticsearch mailing list or on stackoverflow. Following guidelines on the Help page of elasticsearch website will significantly improve your chances of getting quick and useful answer.

Related

Elasticsearch learning roadmap

I have to set up Elasticsearch search engine in my job website enterprise. We've choosen this solution becasue it's scalable powerfull and personalizable. As a beginner of ES, I've only set up basic functionnalities such as simple research on a test website, but nothing to complex. My goal is to implement step by step more complicated functionnalities like synonyms, multilingual results, filters... And so on.
I would like to know if you had to implement something like this, and if you have any tips and tricks about bests practices. Also note that I've already red a lot about ElasticSearch but there's so many content that any "roadmap" or learning resources is welcome.
I'll be happy to read your advices and experiences with this amazing tool, best regards.

How is the BalancedShard Algorithm of elasticsearch is implemented

Hi i am trying to learn how elastic search balances the shard allocation in the cluster.I tried to learn from the BalancedShard java implementation that is provided in the github but i am not able to get a hold on it.Could anyone give me an overview of how the BalancedShard algorithm works.
Github link : https://github.com/elastic/elasticsearch/blob/v1.5.2/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java
Thanks in advance.

using CKAN with Elasticsearch to index data , possible?

I'm trying to use an open data portal which is CKAN . However its search platform uses solr , but i want to use elasticsearch to index my data . Is this a way to use elasticsearch with CKAN ?
Thanks.
The short answer is no.
ES is probably more popular now, but I can't think of any really good reason to switch from SOLR. They are both just wrappers around Lucene. Please do say what your reasoning is.
It's certainly doable, since the coupling with SOLR is reasonably loose. There was some work towards this here: https://github.com/ckan/ckan/pull/3118 which no doubt you'd be welcome to help resource.

Hosting: Parse.com with ElasticSearch

I am trying to make an scalable app using Parse with a search function provided by ElasticSearch.
It seems like I will have to host my own ElasticSearch server which connects to Parse via the ES MongoDB river.
Is this true? Or will Parse handle hosting ES.
I am new to both these solutions.
I recently had the same question. Googling site:parse.com elasticsearch currently only returns 2 results neither of which actually give us an answer. Exploring Parse's discussion forum doesn't provide much help either - the four posts even slightly related to elasticsearch hint at the possibility that Parse wont host ES.
So the answer is... drum roll... maybe :(

Are there any tools or best practices for documenting an ElasticSearch db

I'm looking for documentation about documenting an ElasticSearch deployment (you can see why this is challenging to Google!).
My question is really two questions. Are there best practices for documenting an ElasticSearch installation? -and- Are there any tools that aid in the visualization of an ElasticSearch installation. I guess it would be akin to a sql db schema (ER diagram or whatever). I've scoured Google without much luck and I didn't find anything on SO.
Documenting ES may be a bit more challenging than documenting a sql db since you probably want to be able to show the relationship between end user queries and indexing to explain the context of each mapping. Furthermore, it would be useful to visualize the cluster (perhaps a separate problem that could be solved with existing tools).
Thanks for any help.

Resources