DivanteLtd / magento1-vsbridge-indexer

This is an official, native Vue Storefront data indexer for Magento 1.9

Home Page:https://vuestorefront.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMS Page/Block identifier tokenized

mtarld opened this issue · comments

identifier of CMS Page and Blocks is text type therefore - seems to be interpreted as a tokenizer.

That creates a bug for cms pages with a - in its identifier such as about-us.
That's why about-us is not found at all using VSF elastic query:

GET _search
{
  "query": {
    "bool": {
      "filter": {
        "terms": {
          "identifier": [
            "about-us"
          ]
        }
      }
    }
  }
}

Whereas it is found using that elastic query:

GET _search
{
  "query": {
    "bool": {
      "filter": {
        "terms": {
          "identifier": [
            "about"
          ]
        }
      }
    }
  }
}

I suppose that identifier should be keyword type.