Removed excerpt from beta search provider

no issue

- reverting this change for now as the benefit vs decreased result legibility wasn't high enough
This commit is contained in:
Kevin Ansfield 2024-06-13 17:03:41 +01:00
parent 59b304dfca
commit 048b67e574

View File

@ -28,20 +28,20 @@ export const SEARCHABLES = [
{ {
name: 'Posts', name: 'Posts',
model: 'post', model: 'post',
fields: ['id', 'url', 'title', 'excerpt', 'status', 'published_at', 'visibility'], fields: ['id', 'url', 'title', 'status', 'published_at', 'visibility'],
order: 'updated_at desc', // ensure we use a simple rather than default order for faster response order: 'updated_at desc', // ensure we use a simple rather than default order for faster response
pathField: 'id', pathField: 'id',
titleField: 'title', titleField: 'title',
index: ['title', 'excerpt'] index: ['title']
}, },
{ {
name: 'Pages', name: 'Pages',
model: 'page', model: 'page',
fields: ['id', 'url', 'title', 'excerpt', 'status', 'published_at', 'visibility'], fields: ['id', 'url', 'title', 'status', 'published_at', 'visibility'],
order: 'updated_at desc', // ensure we use a simple rather than default order for faster response order: 'updated_at desc', // ensure we use a simple rather than default order for faster response
pathField: 'id', pathField: 'id',
titleField: 'title', titleField: 'title',
index: ['title', 'excerpt'] index: ['title']
} }
]; ];