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
Closed
Assignees

Comments

@brwe
Copy link
Contributor

brwe 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants