Dots in field names on Elasticsearch 5.5


(Daniel Valdivia) #1

Hi,

I'm getting the "dot not allowed in field name" exception, on a 5.5 cluster on AWS (elasticsearch service), the odd thing is that this doesn't happen on my local ES running on a docker container, I'd assume this is a configuration issue on AWS side, I read everywhere that dots in field names are allowed in 5.x so I'm confused on what is triggering this behaviour and if there's a way to debug this

Traceback (most recent call last):
  File "/app/src/app/company/common/models.py", line 539, in save
    search_utils.index_model_instance(self)
  File "/app/src/app/company/esp_search/search_utils.py", line 464, in index_model_instance
    body=serialized_body)
  File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.py", line 73, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/elasticsearch/client/__init__.py", line 300, in index
    _make_path(index, doc_type, id), params=params, body=body)
  File "/usr/local/lib/python2.7/dist-packages/elasticsearch/transport.py", line 318, in perform_request
    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
  File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 128, in perform_request
    self._raise_error(response.status, raw_data)
  File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/base.py", line 124, in _raise_error
    raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
RequestError: TransportError(400, u'mapper_parsing_exception', u"Field name [app.thing.action] cannot contain '.'")

(Ryan Ernst) #2

What request are you making? At a quick glance, I don't see that error message in the 5.x codebase.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.