github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/chat/search/constants.go (about)

     1  package search
     2  
     3  import "time"
     4  
     5  const defaultPageSize = 300
     6  const MaxAllowedSearchHits = 10000
     7  
     8  // Only used by RegexpSearcher
     9  const MaxAllowedSearchMessages = 100000
    10  
    11  // Paging context around a search hit
    12  const MaxContext = 15
    13  
    14  const (
    15  	// max convs to sync in the background
    16  	maxSyncConvsDesktop = 50
    17  	maxSyncConvsMobile  = 5
    18  
    19  	// tokenizer
    20  	maxPrefixLength = 10
    21  	MinTokenLength  = 3
    22  
    23  	// delay before starting SelectiveSync
    24  	startSyncDelayDesktop = 10 * time.Second
    25  	startSyncDelayMobile  = 30 * time.Second
    26  )