RavenDB allows user to manually create and use indexes. These indexes explicitly created are called static indexes or named indexes. A static index allows the use of one or more Map
functions. It may include a Reduce
function and/or a Transform
function. These functions will specify what to retrieve from the server and will be defined using the regular Linq expressions.
Static indexes are more efficient than dynamic indexes. Since dynamic indexes are created on the fly on first user query and are created as temporary indexes, this might be a performance issue on first run. Also, static indexes expose more functionality such as custom sorting, boosting, Full Text Search, Live Projections, spatial search support, and more.
So far we have created some queries so far to retrieve data from the RavenDB server using Linq expression. This can be used the same way to sort or aggregate data and to query specific fields in a document. When using indexes to aggregate data, there...