ayende/ravendb — pull request #253 by mj1856 (2013-02-12 02:16:15+00:00)
Title: Add conventions for custom range and sort options

When registering a custom query value converter, I need a way to specify what the default sort option is, and whether the "_Range" fields are created.

I am working on a contrib project to add support for NodaTime to the raven client, and I need this for types like `Duration` and `Offset` which will mimic the functionality of `TimeSpan` in raven. For example:

documentStore.Conventions.RegisterQueryValueConverter(CustomQueryValueConverters.DurationConverter, SortOptions.Long, true);