Home | Resources | Services | Hosting | Publications | Collaboration | Joining CERL | About CERL |

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
resources:cerl_thesaurus:editing:indexing [2018/03/23 15:57] – [Table] jahnkeresources:cerl_thesaurus:editing:indexing [2018/03/23 16:19] – [Query Syntax] jahnke
Line 61: Line 61:
 |name_display_line|name of the entity| |name_display_line|name of the entity|
  
 +===== Query Syntax =====
 +Search fields of the type **string** (except those ending in ''.orig'') are word indexed, case-insensitive and diacritics are replaced by the base character. They can be searched by just typing the search term after the search key's name, separated by a colon:
 +
 +  * ''name:hamburg'' the term //hamburg// should appear in the //name:// field
 +  * ''personalName:(visser jacob)'' the terms //visser// and //jacob// should appear in the //personalName:// field in any order, regardless if adjacent or not
 +  * ''imprintName:"sermartelli e fratelli"'' the terms //sermartelli e fratelli// should appear in the //imprintName:// field in exactly this order
 +
 +The fields named **.orig** contain the original field's content as a phrase,  case-sensitive, diacritics are not replaced:
 +  * ''imprintName.orig:"Bartolommeo Sermartelli e fratelli, Firenze"''
 +
 +Search fields of the type **date** allow for range searches:
 +
 +  * ''last_changed:[2017-05-1 TO 2017-05-31]'' all records that have last been edited //in May 2017//
 +  * ''year_start:<1600'' all entities that were born or started their activity //before the year 1600//.
 +
 +Search terms can be combined by using the **Boolean Operators** ''AND'', ''OR'' and ''NOT''. Please note that these must always be written in upper case.
 +
 +  * ''year_start:<1600 AND feature:prdv'' all records where the activity/birth date is before 1600 and that contain descriptions of printers devices
 +  * ''name:sermartelli AND name:(bartolomeo OR michelangelo)'' all records where the name field contains //Sermartelli// and either //Bartolomeo// or //Michelangelo//.
 +
 +**Truncation/Wildcards** can be used as well. Please that using wildcards will slow down the response time remarkably.
 +
 +  * ''?'' replaces exactly one character
 +  * ''*'' replaces any number or characters including zero
 +
 +A more detailed description of the query syntax can be found here: https://www.cheatography.com/jelle/cheat-sheets/elasticsearch-query-string-syntax/
 ===== Searching Relationships ===== ===== Searching Relationships =====
 A number of the search keys listed above allow to retrace the relationship between the entities described in the CERL Thesaurus. It is assumed that one part of the relationship is known, e.g. a person or a place and using this person's or place's id, we can retrieve the records that link back to it. A number of the search keys listed above allow to retrace the relationship between the entities described in the CERL Thesaurus. It is assumed that one part of the relationship is known, e.g. a person or a place and using this person's or place's id, we can retrieve the records that link back to it.
 resources/cerl_thesaurus/editing/indexing.txt · Last modified: 2020/01/23 09:09 by jahnke

 

 

Recent changes RSS feed Valid XHTML 1.0 Driven by DokuWiki