SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 92 in 2 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. corpus_mappings = {
  2.     "mappings": {
  3.         "properties": {
  4.             "corpus": {"type": "text"},
  5.             "keywords": {"type": "keyword"},
  6.             "labels": {"type": "keyword"},
  7.             "start": {"type": "integer"},
  8.             "end": {"type": "integer"}
  9.         }
  10.     }
  11. }
  12.  
  13. doc = {
  14.             "_index": conf.path_index,
  15.             "_op_type": "insert",
  16.             "_source": {
  17.                 "corpus": txt,
  18.                 "keywords": keywords,
  19.                 "labels": labels,
  20.                 "start": start_char,
  21.                 "end": end_char
  22.             }
  23.         }
  24.  
  25. Error: elasticsearch.exceptions.RequestError: RequestError(400, 'action_request_validation_exception', 'Validation Failed: 1: no requests added;')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top