Comments (9)
Pinging @elastic/es-search (Team:Search)
from elasticsearch.
Pinging @elastic/es-storage-engine (Team:StorageEngine)
from elasticsearch.
Pinging @elastic/es-distributed (Team:Distributed)
from elasticsearch.
@gmarouli it seems that the test passes you passed wrap the mappings inside _doc
.
{
"_doc": {
"properties": {
"@timestamp": {
"format": "date_optional_time||epoch_millis",
"type": "date"
},
"flag": {
"type": "boolean"
},
"message": {
"type": "match_only_text"
}
}
}
}
from elasticsearch.
If you store the compressed mapping in Template
without _doc
, for some reason it reads back the compressed mapping wrapped in _doc
.
from elasticsearch.
#78746 seems to be related to this issue
from elasticsearch.
Looks like the core issue is MetadataIndexTemplateService#wrapMappingsIfNecessary
and Template#reduceMappings
alter the mappings, that's why we end up with templates with different sizes.
from elasticsearch.
Another way to fix the test is to use out.writeString(this.mappings.string());
and CompressedXContent.fromJSON(in.readString())
to store/read mappings but it defeats the purpose of storing them compressed.
from elasticsearch.
@arteam thanks for looking into this! I am still a bit baffled why this got triggered by using the type "type": "match_only_text"
on non template mapping as well. I will see if I can create a different example.
from elasticsearch.
Related Issues (20)
- [ML] Discuss Potential Enhancement for `ml.allocated_processors_scale` to Support Expansion HOT 1
- JDK 23 changes how locales work in a way that breaks elasticsearch HOT 3
- [CI] DateFormattersTests testCustomLocales failing on JDK23 HOT 3
- [CI] ShardBulkInferenceActionFilterIT testBulkOperations failing HOT 3
- [CI] DlsFlsRequestCacheTests testRequestCacheForBothDLSandFLS failing HOT 3
- [CI] DlsFlsRequestCacheTests testRequestCacheWithTemplateRoleQuery failing HOT 3
- [CI] ChainingProcessorTests testEqualsAndHashcode failing HOT 3
- [CI] EsExecutorsTests testParseExecutorName failing HOT 2
- [CI] RoleWithRemoteIndicesPrivilegesRestIT testRemoteIndexPrivileges failing HOT 2
- Generate an explain for vector search knn HOT 1
- [CI] ApiKeySingleNodeTests testCannotCreateDerivedCrossClusterApiKey failing HOT 2
- [CI] MlWithSecurityInsufficientRoleIT test {yaml=ml/sparse_vector_search/Test sparse_vector search with query vector and pruning config} failing HOT 1
- Data stream lifecycle tail merging should wait for TSDS index to be out of lookback time HOT 1
- Trained models auto-scaling, including ELSER, E5 HOT 1
- [CI] ReservedRealmElasticAutoconfigIntegTests testAutoconfigSucceedsAfterPromotionFailure failing HOT 2
- [CI] ReservedRealmElasticAutoconfigIntegTests testAutoconfigFailedPasswordPromotion failing HOT 2
- "errors": bool flag in MGET response HOT 1
- Test logging can make Gradle go OOM HOT 1
- [Inference API] Add pagination and sorting options to GET _inference HOT 1
- please help me change the php code from pagination from + size to search_after 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 elasticsearch.