sul-dlss / cocina-models

Cocina repository data model (implemented in Ruby)
https://sul-dlss.github.io/cocina-models/
3 stars 0 forks source link

method to get main_title #653

Closed ndushay closed 9 months ago

ndushay commented 9 months ago

part of sul-dlss/dor_indexing_app/issues/1075

We want to be able to boost relevancy in Argo if there is an exact match on the short main title, akin to the 245a boosting in SearchWorks relevancy:

from sul-dlss/sul-solr-configs/blob/master/searchworks-prod/solrconfig.xml:

      <str name="qf">
        title_245a_exact_search^1000
        title_245a_unstem_search^500
        title_245a_search^75           vern_title_245a_search^75
        title_245_unstem_search^75
        title_245_search^50            vern_title_245_search^50

To distinguish between the short main title, 245a, and the full main title, I got this spec from Arcadia:

"245a = title.structuredValue.value with type 'main title' (or just title.value), 245b = title.structuredValue.value with type 'subtitle'; if there are multiple titles, the 245 should have status 'primary' or at least be first"