PHP code example of daun / statamic-loupe
1. Go to this page and download the library: Download daun/statamic-loupe library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
daun / statamic-loupe example snippets
'drivers' => [
'loupe' => [
// Storage directory of Loupe's index database
'path' => storage_path('statamic/loupe'),
// Number of documents to process at once during indexing
// Helps to limit memory consumption at the cost of indexing speed
'chunk' => 100,
// Maximum number of words allowed in a search
// Higher values allow more complex queries but may impact performance
'max_query_tokens' => 10,
// Minimum word length to allow searching by prefix
'min_token_length_for_prefix_search' => 2,
// Languages to consider for detecting stemming language
// Not