text4u
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default search index
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the search index that gets queried when performing
  9. | search functions without explicitly selecting another index.
  10. |
  11. */
  12. 'default' => env('STATAMIC_DEFAULT_SEARCH_INDEX', 'default'),
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Search Indexes
  16. |--------------------------------------------------------------------------
  17. |
  18. | Here you can define all of the available search indexes.
  19. |
  20. */
  21. 'indexes' => [
  22. 'default' => [
  23. 'driver' => 'local',
  24. 'searchables' => 'all',
  25. 'fields' => ['title'],
  26. ],
  27. // 'blog' => [
  28. // 'driver' => 'local',
  29. // 'searchables' => 'collection:blog',
  30. // ],
  31. ],
  32. /*
  33. |--------------------------------------------------------------------------
  34. | Driver Defaults
  35. |--------------------------------------------------------------------------
  36. |
  37. | Here you can specify default configuration to be applied to all indexes
  38. | that use the corresponding driver. For instance, if you have two
  39. | indexes that use the "local" driver, both of them can have the
  40. | same base configuration. You may override for each index.
  41. |
  42. */
  43. 'drivers' => [
  44. 'local' => [
  45. 'path' => storage_path('statamic/search'),
  46. ],
  47. 'algolia' => [
  48. 'credentials' => [
  49. 'id' => env('ALGOLIA_APP_ID', ''),
  50. 'secret' => env('ALGOLIA_SECRET', ''),
  51. ],
  52. ],
  53. ],
  54. /*
  55. |--------------------------------------------------------------------------
  56. | Search Defaults
  57. |--------------------------------------------------------------------------
  58. |
  59. | Here you can specify default configuration to be applied to all indexes
  60. | regardless of the driver. You can override these per driver or per index.
  61. |
  62. */
  63. 'defaults' => [
  64. 'fields' => ['title'],
  65. ],
  66. ];