Skip to content

Sort example syntax is incorrect #899

@dfdan

Description

@dfdan

Package version (if known): current (also according to Discord I hit this in 2021...)

Describe the bug

The example for custom sort orders given in customize/search is incorrect - it only works for me if

you use metadata.title.keyword here:

fields=['metadata.title'],

Steps to Reproduce

  1. Follow examples in docs
  2. Try and search, get an error

Expected behavior

Docs should be updated, probably this needs a little bit of explanation of when to use .keyword or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions