Flarum (2.x)
    Preparing search index...

    Class SearchManager<State>

    Type Parameters

    Index

    Constructors

    Properties

    gambits: GambitManager = ...

    The gambit manager that will convert search query gambits into API filters.

    state: State

    An object which stores previously searched queries and provides convenient tools for retrieving and managing search values.

    MIN_SEARCH_LEN: number = 3

    The minimum query length before sources are searched.

    SEARCH_DEBOUNCE_TIME_MS: number = 250

    Time to wait (in milliseconds) after the user stops typing before triggering a search.

    Methods

    • The minimum query length for the current forum. Experimental CJK search mode drops it to 1, since a single character is often a whole word in languages without word spaces; the substring match backing that mode has no minimum.

      Returns number