Skip to content

Instantly share code, notes, and snippets.

@ayende
Created July 11, 2012 10:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayende/3089405 to your computer and use it in GitHub Desktop.
Save ayende/3089405 to your computer and use it in GitHub Desktop.
results = RavenSession.Query<Suppliers_QueryIndex.ReduceResult, Suppliers_QueryIndex>()
.Where(x => x.LocationName == location)
.Search(x => x.Query, string.Join(" ", suggestions))
.Search(x => x.Query, term +"*")
.Take(5 - ravenResults.Count)
.As<Supplier>()
.ToList();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment