django-oscar-elasticsearch icon indicating copy to clipboard operation
django-oscar-elasticsearch copied to clipboard

Invalid index name

Open gabriel-f-santos opened this issue 2 years ago • 1 comments

Hello, i am facing this issue: elasticsearch.exceptions.RequestError: RequestError(400, 'invalid_index_name_exception', "Invalid index name [__catalogue_product], must not start with '_'.") There is something wrong? Thanks!

gabriel-f-santos avatar Jan 15 '23 01:01 gabriel-f-santos

Hi, Ithink you've incomplete configuration, did you include the "INDEX" name in your WAGTAILSEARCH_BACKENDS settings:

WAGTAILSEARCH_BACKENDS = {
    "default": {
        "BACKEND": "oscar_elasticsearch.search.backend",
        "URLS": ["http://127.0.0.1:9200"],
        "INDEX": "my-index-name",
        "TIMEOUT": 120,
        "OPTIONS": {},
        "INDEX_SETTINGS": {},
        "ATOMIC_REBUILD": True,
        "AUTO_UPDATE": True,
    }
}

specialunderwear avatar Jan 16 '23 13:01 specialunderwear