OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.45k stars 2.4k forks source link

Fix Custom Token Filters #17019

Closed denispetrische closed 1 week ago

denispetrische commented 1 week ago

Fix for bug #17012

@MikeAlhayek Look at this. I used configuration below and everything works

"OrchardCore_Elasticsearch": {
  "ConnectionType": "SingleNodeConnectionPool",
  "Url": "http://localhost",
  "Ports": [ 9200 ],
  "Analyzers": {
    "standard": {
      "type": "standard"
    },
    "keyword": {
      "type": "keyword"
    },
    "whitespace": {
      "type": "whitespace"
    },
    "knowledgebase_analyzer": {
      "type": "custom",
      "tokenizer": "standard",
      "filter": [
        "lowercase",
        "stop",
        "english_synonyms"
      ]
    },
    "default": {
      "type": "custom",
      "tokenizer": "standard",
      "filter": [
        "lowercase",
        "stop",
        "english_synonyms"
      ]
    }
  },
  "Filter": {
    "english_synonyms": {
      "type": "synonym_graph",
      "synonyms": [ "page,cage" ]
    }
  }
}
MikeAlhayek commented 1 week ago

Closing this In favor of the original PR #16975 17013