892 questions
3
votes
0
answers
134
views
Validating ES query_string upfront, namely without connecting to an Elasticsearch server
I am looking for a Python library (if any) that could help validate the query_string field of Elasticsearch queries1 upfront, namely without connecting to an Elasticsearch server and without having to ...
0
votes
1
answer
27
views
Fuzzy matching multi term query wrong results
Looks like I'm missing something obvious when trying to fuzzy match multi term query.
What I'd like to achieve is to get only "Goleniow Helenow" result when providing "Goleniow Heleniow&...
-1
votes
1
answer
89
views
Highlighting retrieved nested text chunks in elastic search?
i have a hybrid search index with a mapping like:
{
...
"raw_content": {
"type": "text",
"term_vector": "with_positions_offsets&...
0
votes
0
answers
17
views
Querying a pdf body in ElasticSearch as nested fields along with other flattened data
I am using python libraries for elasticsearch, but help in raw elasticsearch query/mapping will be helpful too.
For every project, there can be N number of files and some extra data. I want to index ...
0
votes
0
answers
30
views
elasticsearch query multiple map and only return if atleast 1 value in every map is satisfied
I have a field in my doc that could contain multiple map like this
"allCodesRequired": [
{
"mapKey1": ["one", "two"]
},
{
"mapKey2": [&...
0
votes
0
answers
35
views
Elasticsearch multiple query results are inconsistent
When I use the following syntax:
{ "track_total_hits": true, "query": { "match_all": {} } }
When I query (I use match_all to get an accurate total number of docs to ...
0
votes
0
answers
62
views
How to build dynamic elastic query from array using elastic dsl
I want to build a query like this:
GET elasticIndexExample/_search
{
"query": {
"bool":{
"must": [
{
"range": {
"...
0
votes
0
answers
12
views
Visualization sum with specific dayOfWeek
I would like to create a Count visualization by selecting the weekdays for a given month. I’m able to create the visualization by using a sum on my TotalTTC field, but I want to sum only for the ...
0
votes
1
answer
32
views
Why does the PHP spread operator in an Elasticsearch query return different results than hardcoding parts of the query?
I've got a problem that I'm not entirely sure I understand. I've got the following Elasticsearch query, written in PHP, with fuzziness matching hardcoded; this results in about an expected 1,500 ...
0
votes
1
answer
54
views
Elasticsearch ID 'filter' in Query-DSL
I am trying to get an ID filter running in Elasticsearch, so that only a specific subset of documents is searched (or at least returned) with other filters.
(This is saved as a Mustache template)
...
0
votes
0
answers
21
views
Query string operator in elastic doesn't work with multiple fields and dashes
I have the following elastic example query that checks on product title:
GET new_customer_order_items/_search
{
"query": {
"bool": {
"filter": [
{
...
1
vote
1
answer
63
views
How to Count Unique Assets with Specific Severity in Elasticsearch?
I have data as follows:
{
"_index": "index",
"_id": "...",
"_score": 4.512486,
"_source": {
"...
1
vote
1
answer
96
views
How can I count all the occurrences within my date_histogram?
I'm trying to get a total count of my aggregations based on group_by_asset's field:summary.severity. Below is my es query:
{
"runtime_mappings": {
// Your runtime mappings here
},
&...
0
votes
1
answer
158
views
Build Dynamic ElasticSearch query using OR clause in C#
The following is a query written in C#. It leverages Elastic.Clients.Elasticsearch version 8.13.7. This is NOT the NEST client. This is the ASP.NET client. It doesn't have a lot of documentation.
...
0
votes
1
answer
456
views
Dynamically Build Search Query using Elasticsearch .NET client 8.3
I am new to ElasticSearch. I have a query that works but the values are hardcoded. I need to update the query to use a list of strings in the 'should' clause. I am not finding much documentation for ...