Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor edits

Swarm 15 introduced the setting search.enableDelimiterPaths=True, so that any search feeds the elasticsearch index when a search feed is first created will have a new paths field which . That 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 usePaths is ignored due to any entries in the elasticsearch index missing the field. This can happen if the search feed was created before that setting search.enableDelimiterPaths was True or if the setting it was temporarily changed to False while adding/updating objects.

...

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

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

  3. Issue this curl:

    Code Block
    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 If any entries are at least some of the entries preventing returned they prevent the use of usePaths=true.

Info

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

...

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1f78c34f
maxCheckboxfalse
sortmodified
showSpacefalse
reversetrue
typepagelabelskb-how-to-article
cqllabel = in ( "kb-how-to-article" , "elasticsearch" , "searchfeeds" ) and type = "page" and space = "~55705885ceb5d0e5654bcfb5c03d1d2804c095"
labelskb-how-to-article