Lucene's indexes

March 8, 2007


Index Lucene
Author Keyword 100

110

111

700 (subfields before $t)

710 (subfields before $t)

711 (subfields before $t)

720

800 (subfields a,b,c,d & q)

810 (subfields a,b,c,d & q) 811 (subfields a,b,c,d & q)

880$6

[Where there is no other field populated, the 245 $c is also indexed.]

Author Exact 100

110

111

700 (subfields before $t)

710 (subfields before $t)

711 (subfields before $t)

720

800 (subfields a,b,c,d & q)

810 (subfields a,b,c,d & q) 811 (subfields a,b,c,d & q)

880$6

[Where there is no other field populated, the 245 $c is also indexed.]

Title Keyword 130

210

222

240

242

245

246

247

440 (except $x and $v)

490 (except $x and $v)

700 ($t onwards)

710 ($t onwards)

730

740

810 ($t onwards)

811 ($t onwards)

830

880 $6

Title exact 245$a

245$b

(These fields are indexed twice, one with and once without stop words).

Subject keyword 600-199 inclusive1

752

754

880$6

Genre, format and form indexes


The genre, format and form indexes are computed somewhat differently. They are extracted from the leader and the 008 fields, as below:

Genre

[There is a single index called genre in the Lucene prototype. The index records what is in the leader, and turns that into an appropriate term, such as biography or trombone, for details see below.]

Biography: 008/34

006/17

006

008

Literary form: 008/33

006/16

Form of item: 008/23

008/29

006/06

006/12

Form of music composition 008/18-19

006/01-02

Nature of content: 008/24-27

006 7-10



The Lucene prototype then creates an index in this way:

Processing of the leader and 008

- If (ldr/06) =

- 'a':

set audience from 008/22

set form from 008/23

set nature of contents from 008/24,25,26,27

set literary form from 008/33

set biography from 008/34

- d':

set :genre: "manuscript"

set :genre: "notated music"

set music format from 008/20

set form of composition from 008/18, 19, 20

- 'c':

set :genre: "notated music"

set music format from 008/20

set form of composition from 008/18-19

- 'f'

set :genre: "manuscript"

set :genre: "cartographic material"

set form from 008/29

- 'e'

set :genre: "cartographic material"

set form from 008/29

- 'g'

set :genre: "video"

set audience from 008/22

set form from 008/29

- 'i'

set :genre: "nonmusical sound recording"

- 'j':

set :genre: ""musical sound recording"

set music format from 008/20

set form of composition from 008/18-19

set audience from 008/22

set form from 008/23

- 'k'

set :genre: "graphic"

set audience from 008/22

set form from 008/29

- 'm'

set :genre: "computer file"

set audience from 008/22

set form from 008/29

- 'o'

set :genre: "kit"

- 'p'

set :genre: "mixed material"

set form from 008/23

- 'r'

set :genre: "3d object"

- 't'

set :genre: "manuscript"

Then,

Setting the audience:

if 008/22 is a, b, c, d or j set index :audience: = "juvenile"

Setting the form:

if 'a': set :genre: "microfilm"

if 'b': set :genre: "microfiche"

if 'c': set :genre: "microopaque"

if 'd': set :genre: "large print"

if 'f': set :genre: "braille"

if 's': set :genre: "electronic"

Setting the literary form:

if '0': set :genre: "non fiction"

if '1': set :genre: "fiction"

if 'c': set :genre: "comic strip"

if 'd': set :genre: "drama"

if 'e': set :genre: "essay"

if 'f': set :genre: "novel"

if 'h': set :genre: "humor, satire"

if 'i': set :genre: "letter"

if 'j': set :genre: "short story"

if 'm': set :genre: "mixed form"

if 'p': set :genre: "poetry"

if 's': set :genre: "speech"

Setting the biography:

if 'a': set :genre: "autobiography"

if 'b': set :genre: "biography"

if 'c': set :genre: "biography"

if 'd': set :genre: "biography"

Setting the nature Of contents:

if 'a': set :genre: "abstract"

if 'b': set :genre: "bibliography"

if 'c': set :genre: "catalog"

if 'd': set :genre: "dictionary"

if 'e': set :genre: "encyclopedia"

if 'f': set :genre: "handbook"

if 'g': set :genre: "legal article"

if 'i': set :genre: "index"

if 'j': set :genre: "patent"

if 'k': set :genre: "discography"

if 'l': set :genre: "legislation"

if 'm': set :genre: "theses"

if 'n': set :genre: "literature survey"

if 'o': set :genre: "review"

if 'p': set :genre: "programmed text"

if 'q': set :genre: "filmography"

if 'r': set :genre: "directory"

if 's': set :genre: "statistics"

if 't': set :genre: "technical report"

if 'u': set :genre: "standard/specification"

if 'v': set :genre: "legal if"

if 'w': set :genre: "law report"

if 'z': set :genre: "treaty"

Setting the form of composition

set :genre: based on the code (see http://www.loc.gov/marc/bibliographic/ecbd008s.html#mrcb008m )

Setting the music format:

if 'a': set :genre: "full score"

if 'b': set :genre: "full score, miniature or study size"

if 'c': set :genre: "accompaniment reduced for keyboard"

if 'd': set :genre: "voice score"

if 'e': set :genre: "condensed score or piano-conductor score"

if 'g': set :genre: "close score"

if 'm': set :genre: "multiple score format"