Searching in eHRAF is built with Apache Solr. This page covers several example search queries you can use with regular searches for paragraphs. Note that Advanced Searches perform some of this functionality using an interface, and it isn’t possible to use this syntax in an Advanced Search form.
Consult Solr documentation for even more extensive ways to construct search queries.
Search based on specific metadata fields for documents. Note that field names are lower case.
title:initiationSearches for the word “initiation” in the title of the document.
title:initiation !maleSearches for the word “initiation” in the title where the word “male” is NOT present.
author:WhitingSearches for the primary author Whiting.
author:Whiting NOT BeatriceSearches for the author Whiting, but not Beatrice.
"environmental unpredictability"Searches have to match the phrase environmental unpredictability.
hypothesis:"environmental unpredictability"Searches have to match the phrase environmental unpredictability in the hypothesis field.
Hunt*Searches for all words that start with hunt such as hunting, hunter, etc.
Game?Searches for all words that have any one character after the word. Would match Game, Games, or Gamey
"unilocal unilineal"~5Finds occurrences where unilocal and unilineal appear within five words of each other.
"division labor"~3Finds occurrences where division and labor are within 3 words of each other.
Monroe~Searches for words based on the Levenshtein distance. Therefore, this search might find Munroe, the correct spelling, as it is of similar spelling.
culture~.2Specifies a required similarity between 0 and 1. The default is .5.
Boosting a search term
Note: boosting works best when sorting by Relevance
Matrilineal^5 kinshipThis search boosts the relevance of the word matrilineal.
author:"Bacon, Margaret K."^2 OR additional_authors:"Bacon, Margaret K."This search looks in the author field and additional authors field. However, the results prefer Barry III, Herbert as the primary author.
Searching for HRAF’s subject terms (OCMs)
ocm:342This search looks for the subject category from the Outline of Cultural Materials “Dwellings” which has the identifier 342 as a shorthand. Variables are tagged with OCMs.
ocm_terms:"puberty and initiation"Searches for the Outline of Cultural Materials term Puberty and Initiation. Note this is surrounded in quotes to match a phrase.
TO must be upper case.
pub_year:[2005 TO 2010]Searches studies published from 2005 to 2010
AND, OR, and NOT must be uppercase.
ocms:342 OR dwelling*Searches for the OCM 342 or the word dwelling or dwellings.
("division labor"~3) AND residenceCombines proximity match search with the word search for residence.