Agent Builder ContentSearchSpec Error

https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/ContentSearchSpec

Currently, an error occurred while using discovery engine.SearchRequest to develop a search app.

Error msg: ContentSearchSpec can only be set in a SearchRequest searching against content search enabled DataStore.

My DataStore was created as a Structured Content (Media) item,

Can we not use ContentSearchSpec for the data store in Structured Content (Media)?

Hi @lcm,

Welcome to Google Cloud Community!

The error message you’re seeing means that your current DataStore, which was created as a Structured Content (Media) item, does not have content search enabled hence ContentSearchSpec may not be used for the data store in Structured Content (Media).

Structured Content (Media) DataStores are designed for storing and retrieving structured media like images, audio, or video. They are optimized for these types of files and may not have the indexing and search capabilities built-in for text-based content search.

Content Search is a feature that needs to be explicitly enabled on a DataStore. It allows you to index and search textual content within your data, which is not a primary function of a media-focused DataStore.

I hope the above information is helpful.