1000 facet limit on Faceted Browse

Hello all, I have a peculiar little question. It has come to our attention that with the 1.10.0 release of Faceted Browse the table of facets now caps at 1000. Just curious if that was addressing a specific issue and/or if that is a hard and fast limit or if there is some way we can work around it.

We became aware of the limit initially through experimenting with a bit unorthodox use of faceted browse that’s not important, but for our website Stories of Humanity we do have an instance of a facet that lists individuals named in various Holocaust correspondence and items and this facet exceeds the 1000 limit.

Obviously that many facets is not particularly ideal and we are futzing about with the Solr module and are considering alternatives to Faceted Browse for this and other sites going forward and that might ultimately be the answer. But for now we are just going to refrain from updating the Faceted Browse module until we figure out our next step and would appreciate any thoughts on how we could navigate this issue.

Thanks!

Hi ckoch,

The 1000 cap only applies to the “Show available values” table in the facet sidebar, and to “Add all,” which copies from that table. It doesn’t limit how many values a facet can have: a facet shows everything in its Values field, however long the list.

We added the cap in 1.10.0 because that table’s query had no limit, and on properties with many distinct values it could run out of memory ( "Show all available..." can result in out of memory error · Issue #9 · omeka-s-modules/FacetedBrowse · GitHub ).

Updating to 1.10.0 won’t change your existing facet; it keeps all its values. Just be aware that “Add all” replaces the Values field with the table’s rows (at most 1000), so don’t save the facet after using it. To add more values, paste them into the Values field, one per line.

To raise the cap, you could change the SHOW_ALL_LIMIT constant in src/Controller/SiteAdmin/CategoryController.php. Updates will overwrite the change, though.

1 Like