SearchParseException[failed to parse search source. unknown search element [mappings]]
{"error":{"root_cause":[{"type":"search_parse_exception","reason":"failed to parse search source. unknown search element [mappings]","line":2,"col":14}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"pbaindex","node":"PQBFXvM5XniVQ","reason":{"type":"search_parse_exception","reason":"failed to parse search source. unknown search element [mappings]","line":2,"col":14}}]},"status":400}
Your url looks like a search command. The request body looks like put mapping command. Not sure if you want to exclude field during indexing or during searching.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.