We will query the TotalOrdersPerCustomer
index and will apply a query expression to filter the index result using the Lucene
syntax query.
In the Management Studio, select the Indexes tab to display the Indexes screen.
Click on the
TotalOrdersPerCustomer
index to query it and display results in the Query Index Screen.In the Query area, enter the following code snippet:
CustomerId: A54309
Click on the Execute button to show the results of the query.
We queried the TotalOrdersPerCustomer
index and filtered the query result.
Once the result was displayed, we wrote a Lucene
query expression to filter that result and display all documents which matched the CustomerID = A54309
.
The query engine will search index result documents collection in the CustomerId
field matching the value we have specified. Think of it as the "where" clause parameter...