Azure
Docs HomeProduct SiteSupport
  • WireBootstrap for Azure Search
  • Installation
  • Data Connector
  • Query Extensions
  • Filter Component
    • Configuration
Powered by GitBook
On this page

Query Extensions

PreviousData ConnectorNextFilter Component

Last updated 3 years ago

Query extensions are methods added to that make easier to create.

To create a search query, use the standard convention for specifying the fields to return. Use the extension methods search and facet to specify the search keyword(s) and facets to return.

const query = wire.data.select("number","street","city","region","countryCode")
     .search("*")
     .facet("type")
     .facet("status"); 

Once the query is created, execute it against the search service. The results will be returned in a standard .

...
const table = await source.execAsync(query);

Suggestions

Use suggestion queries to return search results for type-ahead or auto-complete user interface components. These queries use .

To create suggestion queries, use the suggest extension method.

const query = wire.data.select().suggest("chicago");
const table = await source.execAsync(query);

standard WireBootstrap select queries
faceted search queries
WireBootstrap DataTable
suggestion requests in Azure Search