Files
payloadcms/test
Paul 2bc8666bff feat(plugin-search)!: make search collection fields override into a function that provides defaultFields inline with other plugins (#7095)
searchPlugin's searchOverrides for the collection now takes in a fields
function instead of array similar to other plugins and patterns we use
to allow you to map over existing fields as well if needed.

```ts
// before
searchPlugin({
  searchOverrides: {
    slug: 'search-results',
    fields: [
      {
        name: 'excerpt',
        type: 'textarea',
        admin: {
          position: 'sidebar',
        },
      },
    ]
  },
}),

// current
searchPlugin({
  searchOverrides: {
    slug: 'search-results',
    fields: ({ defaultFields }) => [
      ...defaultFields,
      {
        name: 'excerpt',
        type: 'textarea',
        admin: {
          position: 'sidebar',
        },
      },
    ]
  },
}),
```
2024-07-10 15:22:12 +00:00
..
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-07-09 09:50:37 -04:00
2024-05-25 15:45:05 +00:00
2024-04-09 09:34:11 -04:00
2024-07-09 09:50:37 -04:00