Question

I "accidentally" had some documents stored in RavenDB with all the properties camel-cased because of a setting made with the json serializer ( json.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); ).

Now I'm storing new documents using Pascal-casing. Can I search for documents ignoring case of the property name?

Eg.

Old document format:
{
  name : "foo",
  someStuff : "buzz"
}

New document format:
{
  Name : "bar",
  SomeStuff : "baz"
}

Thanks!

Was it helpful?

Solution

You would need to use the LuceneQuery to manually set the property name for the query.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top