java.lang.IllegalArgumentException: The number of object passed must be even but was [1] at org.elasticsearch.action.index.IndexRequest.source(IndexRequest.java:451)

Stack Overflow | Juan | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Elastic Search number of object passed must be even

    Stack Overflow | 6 months ago | Juan
    java.lang.IllegalArgumentException: The number of object passed must be even but was [1] at org.elasticsearch.action.index.IndexRequest.source(IndexRequest.java:451)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The number of object passed must be even but was [1] at org.elasticsearch.action.index.IndexRequest.source(IndexRequest.java:451)

      at elastic.elasti.App.lambda$0()
    2. elastic.elasti
      App.lambda$0
      1. elastic.elasti.App.lambda$0(App.java:55)
      1 frame
    3. Java RT
      ArrayList.forEach
      1. java.util.ArrayList.forEach(ArrayList.java:1249)
      1 frame
    4. elastic.elasti
      App.main
      1. elastic.elasti.App.indexExampleData(App.java:53)
      2. elastic.elasti.App.main(App.java:45)
      2 frames