Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Swarm 15 introduced the setting search.enableDelimiterPaths=True, so that any search feeds created will have a new paths field which allows for faster delimiter listings when gateway.cfg has [folder_listings] usePaths=true (https://perifery.atlassian.net/wiki/spaces/public/pages/2443810201/Gateway+Configuration#%5Bfolder_listings%5D ).

Gateway will log a warning if it cannot take effect because some elasticsearch entries are missing the field. This can happen if the search feed was created before that setting or if the setting was temporarily changed to False while adding/updating objects.

\uD83D\uDCD8 Instructions

You must have access to the elasticsearch endpoint, which should only be available on the internal storage network.

  1. Choose an elasticesarch node name or ip from the Search Feed.

  2. Note the cluster.name and search feed number (the first is 0).

  3. Issue this curl:

    curl -H 'Content-type: application/json' 'ELASTICSEARCH-HOST:9200/index_CLUSTER-NAME0/_search?pretty&size=100' --data-binary '
    {
      "query": {
        "bool": {
          "must": {
            "terms": {
              "stype": [
                "NAMED"
              ]
            }
          },
          "must_not": {
            "exists": {
              "field": "paths.p1"
            }
          }
        }
      }
    }
  4. The resulting entries are at least some of the entries preventing the use of usePaths=true.

A new search feed must be created if any entries are found. Refreshing the feed will not add the “paths” field to existing entries.

Filter by label

There are no items with the selected labels at this time.

  • No labels