Skip to content

Content document & index — ContentDocument record + Meilisearch IndexSettings bean #5

Description

@herbie-bot

Summary

Define the canonical ContentDocument record (the shape of one indexed page) and register the Meilisearch IndexSettings bean for the content index. Searchable attributes weighted title > excerpt > body; filterable source/locale/author/categories/publishedDate; publishedDate sortable. No crawling yet — this defines the data contract and index schema.

Spec

  • Spec folder: docs/specs/003-content-document-index/
  • Design: docs/specs/003-content-document-index/design.md
  • Behaviors: docs/specs/003-content-document-index/behaviors.md

Acceptance criteria (from behaviors.md)

  • ContentDocument.id(source, url) is deterministic; different URLs yield different ids
  • id contains only Meilisearch-legal chars [A-Za-z0-9_-] even for URLs with / : .
  • toMap() contains all indexed fields; null optional fields map cleanly
  • IndexSettings bean registered with correct searchable/filterable/sortable attributes and primaryKey=id
  • Settings applied at startup by MeilisearchIndexSettingsInitializer
  • Index UID honors the configured index-prefix

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions