Add AOT queries to the Search configuration
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
This topic describes how to add a new query for the Microsoft Dynamics AX Application Object Tree (AOT) to the Search configuration. After you add one or more queries to the Search configuration, you can publish the configuration so that the underlying database tables are indexed for Search.
Before you begin
Before you configure AOT queries for Search, read Enterprise Search security and protection to learn about restrictions for certain kinds of queries and database tables.
Add a new query to Search
In the AOT, expand the Queries node.
Select a query to add to the Search configuration.
In the Properties pane, click Searchable, and then click Yes in the list.
Right-click the query, click Add-ins, and then click Check best practices. Verify that there are no best practice errors. If there are errors, the query might not be configurable for Search. Review the errors to learn more.
After you have configured queries for Search, update caches so that the changes are available in the Search Configuration Wizard. In the AOT, click the Tools menu, click Caches, and then click Refresh elements.
Update the Search Crawler role
When you install Enterprise Search, the domain account that is assigned the Search Crawler role in Microsoft Dynamics AX is configured to have read-only permissions for queries that are configured for Search. When you configure new queries for Search, you must reset the permissions of the Search Crawler role to read-only for all searchable entities.
Click System administration > Setup > Search > Update search crawler role.
The queries that you configured for Search are now ready to be published to the SharePoint Business Data Connectivity service. To publish the queries, you use the Search Configuration Wizard. After the queries are published to SharePoint, they are indexed, so that users can view results when they search in the Microsoft Dynamics AX client or Enterprise Portal for Microsoft Dynamics AX. For information about how to publish queries to SharePoint, see Configure Enterprise Search by using the Search Configuration wizard.