Tag field with index: all

This is just an FYI tip for anybody looking to use index: all.

It seems the field names need to be the same for it to work.

ie, if you have a tags: field in some templates, but have a tagsToFilter: in another and set index: all, it won’t read from the tags field.

blogpage.yml

  tags:
      label:
        en: Categories
        de: Kategorien
      type: tags
      lower: true

and

related.yml

  tags:
    label:
      en: Enter tags to filter on
      de: Geben Sie Tags ein, nach denen gefiltert werden soll
    type: tags
    lower: true
    index: all

Works, but a related.yml like:

  tagsToFilter:
    label:
      en: Enter tags to filter on
      de: Geben Sie Tags ein, nach denen gefiltert werden soll
    type: tags
    lower: true
    index: all

won’t work.