The question now becomes, whatever this would become a RavenDB feature, vs. just an option that you can use.
And if it is a builtin feature, how do we expose it?
{ public Users_ByName() { Map = users => from user in users select new { FirstName = user.FirstName.WithSubstringSearches(), user.LastName }; }
}
Or would that cause problems if you want to do both, i.e. FirstName..Boost(3).WithSubstringSearches()?
// Ryan
using (var session = store.OpenSession()) { session.Store(new Image { Id = "1", Name = "Great Photo buddy" }); session.Store(new Image { Id = "2", Name = "Nice Photo of the sky" }); session.SaveChanges(); } store.DatabaseCommands.PutIndex("test", new IndexDefinition { Map = "from doc in docs.Images select new { doc.Name }", Indexes = { { "Name", FieldIndexing.Analyzed_Fragmented } } }); using (var session = store.OpenSession()) { var images = session.Query<Image>("test") .Customize(x => x.WaitForNonStaleResults()) .Search(x => x.Name, "Phot") .ToList(); Assert.NotEmpty(images); }