Comments (2)
@mindscratch since 7.16.0 release was so close I wanted to wait until it was actually out, but you figured out earlier :-)
Here's what it looks like with 7.16:
SearchRequest req = SearchRequest.of(b -> b
.query(q -> q
.range(r -> r
.field("field-name")
.gt(JsonData.of("bar"))
.lt(JsonData.of("foo"))
)
)
);
The JsonData
type is some arbitrary data that can be translated to JSON, as there are may ways to express range bounds.
from elasticsearch-java.
Looks like it's coming in the next version :)
from elasticsearch-java.
Related Issues (20)
- {"error":"Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported","status":406} HOT 1
- sourcesIncludes and sourcesExcludes is missing on SearchRequest HOT 2
- Required parameter K in KnnQuery HOT 6
- Inconsistent type for IndexTemplate priority HOT 2
- UpdateOperation didn't serialize the script into the request body. HOT 2
- Allow custom SpanQuery HOT 3
- I can't provide a set of synonyms when creating the analyzer HOT 7
- On the issue of termvectors queries
- Regarding termvectors query related issues HOT 1
- PutSynonymResponse: Failed to decode response HOT 2
- TermsBucketBase: doc_count_error should be doc_count_error_upper_bound HOT 1
- Read By Id: Failed to decode response
- Assign a tokenizer to a field when creating an index. 8.6.0 HOT 1
- co.elastic.clients.elasticsearch.ElasticsearchClient.delete responce nullpointerexception HOT 2
- Creating aggregation from json via supplied reader HOT 1
- Building a zero result response declares missing properties as mandatory which should be optional HOT 1
- `field_masking_span` is deprecated in ES8.0+ but still used in java client HOT 4
- Cannot parse DynamicTemplate mapping with unknown field HOT 5
- Encountering NoSuchMethodError when Creating Elasticsearch Client
- PutTemplateRequest - `Unknown field 'composed_of'` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-java.