ravendb/ravendb — pull request #470 by e-tobi (2012-03-12 14:54:41+00:00)
Title: Escape search queries excecuted from Linq

Doing e.g. a Query.Search(x => x.Name, "-") will throw a Lucene exception. RavenDB.Net suffers from the same issue (Just enter "-" as the search term)

Please note that this fixes the issue only with the Linq-API, not with LuceneQuery<>.Search(). According to Raven.Tests.Querying.DynamicLuceneQuery it seems to accept lucene query terms with e.g. a "~" for fuzzy searching.