-
Book Overview & Buying
-
Table Of Contents
RavenDB 2.x Beginner's Guide
By :
You will create your first Index using the Management Studio's Indexes screen.
In the Management Studio, select the Indexes tab and click on it to display the Indexes screen.
Click on the New Index button in the toolbar to open the Edit Index screen.
Name the new index TotalOrdersPerCustomer.
In the Maps section, enter the following code snippet:
from order in docs.Orders
select new {CustomerId = order.CustomerId,TotalCost = order.Units * order.UnitCost}Click on the Save Index button to save the index which will appear in the available indexes list.
The Management Studio will not save the index if it detects an error in the LINQ query.
Click on the Indexes link to return to the Indexes screen.

We created our first index named TotalOrdersPerCustomer using the Management Studio. This index contains, for now, a single Map function which is a LINQ query that returns a two-column dataset, one of which is a calculated column.
The first column...
Change the font size
Change margin width
Change background colour