Comments (8)
Are you talking about _source: enabled ?
from elastic4s.
No, I really mean the "enabled" field in the core type:
{
"mappings": {
"whatever": {
"type": "object",
"enabled": false
}
}
}
What setting the value to false
does is disable parsing and analysis so that you can store arbitrary JSON values.
from elastic4s.
Can you link me to docs on that, and I'll get it added.
from elastic4s.
You're fast :-)
You'll need to scroll down a bit:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-object-type.html
An example of where it's used internally is in the _percolator
index to store the query
. It's not the same as dynamic
in that it generates no schema, so you don't get conflicts if you first try to store a JSON object in one document, and then a string in another for a field flagged with "enabled": false
.
from elastic4s.
Will add all those missing fields.
from elastic4s.
@richardhundt is this issue still present?
from elastic4s.
This should be fixed now, closing.
from elastic4s.
I think this is still open. You can disable a particular field createIndex(indexName).mappings(mapping("_doc").fields(objectField("o").enabled(false))
, but I donβt think you can disable indexing all fields of the document e.g. createIndex(indexName).mappings(mapping("_doc").enabled(false))
. Elasticsearch documentation: mapping enabled
from elastic4s.
Related Issues (20)
- Multisearch ignores memory circuit breaker errors HOT 1
- Update to cats-effect 3.5+
- Add runtime fields support to `MappingDefinitionLike` HOT 2
- 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
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.