Skip to content

Audit and refine Solr schema field definitions #45

@candyhazlett

Description

@candyhazlett

Description

A few Solr field suffix issues came up in PR #29 beyond the depositor_tesim fix (tracked in #39). The most obvious one: all_text_timv in core_file.rb:72 uses a timv suffix (datetime multi-valued) for what appears to be a full-text field — that doesn't make sense and the intent is unclear. More broadly, it's worth doing a pass over all the dynamic field suffixes in the to_solr methods and checking them against the schema to make sure we're not storing data in the wrong field types.

Steps

  1. List every field and suffix used across to_solr in collection.rb, project.rb, and core_file.rb
  2. Cross-reference against solrconfig/tapas/conf/schema.xml dynamic field definitions
  3. Note any mismatches
  4. Fix them in the model to_solr methods and update catalog_controller.rb as needed
  5. Reindex after changes

Acceptance criteria

  • All Solr fields use suffixes that match the data type being stored
  • all_text_timv resolved — removed, corrected, or at minimum documented with a TODO
  • No field type mismatches between models and schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions