639 questions
0
votes
1
answer
33
views
Elasticsearch query index being updated, not create
I know I can query index creation time with curl 'http://localhost:9200/_cat/indices?v&h=index,creation.date.string'.
Is there a similar query which I can check index update time (not creation ...
0
votes
1
answer
53
views
Elastic Search Analyzer at search time not working
Create the Index with Query-Time Analyzer Only:
PUT /local_persons
{
"settings": {
"analysis": {
"analyzer": {
"person_search_analyzer": {
...
0
votes
1
answer
41
views
Term-Based Subsequence Queries in Elasticsearch
I am looking to create an index called 'story' in Elasticsearch. This index will store multiple documents, each containing a field called 'description' which provides some information about the story ...
0
votes
1
answer
185
views
how to use more Like this query score to function score in Elasticsearch
how to use "more Like this" query score to function score in Elasticsearch
static FunctionScore mltFunctionScore(String text, Double weight, List<String> fields) {
return ...
0
votes
0
answers
23
views
Fetch common key values from 2 aggregation results
I have aggregation output having two datasets, need to find the key values present in both.
{ "aggregations":{ "data4hr":{
doc_count:12345,
"NAME":{
...
0
votes
1
answer
497
views
Elasticsearch date histogram aggregation shows incorrect dates
Im using ES version 6.8, trying to do a query with the Java High Level REST Client. I'm trying to use the Histogram Date Aggregation to get the count of documents by date.
This is my query:
{
"...
0
votes
1
answer
224
views
Elastic Search - How to query Array of JSON objects?
I have a data available in ES in the below format. Lets call each json object as campaign object.
{id:"c1", tags:[{key:"k1",value:"v1"}, {key:"k2",value:"...
0
votes
0
answers
89
views
How to prioritize the result based on the specified list of ids in Elastic Search query
To brief:(Elastic Search)
I have set of IDs [12,32,44,32], I need to prioritize the records based on the list of IDs, means I need to bring the record which has the IDs one among the above mentioned ...
0
votes
1
answer
86
views
Elastic search - Seacrh by free text, sort by numeric all of it within a radius
Trying to search within an Index by query string, sort by numeric field all within a specific radius.
There is no reference in the Elastic documentation, so I may have to solve it at the application ...
0
votes
1
answer
106
views
How do I search for a specific value in a nested array in Elastic Search Query?
I'm searching for the following index:
{
"_index": "example-index",
"_type": "_doc",
"_id": "C-123",
"_version": ...
0
votes
1
answer
52
views
Storing and searching units and value ranges in Elasticsearch
I want to store multiple numerical ranges (array of integer_range) for a document. Each set of ranges is associated to a unit (a text field).
Here's an example:
PUT nested_index/_doc/1
{
"...
0
votes
2
answers
134
views
Using "unique" filter, Elasticsearch analyzes tokens incorrectly
I've been trying to use the **unique ** token filter in my analyzer, but it continue to use duplicate tokens while scoring.
Analyzer:
{
"settings": {
"analysis": {
...
1
vote
1
answer
1k
views
In Elasticsearch, how to use a range query on a text field?
There is a 'remark' field in an Elasticsearch index that contains various remarks along with the date when that remark was given.
For example:
remark
------
14/02/2023 To be updated ; 15/02/2023 ...
0
votes
1
answer
57
views
searching for space separated words in Elasticsearch
my data is,
POST index_name/_doc/1
{
"created_date" : "2023-02-09T13:21:41.632492",
"created_by" : "hats",
"data" : [
...
0
votes
1
answer
892
views
Return a value if field is missing in Elastic search document
I have an index user. I'm filtering user on LOCATION_ID and _source consists of PHONE_NUMBER & USER_ID, some of the documents do not have PHONE_NUMBER data. It returns a response with just USER_ID....
1
vote
1
answer
143
views
Elasticsearch: Query String vs Simple Query String
What is the exact difference between Query String and Simple Query String? The only difference that is mentioned in the docs is that Query String is more advanced but throws an exception when a sent ...
1
vote
1
answer
631
views
Elastic Search Json field query with number key
How can I query elastic search based on the number key?
JSON field name
years_of_experience :
"{\"61\": \"10\", \"8240\": \"5\", \"8249\": \"...
0
votes
1
answer
708
views
How to sort by nested field which has multi-field defined
first of all, this is my very first post on here, so bear with me
I am trying to find a proper way to sort on an elasticsearch nested field in a class which is defined as follows:
public class ...
0
votes
1
answer
43
views
elasticsearch Geop Shape query not working
One of my document (id = emergency) is a circle having a 30000 meter radius:
GET seller-67/_doc/emergency
{
"_index": "seller-67",
"_type": "_doc&...
1
vote
1
answer
128
views
Elastic search query string
Why can't I get the same result in the second query as in the third one? What am I doing wrong?
I make this query:
{
"size": 20,
"track_total_hits": false,
"_source&...
0
votes
1
answer
45
views
Elasticsearch exact multiword (array) query for one field
I try to write a query where I have multiple Exact search terms lets say an array of strings
like
["Q4 Test WC Schüssel", "Q4_18 Bankerlampen", "MORE_SEARCHTERMS"]
And I ...
0
votes
1
answer
680
views
Elasticsearch Query NOT searching in the specified fields
I am struggling with an elasticsearch query. In the fields option, we have specified '*' which means it should look in all fields as well as given the higher weights to a few fields. But it isn't ...
0
votes
1
answer
548
views
how to match multiple fields inside filter keyword in elastic search query?
I want to add one more field inside match inside function block in my query, but when i am adding, i am getting an error ------ "reason" : "[match] query doesn't support multiple fields,...
0
votes
1
answer
38
views
elasticsearch: problema al consultar a un rango de tiempo definido
I would like to know if there is a way to define a time range as follows.
With a watcher I am looking for records with a certain message within a field. The problem is that I want it to find the ...
1
vote
0
answers
43
views
Elasticsearch: find closest docs to refence to one by date
Is there a standard seach possibility to find closest docs to one reference doc by date criteria (if I don not know range yet)
Example dataset:
index “person”
- doc : name=>Alice birthday=>01....