Most voted "elasticsearch" questions
Elasticsearch is a distributed Restful search and analysis mechanism.
Learn more…39 questions
Sort by count of
-
10
votes2
answers187
viewsIn which scenarios is Elasticsearch worth using?
In which scenarios Elasticsearch is indicated as a replacement for ER or NOSQL database searches. The main doubt is when I should use Elasticsearch, because I realize in my applications that a…
-
4
votes1
answer2064
viewsSolr, Lucene and Elasticsearch what are the differences? When to use one or the other?
What is the difference between Elasticsearch, Solr and Lucene? When using one or the other?
-
4
votes1
answer398
viewsLooking for Keywords in Elasticsearch
I’m registering some objects of the kind: [{ nome: "bom_atendimento", chaves: ["bem atendido", "atendimento bom"] }, { nome: "ruim_atendimento", chaves: ["pessimo atendimento", "atendimento ruim"]…
-
3
votes1
answer4036
viewsHow to use Elasticsearch next to Mysql?
I’m looking to use Elasticsearch to see if I can get agility and speed in my Mysql queries. I started to see some things, but I found a little confusing the issue of integration with Mysql, someone…
-
3
votes1
answer386
viewsUsing Elasticsearch to do complex searches and then get the Ids for Mysql query
I’m thinking of the following idea: Use Elasticsearch features to make complex searches instead of making direct queries to Mysql using many where. If I were to use MYSQL I would have to create many…
-
3
votes2
answers292
viewsDoubt Search in Elasticsearch
when searching for a term "foo in Blabla bla" I need to return all items that have "blablah blah" and then in order of relevance "foo" "blablah" someone has a light? Thank you
elasticsearchasked 8 years ago bgsouza 129 -
3
votes1
answer38
viewsQuery with AND operator in Elasticsearch
I have a query of Elasticsearch would be using the operator AND to find the two words (fast AND car) which must have the two words in the result, no matter if the two words are in the title or if…
elasticsearchasked 5 years, 6 months ago Jean 33 -
2
votes1
answer115
viewsELK + REDIS - Duplicating data
Fala galera, I need a help... I have the following Logstash configuration files: agent conf. input { log4j { type => "bdj" port => 25827 } } filter{ json{ source => "message" } } output {…
-
2
votes1
answer738
viewsElasticseach, Redis, Relational Database or whatever?
I’m starting to work with the Elasticsearch and from what I looked so far on the net brought me some doubts. What is the difference between Elastic and Redis? It is advantageous to work with a…
-
2
votes1
answer691
viewsSort with Accentuation in Elasticsearch
I’m trying to make an ordination with Elastic Search, however some fields have accentuation, as name of cities, I tried to use fields with index not_analyzed and with ptbr in the second form: {…
-
2
votes2
answers123
viewsDoubt architecture deployment with Elasticsearch?
Hello, it is normal to use Elasticsearch as a direct backend in a web application. Security-related? Frontend (js) -> Backend (Elasticsearch) or Frontend (js) -> your backend -> service…
-
2
votes0
answers36
viewsElasticsearch aggregations missing categories in Buckets
I need to aggregate products by category The "body" of the products is: p1 = [ ... "categories": ["1","2","3","4"] ]; p2 = [ ... "categories": ["2","1","9","10"] ]; p3 = [ ... "categories":…
-
2
votes0
answers18
viewsWhat’s the difference between Properties and Fields in Elasticsearch documents
What is the difference of properties and Fields? when creating a mapping I have the possibility to define a value with both; What and When I should use each one? Below a document from Elasticsearch…
elasticsearchasked 3 years, 9 months ago Ricardo 14,521 -
2
votes0
answers21
viewsWhat is the purpose of some Elasticsearch document fields to have @ and _ at the beginning and some duplicates
Because some fields of document of Elasticsearch have at its beginning the characters "@" and "_" and are duplicated ex: @ at first: @tags, @type _ at first: _score, _type Some fields have two…
elasticsearchasked 3 years, 9 months ago Ricardo 14,521 -
1
votes0
answers123
viewsWhat is the best way or method to study banks in the QTL?
I need to develop a script that Sincronize an apache database with another Elastic search. However, I do not know the operating mechanism of the two, which are banks in the SQL. What is the fastest…
-
1
votes1
answer383
viewsUsing Elasticsearch, how to obtain data between certain hours using range
Hello, I am using Elasticsearch, and my query is not searching for the information I want. { "query": { "bool": { "must": [ { "range": { "date": { "gte": "2016-04-29 00:00:01", "lte": "now" } } } ]…
-
1
votes1
answer271
viewsHow to access a specific field of a JSON object using JAVA
I’m using Java to get information from Twitter and the REST client Elasticsearch. As a test I did a PUT of info in JSON and then used the performRequest to obtain a specific element. //create a json…
-
1
votes0
answers85
viewsCamparation of databases
I receive daily an Oracle database with 12 tables containing on average 8 million records each. I need to treat it to get only the updated day records compared to the previous day’s base, but I…
-
1
votes1
answer22
viewsFind out the number of _search requests made to an Elasticsearch index
I am working with Elasticsearch and would like to find out a precise way to know how many requests have been made to an index of my Elasticsearch. using the GET - /"seuindex"/_Stats command, I have…
-
1
votes1
answer33
viewsSearch in Elastic pass a list and return all matchs
I need to perform a search in Elastic search, but I’m having difficulties BoolQueryBuilder query = boolQuery() .must(matchQuery(CLIENT_ID, clientId)); fieldValues .forEach(fieldValue ->…
-
1
votes2
answers83
viewsHow to consult with Elasticsearch-dsl?
I’m starting to make queries with elasticsearch_dsl and I’m getting lost to returns my object by product name. from elasticsearch import Elasticsearch from elasticsearch_dsl import Search,…
-
1
votes1
answer63
viewsHow to sort with Elasticsearch while maintaining search relevance?
I’m trying to search for a word in Lasticsearch with python and sort by one of the columns, but this is changing the result the way I really wanted it. For Ex: When I search without order it returns…
-
1
votes1
answer63
viewsHow to include minimum_should_match in the query of Elasticsearch dsl?
I’m trying to use the minimum_should_match how are you in documentation q = Q('bool', must=[Q('match', title='python')], should=[Q(...), Q(...)], minimum_should_match=1 ) s = Search().query(q) But…
-
1
votes0
answers61
viewsShow parent or child only in a search for Elasticsearch
I’m a beginner in the world of Elastic and I have some doubts about relationships. I have configured in my Mapping the following relation: "relacao":{ "type": "join", "relations":{ "pai":"filho" } }…
elasticsearchasked 3 years, 11 months ago Isa 11 -
0
votes1
answer60
viewsHow to use minimum_should_match searching for more than one field?
I am trying to filter my Elasticsearch result where the results should be returned where they are 80% compatible with the searched text. When I use only one column the rule of minimum_should_match…
elasticsearchasked 10 years, 8 months ago Alessandro Gomes 730 -
0
votes1
answer218
viewsElasticsearch: Add multiple fields of a document
I need to add fields different and join them in a single field on the return of the Elasticsearch (search in POST mode), but I only know the way distinctly sum each field, as follows: "aggs" : {…
elasticsearchasked 7 years, 6 months ago Thiago Sperandio 35 -
0
votes1
answer61
viewsElasticsearch Inner with shop
In my project there are about 40,000 products from different stores, but to return a search for Elasticsearch,I need the city and state filter where the store is located. The problem is this, if a…
-
0
votes0
answers36
viewsHow to Index an array as separate fields in Elasticsearch
I tried to index as follows: body: { name: form.value.name, title: form.value.title, description: form.value.description, published: new Date().toLocaleString(), stash: { "title":…
elasticsearchasked 5 years, 7 months ago Matheus Ribeiro 143 -
0
votes1
answer64
viewsQuery execution problem in Elasticsearch
When trying to do a search on elasticsearch using the elasticsearch.js I used the following code below: var cliente = new $.es.Client({ host: 'http://localhost:9200', log: 'trace' }); var cliente =…
-
0
votes0
answers17
viewsHow to use a specific jvm
Hello, I am currently trying to reproduce result in information recovery task and the model I am playing is in java, a language I am not used to. To run the model, I need to use the bundled JVM…
-
0
votes1
answer21
viewsError updating angular Elasticsearch index
I basically have the following function: this.es.update({ index: 'contentman', type: 'sites', id: "_id", body: { name: form.value.name, description: form.value.description, url: form.value.url,…
-
0
votes1
answer54
viewsProblem sorting Elasticsearch/Django query
I have this model of Django: class Profile(User): rg = models.CharField(max_length=20, null=True,blank=True) cpf = models.CharField(max_length=15, unique=True, null=True) about =…
-
0
votes1
answer44
viewsCount based on the value of a field and index filter in Elasticsearch with Elasticsearch-dsl
I’m using Python3.6, with elasticsearch (7.9.1) and elasticsearch-dsl (7.3.0). On my index logstash-2020.09.21 i have some documents as below (filtered by the relevant fields): { "subtype":…
-
0
votes1
answer58
viewsElasticsearch server connection
Good afternoon! I’m trying to connect in Elasticsearch, but I’m not getting, I don’t know if I need to inform anything else in class es=Elasticsearch(..) # Import Elasticsearch package from…
-
0
votes1
answer27
viewsIs it possible to return all ids from an Elasticsearch search keeping the specified `size`?
It is possible to return all ids of an Elasticsearch search? I have the following query that most of the time returns in the field ['hits']['total'] more hits than what I specify on size. As in the…
-
0
votes0
answers83
viewsWarning Elasticsearchdeprecationwarning: this request Accesses system indices
I’m getting a Warning when trying to get all indexes in Elastic after the latest version update. Warning. C: Users... Appdata Local Programs Python Python38-32 lib site-Packages Elasticsearch…
-
0
votes0
answers17
viewsRequesterror 400, 'search_phase_execution_exception', 'failed to parse date field Django
I’m having trouble executing the views that receive an Elasticsearch, searches between dates coming from the template and returns a csv! views: ... data_inicio_template =…
-
-1
votes1
answer29
viewsconvert string to double Elasticsearch
Hello, folks are in need of a help with Elasticsearch. I’m trying to do a script conversion, from a string field, to double, but unfortunately, I’m not getting it. the last script I did was this:…
-
-1
votes0
answers10
viewsHow to create a Trigger for an Intex in Elasticsearch to save the previous state before an update
Hello, I’m creating a solution that will use Elasticsearch as a non-relational database. In the solution I want to control the history of a document as in the example below (this example is not…