documentation:technical:search_grammar
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:technical:search_grammar [2010/03/31 12:30] – adding modifier list miker | documentation:technical:search_grammar [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
Evergreen, in trunk as of March 2010 and for all versions after the 1.6 series, uses an advanced, configurable query parser for bibliographic searches. | Evergreen, in trunk as of March 2010 and for all versions after the 1.6 series, uses an advanced, configurable query parser for bibliographic searches. | ||
+ | |||
+ | How about ... some fun with examples! | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | * Search for records containing "harry potter":< | ||
+ | * Too easy? That were published after January 1, 2000:< | ||
+ | * We only care about the actual series:< | ||
+ | * And that are at our library:< | ||
+ | * And, sort those by pub date:< | ||
+ | * Descending (newest first):< | ||
+ | * How about some nested boolean action:< | ||
+ | * Phrase searches can be left-anchored: | ||
+ | * Phrase searches can also consider punctuation literally: < | ||
+ | * Speaking of facets, imagine a locally defined index definition in the keyword class called mat_type that indexes, say, 945$m, which is a local field holding bib-level " | ||
+ | * Browse all of your DVD mat_types sorted by author:< | ||
+ | * Find all available audio cassettes in your South West branch:< | ||
+ | * Get the bibs for all of your VHS and BetaMax items published during the 80s in one browse list ordered by their approximate purchase date:< | ||
=== Grammar === | === Grammar === | ||
Line 14: | Line 32: | ||
modifier_marker | modifier_marker | ||
phrase_boundary | phrase_boundary | ||
- | require-er | + | phrase_left_anchor |
+ | phrase_right_anchor | ||
+ | 1_word_phrase_marker | ||
negator | negator | ||
search_seperator | search_seperator | ||
Line 25: | Line 45: | ||
word_list | word_list | ||
negated_word | negated_word | ||
- | required_word | + | required_word |
- | phrase | + | phrase |
term := word | negated_word | required_word | phrase { whitespace term } | term := word | negated_word | required_word | phrase { whitespace term } | ||
Line 95: | Line 115: | ||
* **metabib** or **metarecord** -- Metarecord search, instead of direct bibliographic record search | * **metabib** or **metarecord** -- Metarecord search, instead of direct bibliographic record search | ||
* **staff** -- Staff search, which includes hidden records and non-transcendent records with no items or located URIs | * **staff** -- Staff search, which includes hidden records and non-transcendent records with no items or located URIs | ||
+ | * Cover density ranking algorithm tuning parameters, as described in the [[http:// | ||
+ | * **CD_logDocumentLength** | ||
+ | * **CD_documentLength** | ||
+ | * **CD_meanHarmonic** | ||
+ | * **CD_uniqueWords** | ||
+ | * **CD_logUniqueWords** | ||
+ | * **CD_selfPlusOne** | ||
+ | * **lucky** -- Return only the first hit, à la Google' | ||
+ | |||
+ | == Registered classes (from the stock config.metabib_class) == | ||
+ | * **keyword** -- Anywhere in the record except the physical description | ||
+ | * **title** -- Any abbreviated, | ||
+ | * **author** -- Any personal, corporate or conference author | ||
+ | * **subject** -- Any standard subject field. | ||
+ | * **series** -- Series title | ||
+ | * **identifier** -- Accession numbers, standard numbers (ISxN, UPC, EAN, etc), local call number strings, etc | ||
+ | |||
+ | == Registered search fields (from the stock config.metabib_field) == | ||
+ | ^ **class** ^ **name** ^ | ||
+ | |author|conference| | ||
+ | |author|corporate| | ||
+ | |author|other| | ||
+ | |author|personal| | ||
+ | |keyword|keyword| | ||
+ | |series|seriestitle| | ||
+ | |subject|complete| | ||
+ | |subject|geographic| | ||
+ | |subject|name| | ||
+ | |subject|temporal| | ||
+ | |subject|topic| | ||
+ | |title|abbreviated| | ||
+ | |title|alternative| | ||
+ | |title|proper| | ||
+ | |title|translated| | ||
+ | |title|uniform| | ||
+ | |identifier|isbn| | ||
+ | |identifier|issn| | ||
+ | |identifier|upc| | ||
+ | |identifier|ismn| | ||
+ | |identifier|ean| | ||
+ | |identifier|isrc| | ||
+ | |identifier|sici| | ||
+ | |identifier|bibcn| | ||
+ | |identifier|accession| | ||
+ | == Registered class and field aliases == | ||
+ | ^ **alias** | ||
+ | |au | author | ||
+ | |creator | ||
+ | |name | author | ||
+ | |kw | keyword | ||
+ | |se | series | ||
+ | |su | subject | ||
+ | |ti | title | | | ||
+ | |eg.author | ||
+ | |eg.name | ||
+ | |eg.keyword | ||
+ | |eg.series | ||
+ | |eg.subject | ||
+ | |eg.title | ||
+ | |bib.name | ||
+ | |bib.nameconference | ||
+ | |bib.namecorporate | ||
+ | |bib.namepersonal | ||
+ | |bib.namepersonalfamily | author | ||
+ | |bib.namepersonalgiven | ||
+ | |dc.contributor | ||
+ | |dc.creator | ||
+ | |bib.edition | ||
+ | |bib.genre | ||
+ | |bib.subjecttitle | ||
+ | |dc.identifier | ||
+ | |dc.publisher | ||
+ | |srw.serverchoice | ||
+ | |bib.titleseries | ||
+ | |bib.subjectname | ||
+ | |bib.subjectoccupation | ||
+ | |bib.subjectplace | ||
+ | |dc.subject | ||
+ | |bib.title | ||
+ | |bib.titleabbreviated | ||
+ | |bib.titlealternative | ||
+ | |bib.titletranslated | ||
+ | |bib.titleuniform | ||
+ | |dc.title | ||
+ | |id | identifier | ||
+ | |dc.identifier | ||
+ | |eg.isbn | ||
+ | |eg.issn | ||
+ | |eg.upc | ||
+ | |eg.callnumber | ||
+ | == Registered facet fields (from the stock config.metabib_field) == | ||
+ | ^ **class** ^ **name** ^ | ||
+ | |author|conference| | ||
+ | |author|corporate| | ||
+ | |author|other| | ||
+ | |author|personal| | ||
+ | |series|seriestitle| | ||
+ | |subject|geographic| | ||
+ | |subject|name| | ||
+ | |subject|temporal| | ||
+ | |subject|topic| | ||
+ | |
documentation/technical/search_grammar.1270053034.txt.gz · Last modified: 2022/02/10 13:33 (external edit)