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.

91 lines
3.0 KiB

1 month ago
  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', 'algolia'),
  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', true),
  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. | Algolia Configuration
  66. |--------------------------------------------------------------------------
  67. |
  68. | Here you may configure your Algolia settings. Algolia is a cloud hosted
  69. | search engine which works great with Scout out of the box. Just plug
  70. | in your application ID and admin API key to get started searching.
  71. |
  72. */
  73. 'algolia' => [
  74. 'id' => env('ALGOLIA_APP_ID', ''),
  75. 'secret' => env('ALGOLIA_SECRET', ''),
  76. ],
  77. ];