Skip to content
Discussion options

You must be logged in to vote

Just came back to it. So far it works for me with a named index created on server (re)start:

const start = async () => {
	// ...somewhere after payload itself has been initialized

	payload.db.collections['items'].schema.index(
		{ title: 'text', description: 'text' },
		{
			name: 'fulltext_1',
			...
		}
	)
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Raigato
Comment options

@pooledge
Comment options

Answer selected by Raigato
@deep-1241
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants