Comments (10)
Should just be a case of adding that parameter to the definition.
from elastic4s.
Ok usually I'm in favour of keeping the DSL to match the json values. So in this case something like dynamic strict or dynamicStrict true ? Although I actually think your syntax makes more sense than the actual elasticsearch one.
from elastic4s.
dynamicStrict
SGTM
from elastic4s.
I've added a commit to allow this
create index "twitter" mappings(
"tweet" as (
//...
) dynamic Strict
)
But I can change it.
from elastic4s.
Which is the same as
create index "twitter" mappings(
"tweet" as (
//...
).dynamic(Strict)
)
If you like parenthesis
from elastic4s.
Great. Thanks!!
from elastic4s.
It's on master. Do you need a release to central ?
from elastic4s.
Sure.
from elastic4s.
Unfortunately, using Strict
means that indexing will fail on documents with dynamic values:
I have a scenario where I want to not index unmapped values, but not have them fail altogether. I think that setting dynamic to false
achieves this goal (from the documentation, it appears that it works that way for subdocuments).
from elastic4s.
Hmm. It's worth checking.
from elastic4s.
Related Issues (20)
- Implement ScriptScoreQuery HOT 2
- opensearch compatibility HOT 9
- Add support for PIT in search
- ElasticProperties accepts invalid input and runs with only single node HOT 1
- [Force merge index] Can not force merge asynchronously
- WAND optimization with a numeric track_total_hits parameter
- Using REST API compatibility
- Support for highlights in TopHitsAggregation
- Elasticsearch server version for tests is not up-to-date and tests are failing when updating HOT 2
- SearchHit.sourceAsString adds superfluous type metadata HOT 2
- IndicesExistsRequest with allowNoIndices = true always returns true HOT 1
- `getIndex` doesn't support date math in index aliases HOT 1
- `indexExists` always returns `true` if index string contains `*` HOT 2
- `.sourceExclude` and `.sourceInclude` are mutually exclusive HOT 1
- docAsUpsert not working as expected
- ElasticSource does not clear it's scroll HOT 1
- Add Synonyms API support HOT 3
- Is there anyway to stream the agg query? HOT 1
- ReindexRequest doesn't support versionType parameter
- I/O reactor status : STOPPED HOT 2
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 elastic4s.