In Nuxt Content, you can search your content thanks to the experimental feature called ContentSearch.
first you have to enable this option in your nuxt.config.ts
export default defineNuxtConfig({
content: {
experimental: {
search: true
}
}
})
and then use it in your components
<script lang="ts" setup>
const search = ref('')
const results = searchContent(search)
</script>
<template>
<main>
<input v-model="search">
<pre>{{ results }} </pre>
</main>
</template>