链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.5 KiB

  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Search Engine
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default search connection that gets used while
  9. | using Laravel Scout. This connection is used when syncing all models
  10. | to the search service. You should adjust this based on your needs.
  11. |
  12. | Supported: "algolia", "null"
  13. |
  14. */
  15. 'driver' => env('SCOUT_DRIVER', 'Matchish\ScoutElasticSearch\Engines\ElasticSearchEngine'),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Index Prefix
  19. |--------------------------------------------------------------------------
  20. |
  21. | Here you may specify a prefix that will be applied to all search index
  22. | names used by Scout. This prefix may be useful if you have multiple
  23. | "tenants" or applications sharing the same search infrastructure.
  24. |
  25. */
  26. 'prefix' => env('SCOUT_PREFIX', ''),
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Queue Data Syncing
  30. |--------------------------------------------------------------------------
  31. |
  32. | This option allows you to control if the operations that sync your data
  33. | with your search engines are queued. When this is set to "true" then
  34. | all automatic data syncing will get queued for better performance.
  35. |
  36. */
  37. 'queue' => env('SCOUT_QUEUE', false),
  38. /*
  39. |--------------------------------------------------------------------------
  40. | Chunk Sizes
  41. |--------------------------------------------------------------------------
  42. |
  43. | These options allow you to control the maximum chunk size when you are
  44. | mass importing data into the search engine. This allows you to fine
  45. | tune each of these chunk sizes based on the power of the servers.
  46. |
  47. */
  48. 'chunk' => [
  49. 'searchable' => 500,
  50. 'unsearchable' => 500,
  51. ],
  52. /*
  53. |--------------------------------------------------------------------------
  54. | Soft Deletes
  55. |--------------------------------------------------------------------------
  56. |
  57. | This option allows to control whether to keep soft deleted records in
  58. | the search indexes. Maintaining soft deleted records can be useful
  59. | if your application still needs to search for the records later.
  60. |
  61. */
  62. 'soft_delete' => false,
  63. /*
  64. |--------------------------------------------------------------------------
  65. | Identify User
  66. |--------------------------------------------------------------------------
  67. |
  68. | This option allows you to control whether to notify the search engine
  69. | of the user performing the search. This is sometimes useful if the
  70. | engine supports any analytics based on this application's users.
  71. |
  72. | Supported engines: "algolia"
  73. |
  74. */
  75. 'identify' => env('SCOUT_IDENTIFY', false),
  76. /*
  77. |--------------------------------------------------------------------------
  78. | Algolia Configuration
  79. |--------------------------------------------------------------------------
  80. |
  81. | Here you may configure your Algolia settings. Algolia is a cloud hosted
  82. | search engine which works great with Scout out of the box. Just plug
  83. | in your application ID and admin API key to get started searching.
  84. |
  85. */
  86. 'algolia' => [
  87. 'id' => env('ALGOLIA_APP_ID', ''),
  88. 'secret' => env('ALGOLIA_SECRET', ''),
  89. ],
  90. ];