Skip to content
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

`_termvector` returns `JsonGenerationException` if called between index and refresh #7121

Closed
brwe opened this Issue Aug 1, 2014 · 0 comments

Comments

Projects
None yet
3 participants
@brwe
Copy link
Contributor

commented Aug 1, 2014

To reproduce:


DELETE testidx

PUT testidx
{
  "settings": {
    "index.translog.disable_flush": true,
    "index.number_of_shards": 1,
    "refresh_interval": "1h"
  },
  "mappings": {
    "doc": {
      "properties": {
        "text": {
          "type": "string",
          "term_vector": "with_positions_offsets"
        }
      }
    }
  }
}
POST testidx/doc/1
{
  "text": "foo bar"
}

GET testidx/doc/1/_termvector

results in

{
   "error": "JsonGenerationException[Current context not an object but ROOT]",
   "status": 500
}

A more meaningful error message maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.