Wednesday, December 6, 2017¶
Now I finally finished what I started on Monday ago: #1696 (Site-wide global search) and its child #1792 (quick search with several words) are now done. (Of course there are more optimizations to come). Summary of changes:
A new model class attribute
lino.core.model.Model.show_in_site_searchwhich can be set to False if you really don’t want a model to occur in the site-wide search.
For models with no char field at all (
lino_xl.lib.ledger.MatchRule), Lino returned always all objects, independently of what you entered as earch text.
quick_searchcontains more than one word, Lino now returns rows which contain all words, but does not require them to be in the given order.
I started a new specs page search : Add search functionality.
lino.core.model.Model.quick_search_fields_digit attributes are
now tuples of field descriptor objects (no longer frozenset of field