Skip to content

XContent - An abstraction on top of content (JSON inspired) #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kimchy opened this issue Apr 29, 2010 · 1 comment
Closed

XContent - An abstraction on top of content (JSON inspired) #152

kimchy opened this issue Apr 29, 2010 · 1 comment

Comments

@kimchy
Copy link
Member

kimchy commented Apr 29, 2010

An xcontent abstraction on top how elasticsearch handles data (both parsing and generation). Inspired by JSON format (actually, one by one to json) with two default implementations: JSON, and XSON. XSON (maps to Content-Type application/xson) is an optimized binary representation of JSON.

In general, content in elasticsearch is broken down into the following:

  • Indexed content. In this case, the content type can be derived from the stream (thought can be set using Content-Type.
  • Request: Search, Count (query), and other request body allow for xContent data now. Again, the content type can be derived from the stream.
  • Response: The format of the response. Uses the Content-Type for this. If not available, and REST body is available, then tries to derive it from it. If not, defaults to JSON.

In Java, all custom builders (aside from index source) have been renamed. This include the query / filter builders. By default, they now generate xson format (the "user" is not aware of the format used, and xson is more optimized).

@kimchy
Copy link
Member Author

kimchy commented Apr 29, 2010

XContent - An abstraction on top of content (JSON inspired), closed by 34d99c3.

dadoonet added a commit that referenced this issue Jun 5, 2015
In elasticsearch master (2.0) a new method `move(String sourceBlobName, String targetBlobName)` has been added to `BlobContainer`.

Closes #152.
ClaudioMFreitas pushed a commit to ClaudioMFreitas/elasticsearch-1 that referenced this issue Nov 12, 2019
costin pushed a commit that referenced this issue Dec 6, 2022
🤖 ESQL: Merge upstream
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant