elasticsearch-dsl Questions
5
Solved
How can i use django pagination on elasticsearch dsl.
My code:
query = MultiMatch(query=q, fields=['title', 'body'], fuzziness='AUTO')
s = Search(using=elastic_client, index='post').query(query)....
Mallee asked 9/3, 2016 at 0:41
2
So, we're using elasticsearch in our Django project, and we're using the elasticsearch-dsl python library.
We got the following error in production:
ConflictError(409, '{"took":7,"timed_out":fals...
Jitney asked 1/7, 2019 at 18:24
1
Solved
I have created a file ie., testfile.painless
ctx._source.b_id=params.b_id;
and just placed the testfile.painless file in the config/scripts folder on cluster node and then tried with _update_by_qu...
Deese asked 23/8, 2023 at 18:59
4
Solved
I have a couple of indexes in my Elasticsearch DB as follows
Index_2019_01
Index_2019_02
Index_2019_03
Index_2019_04
.
.
Index_2019_12
Suppose I want to search only on the first 3 Indexes. ...
Stormproof asked 5/2, 2019 at 13:10
6
Solved
I have a question about the Elasticsearch DSL.
I would like to do a full text search, but scope the searchable records to a specific array of database ids.
In SQL world, it would be the functio...
Orchid asked 20/1, 2016 at 22:47
0
I try to do this query with elasticsearch python client :
curl -X GET "localhost:9200/articles/_knn_search" -H 'Content-Type: application/json' -d '
{
"knn": {
"field&quo...
Wheeled asked 1/6, 2022 at 13:7
3
i want to convert this sql query to elastic DSL query language
SELECT t.pk_c_c_s,
t.fk_c_c_id,
t.s_b_a,
t.datetime,
SUBSTR(t.datetime, 0, 7) m,
(
SELECT SUM(i.s_b_a) sarpu
FROM TBL_C_C_S i...
Albuminoid asked 14/5, 2018 at 7:7
2
Solved
I am trying to filter Kibana for a field that contains the string "pH". The field is called extra.monitor_value_name. Examples of potential values are Temperature_ABC01, DO_ABC01, or pH_ABC01.
Kib...
Odontoid asked 13/3, 2019 at 15:48
17
Solved
I know one can delete all documents from a certain index via deleteByQuery.
Example:
curl -XDELETE 'http://localhost:9200/twitter/tweet/_query' -d '{
"query" : {
"term" : { &q...
Disarm asked 28/5, 2014 at 16:39
1
I have multiple indices in Elasticsearch (and the corresponding documents in Django created using django-elasticsearch-dsl). All of the indices have these settings:
settings = {'number_of_shards':...
Dasi asked 14/5, 2021 at 13:19
29
Solved
I have a small database in Elasticsearch and for testing purposes would like to pull all records back. I am attempting to use a URL of the form...
http://localhost:9200/foo/_search?pretty=true&...
Yates asked 12/1, 2012 at 2:41
3
I'm trying to find the last 30 entries into my index/doc type
I've tried nothing and I'm all out of ideas!
My current approach I find all the results over the last 5 minutes, then filter through ...
Unwished asked 13/3, 2017 at 7:22
3
Solved
Below is the query to get the exact match
GET courses/_search
{
"query": {
"term" : {
"name.keyword": "Anthropology 230"
}
}
}
I need to find the Anthr...
Jolie asked 13/7, 2020 at 12:53
1
Mapping
{
"supply": {
"properties": {
"rotation_list": {
"type": "nested",
"properties": {
"project_end_date": {
"...
Faux asked 10/7, 2020 at 3:10
3
I am using elasticsearch-dsl python library to connect to elasticsearch and do aggregations.
I am following code
search.aggs.bucket('per_date', 'terms', field='date')\
.bucket('response_time_per...
Sateia asked 10/11, 2017 at 9:47
1
I have setup my query string search with the "AND" default operator. My query is as follows:
{
"query": {
"query_string" : {
"query" : "Adam KT2 7AJ",
"default_operator" : "AND"
}
}
}
I wo...
Magnific asked 22/3, 2020 at 0:24
2
Solved
Can someone point me to how to extract the results _source from the generator when using the scan API in the elasticsearch dsl python client?
for example, i'm using (from this example, elasticsear...
Korikorie asked 1/5, 2018 at 14:39
1
Solved
How to check for key exists in painless script map parameters.
In below query check a.toString() key exist in params
I've tried everything but didn't get it to work.
Please help me
mapping :
"id...
Karyosome asked 1/7, 2019 at 10:26
2
Solved
I am trying to implement multiples indices approach using elasticsearch-dsl. There are basically two steps:
1. Create aliases:
PUT /tweets_1/_alias/tweets_search
PUT /tweets_1/_alias/tweets_inde...
Superbomb asked 10/3, 2017 at 13:12
2
Solved
Can someone tell me how to write Python statements that will aggregate (sum and count) stuff about my documents?
SCRIPT
from datetime import datetime
from elasticsearch_dsl import DocType, Str...
Herbivore asked 31/3, 2015 at 23:19
1
Solved
Hello Everyone:
I have been trying for a long time to replicate this query using ElasticSearch-dsl Search() class but unfortunately i have not been able to get it.
The query i want to replicate i...
Amphoteric asked 14/3, 2019 at 19:29
1
Solved
I have an elasticsearch aggregation query like this.
{
"aggs": {
"customer": {
"aggs": {
"Total_Sale": {
"sum": {
"field": "amount"
}
}
},
"terms": {
"field": "org",
"size": 50000
}
...
Crosstie asked 28/7, 2016 at 6:49
1
Solved
The mapping of my Elastic search looks like below:
{
"settings": {
"index": {
"number_of_shards": "5",
"number_of_replicas": "1"
}
},
"mappings": {
"node": {
"properties": {
"field1": {
...
Vally asked 10/8, 2018 at 9:23
1
I am using django-elasticsearch-dsl in one of our projects, and after creating a cluster in AWS Elasticsearch, I started seeing this error: Root certificates are missing for certificate validation....
Frias asked 12/7, 2018 at 8:17
1
Solved
I have two models which are as follows:
class PostUser(models.Model):
user_id = models.CharField(max_length=1000,blank=True,null=True)
reputation = models.CharField(max_length = 1000 , blank = ...
Merited asked 9/5, 2018 at 12:6
1 Next >
© 2022 - 2024 — McMap. All rights reserved.