# RFC 6902 requires variant type mapping

**URL:** <https://discuss.elastic.co/t/rfc-6902-requires-variant-type-mapping/17850>\
**Category:** Elasticsearch\
**Created:** [June 2, 2014, 12:44am UTC](https://discuss.elastic.co/t/rfc-6902-requires-variant-type-mapping/17850 "2014-06-02T00:44:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Marcus](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Steven\_Marcus](https://discuss.elastic.co/u/Steven_Marcus)\
**Post date:** [June 2, 2014, 12:44am UTC](https://discuss.elastic.co/t/rfc-6902-requires-variant-type-mapping/17850/1 "2014-06-02T00:44:28Z")

</div>

Hello,

RFC 6902 - [http://jsonpatch.com/](http://jsonpatch.com/) specifies a 'value' field that can be any  
JSON type:

eg:

[  
{ "op": "replace", "path": "/baz", "value": "boo" },  
{ "op": "add", "path": "/hello, "value": ["world"] }  
]

How do I set up ES to index these kinds of documents?

TIA,  
Steven

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2808e5b6-e4b8-494f-870f-d2475ba5c97e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2808e5b6-e4b8-494f-870f-d2475ba5c97e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [June 2, 2014, 7:11am UTC](https://discuss.elastic.co/t/rfc-6902-requires-variant-type-mapping/17850/2 "2014-06-02T07:11:46Z")

</div>

You'd have to use a plugin for such kind of operations, because vanilla ES  
does not support RFC 6902

I'm also interested in supporting HTTP PATCH by Elasticsearch, because this  
is a must have for modifying resources due to the rules of Linked Data  
Platform (LDP) [Linked Data Platform 1.0](http://www.w3.org/TR/2014/WD-ldp-20140311/)

Jörg

On Mon, Jun 2, 2014 at 2:44 AM, Steven Marcus [steven.marcus@gmail.com](mailto:steven.marcus@gmail.com)  
wrote:

> Hello,
> 
> RFC 6902 - [http://jsonpatch.com/](http://jsonpatch.com/) specifies a 'value' field that can be  
> any JSON type:
> 
> eg:
> 
> [  
> { "op": "replace", "path": "/baz", "value": "boo" },  
> { "op": "add", "path": "/hello, "value": ["world"] }  
> ]
> 
> How do I set up ES to index these kinds of documents?
> 
> TIA,  
> Steven
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2808e5b6-e4b8-494f-870f-d2475ba5c97e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2808e5b6-e4b8-494f-870f-d2475ba5c97e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/2808e5b6-e4b8-494f-870f-d2475ba5c97e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2808e5b6-e4b8-494f-870f-d2475ba5c97e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHJ%2BHQ-cxp3a0%3D2on%2B6qvWg%2B5KkAgdu2tr9h9%2BX0VTUJw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHJ%2BHQ-cxp3a0%3D2on%2B6qvWg%2B5KkAgdu2tr9h9%2BX0VTUJw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:25am UTC](https://discuss.elastic.co/t/rfc-6902-requires-variant-type-mapping/17850/3 "2017-07-06T01:25:18Z")

</div>

Closed on July 6, 2017, 1:25am UTC


