Skip to content
Language:DeutschEnglish Last updated: 2026-08-24

Search fields

Which fields the advanced search offers is configurable per archive. This is controlled via the settings searchfields (internal) and search_fields_extern (public) — the separation makes it possible to give outsiders fewer search options than the archive itself.

The complete list

The settings contain a JSON object. Anyone who only wants to add or remove individual fields is best off starting from the complete list. A given installation outputs it at the following address:

https://<own-installation>/admin/searchfields

The desired excerpt can be taken from there. The test installation can also serve as a reference.

Empty means default

If the setting is empty, Anton uses the built-in default. A custom JSON replaces it completely — it is not a supplement. Anyone who only wants to add one field should therefore take the whole list and add it there.

Relationship to the forms

The search fields are part of the form system: they sit in their own form sets for the internal and the public search. The label of a search field follows the same logic as with the forms — it can be overridden, otherwise the translation of the field name applies.

The advanced search is only one of three routes. The full-text search searches a combined index across all relevant fields and is not controlled via the search fields; the instant search has its own configuration.

Condensed full text (optimize_fulltext)

The stored full text can be condensed: Anton then throws away every repetition of a word and keeps only its first occurrence. That keeps the column small — in holdings with PDF full text, the document text is by far the largest part.

The price is phrase search. Condensing loses every adjacency of two words that did not already exist at their first occurrence: "rudolf leder" then only finds the record if the two words happened to stand together right there. Search for single words is unaffected.

Anyone changing the setting has to rebuild the index — what is stored condensed stays condensed, the setting only takes effect on writing:

php artisan anton:update-fulltext --env={slug}