sul-dlss / argo

The administrative discovery interface for Stanford's Digital Object Registry
Other
20 stars 5 forks source link

exact string match required for tags #686

Closed ndushay closed 7 months ago

ndushay commented 8 years ago

4 out of 5 of the reported desired search functionality issues for the argo 3 rollout (see #669) were about tag searching.

From Ben: "DPG staff have started to populate an example list with examples of old searches and desired results: https://docs.google.com/document/d/1h0wcEZ0SHsFnIcQ3tDmtojezJ8bw7DAMYaHASKLuuL0/edit "

case 1: DIGREQ-820 (also DIGREQ-916)
<identityMetadata>
  <sourceId source="sul">M1999_fb_55</sourceId>
  <objectId>druid:fg572cf3879</objectId>
...
  <tag>Project : Digitization Request</tag>
  <tag>JIRA : DIGREQ-820</tag>
<identityMetadata>
  <sourceId source="sul">BARCH_QH41_A4_F_V6</sourceId>
  <objectId>druid:bp318nw6601</objectId>
...
  <tag>Project : Special Collections - Exhibitions</tag>
  <tag>DPG : Exhibits : Beasts and Books</tag>
<identityMetadata>
  <sourceId source="sul">8050_56_1954</sourceId>
  <objectId>druid:bh303xg8617</objectId>
...
  <tag>Project : Stanford Publications</tag>
  <tag>DPG : Stanford Publications : Stanford Review</tag>
<mods>
  <note>Related collections at the Archive of Recorded Sound include
 the Stanford Recital Collection (ARS0021), Stanford Speech Collection (ARS0022), 
...
Stanford Marching Band Collection (ARS0089), 
the Transcription/Instantaneous Disc Collections and the Harold Schmidt Collection (unprocessed).</note>
<identityMetadata>
  <sourceId source="sul">ars0021_b119_19991206</sourceId>
  <objectId>druid:bb980rx0621</objectId>
...
  <tag>Project : ARS0021 recital : dat</tag>
ndushay commented 8 years ago

In argo3, tags are

Besides the workaround of using the exact string to match as a quoted search, some ideas:

ndushay commented 8 years ago

Argo 3 has edismax query parser in the config, but passes in defType=dismax.

module BlacklightConfigHelper
  def self.add_common_default_solr_params_to_config!(config)
    config.default_solr_params = {
      :'q.alt' => '*:*',
      :defType => 'dismax',

and uses these fields for qf, also configured somewhere in argo:

  "qf"=>"text^3
    creator_tesim
    dc_creator_tesim
    dc_identifier_druid_tesim
    dc_title_tesim
    dor_id_tesim
    extent_ssim
    identifier_tesim
    lifecycle_ssim
    obj_label_tesim
    obj_state_tesim
    originInfo_place_placeTerm_tesim
    originInfo_publisher_tesim
    public_dc_contributor_tesim
    public_dc_coverage_tesim
    public_dc_creator_tesim
    public_dc_date_tesim
    public_dc_description_tesim
    public_dc_format_tesim
    public_dc_identifier_tesim
    public_dc_language_tesim
    public_dc_publisher_tesim
    public_dc_relation_tesim
    public_dc_rights_tesim
    public_dc_subject_tesim
    public_dc_title_tesim
    public_dc_type_tesim
    scale_ssim
    source_id_ssim
    tag_ssim
    title_tesim
    topic_tesim",

(note dc stuff: YUCK)

ndushay commented 7 months ago

closed in favor of #4265