Common Solr Fields For All Knowledge Maps

THL Toolbox > Developers' Zone > Ruby on Rails Development > Common Solr Fields for All Knowledge Maps

Common Solr Fields for Knowledge Maps for Subjects, Places and Terms

Contributor(s): Andres Montano

Here you will find what is common to all knowledge maps. Remember to see documentation for subdocuments and fields specific to each dictionary:

Main Document

  • code_{code type}_value_s: code value. Code types are per app basis and are supported in all apps, but only actually used in Places Dictionary. For a list of codes see external link: http://places.kmaps.virginia.edu/admin/geo_code_types
  • code_{code type}_citation_{citation fields}: prefix of citation data for code value. See citation section for all fields.
  • code_{code type}_time_units_ss: array of time units for code value formatted as a string. Tag would be avaiable if array is not empty.
  • code_{code type}_note_{note id}_{note fields}: prefix of note data for code value. See note section for all fields

Subdocuments

Names

  • id: {uid of current}_names-{name id}
  • origin_uid_s: {uid of current}
  • block_child_type: ['related_names']
  • related_names_id_s: {uid of current}_names-{name id} (same as id)
  • related_names_header_s: name
  • related_names_path_s: path in the form of "{name id of grandparent}/{name id of parent}/{name id of current}" (for however many levels there are). This can be used to build tree for names.
  • related_names_level_i: size of path
  • related_names_language_s: language for name
  • related_names_relationship_s: string representing relationship of name to parent (what kind of phonetic, orthographic or alt spelling relationship).
  • block_type: ['child']
  • related_names_citation_{citation fields}: prefix of citation data for name. See citation section for all fields.
  • related_names_time_units_ss: array of time units for name formatted as a string. Tag would be avaiable if array is not empty.
  • related_names_note_{note id}_{note fields}: prefix of note data for name. See note section for all fields
  • related_names_relationship_{relationship id}_citation_{citation fields}: prefix of citation data for parent name relation. See citation section for all fields.
  • related_names_relationship_note_{note id}_{note fields}: prefix of note data for name relation. See note section for all fields
  • related_names_etymology_s: etymology of name if available, else tag won't be included.
  • related_names_writing_system_s: name of writing system.
  • related_names_writing_system_code_s: code of writing system.

Specific Sections

Note fields

  • {prefix}_note_{note id}_title_s: title note if available, else tag won't be included.
  • {prefix}_note_{note id}_authors_ss: array of author names. Tag would be avaiable if array is not empty.
  • {prefix}_note_{note id}_content_t: content of note

Citation fields

  • {prefix}_citation_references_ss: array of citations for caption formatted as a string. Tag would be avaiable if array is not empty.
  • {prefix}_citation_{citation id}_note_t: content of note for specific citation if available, else tag won't be included.
  • {prefix}_citation_{citation id}_reference_s: if there is a citation note this is the respective citation, else tag won't be included.

Provided for unrestricted use by the external link: Tibetan and Himalayan Library