Search Store (Full Text)
Description
Full-text search providers register through IFlexSearchStore. Your application code stays provider-agnostic while the selected provider handles indexing and query execution.
Infrastructure arrangement
When you add a full-text search provider through Flex Studio, Flex generates the provider infrastructure and configuration:
Provider files under
Infrastructure/Providers/{YourApplication}.DataStoreProviders/Search/{Provider}/Default configuration under
Application/EndPoints/{YourApplication}.EndPoint.CommonConfigs/AppSettings/DataStores/Search/{Provider}.json
Flex auto-wires generated Queries/Handlers/Plugins that use IFlexSearchStore—you only register the provider.
Configuration in DI
Register only the provider search store you need.
// Pick ONE provider.
services.AddFlexSqlServerSearchStore(configuration);
// services.AddFlexPostgreSqlSearchStore(configuration);
// services.AddFlexElasticsearchStore(configuration);appsettings.json
Full-text search configuration is read from FlexBase:DataStores:Search:<Provider>.
Sample usage ({YourApplication})
Provider pages
SQL Server:
search-store-full-text/sql-server-full-text-search.mdPostgreSQL:
search-store-full-text/postgre-sql-full-text-search.mdElasticsearch:
search-store-full-text/elastic-search.md
Provider considerations
Use full-text search for keyword-based scenarios (known terms, filters, “contains” style queries).
If you need provider-specific SQL fragments, use
ProviderSqlMapinside generated plugins/queries.For semantic search, use the Vector Store and keep full-text as a complementary filter.
Last updated