Indexing Using Lucene

Lucene can be used as the collection indexer instead of MG/MGPP. You can select Lucene in GLI from the Search part of the Design Pane.

See the Searching page for more information about the differences between MG, MGPP and Lucene.

Editing the collection's configuration file

Many of the advanced features for Lucene searching are not yet available in GLI, but require you to edit the collection's configuration file directly. Please make sure that GLI does not have your collection open before modifying the configuration file, otherwise GLI will overwrite your changes when it saves the file.

Sorting search results

Lucene indexes can sort search results based on fields indexed. In 2.85 and 3.05, search result sort options were based on the indexes specified. If a collection had text, Title and Subject indexes, then the search results could be sorted by Title and Subject. Text and allfields indexes were ignored for sorting purposes.

For 3.06 and 2.86 and onwards, the list of search sort options is now specified separately to the list of indexes. For example, searching can be offered on Titles and Subjects, with sorting by Date and Author. The user is also now offered the option of ascending/descending sort order.

If you are searching at section level, then you may want the sections to inherit document level metadata for sorting purposes. For example, if each document has a Date, and you want to sort search results by Date, then each section needs to be given that date in the index. The build option sections_sort_on_document_metadata controls this inheritance. It is just like the indexing option sections_index_document_metadata, but is used with the sort fields.

The possible values for this option are

never don't include document metadata for the section
always include documet level metadata in the section
unless_section_metadata_exists include document metadata only if there is not already a value at the section.

GLI has not been updated yet to offer a graphical interface for search result sorting, so you will need to edit the collection configuration file by hand (see above).