zms-publishing / ZMS

Running on Python 3.8+
11 stars 5 forks source link

Monotonize aggregating page-content by sequencing page-elements' standard_html #281

Closed drfho closed 1 month ago

drfho commented 1 month ago

Ref:

  1. https://github.com/zms-publishing/ZMS/commit/936b091e6317f138dba4999999f79b9c7f80f140
  2. https://github.com/zms-publishing/ZMS/issues/278

Result:

1 Now page content is aggreated the same way for all cases (fullindex, change, insert).

  1. In case of indexed attributes (e.g. _standardhtml) are not filled with expected text, delete (misconfigured) search-adapters and start full reindex.

unibe_reindex

URLs:

  1. CONFIG https://edit.cmstest2.unibe.ch/unibe/content/zcatalog_adapter/manage_main
  2. TEST https://edit.cmstest2.unibe.ch/unibe/portal/fak_vetmedizin/a_dept_dkv/inst_kleintier/content/e18883/e750745/e750831/manage_main?lang=ger
  3. INDEX https://idcmsosearchint01.id-sys.unibe.ch/app/dev_tools#/console

ad 3: Snippets

GET /unibe/_search
{
  "query": {
    "match_phrase": {
      "uid": {
      "query": "\"uid:c8b129ae-2f1d-4ad3-83ad-0c7606893394\""
      }

    }
  }
}

GET /unibe/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "simple_query_string": {
            "query": "inst_kleintier",
            "fields": ["home_id"]
          }
        },
        {
          "simple_query_string": {
            "query": "ger",
            "fields": ["lang"]
          }
        },
        {
          "simple_query_string": {
            "query": "e18868*",
            "fields": ["zmsid"]
          }
        }
      ]
    }
  }
}