Skip to content

Case sensitive property name configuration#132

Open
jnus wants to merge 1 commit intodamienbod:masterfrom
jnus:CaseSensitive
Open

Case sensitive property name configuration#132
jnus wants to merge 1 commit intodamienbod:masterfrom
jnus:CaseSensitive

Conversation

@jnus
Copy link

@jnus jnus commented Jul 22, 2015

Changed default mapping of property names to case sensitive. Can be configured in ElasticsearchSerializerConfiguration ctor to enable lower case stategy on all property names. Implementation is as non-invasive as possible with the use of an extension method.

Example: configure lower case strategy

            return new ElasticsearchContext(
                                "http://localhost:9200/",
                                new ElasticsearchSerializerConfiguration(
                                                        CreateMappingResolver(date),
                                                        saveChildObjectsAsWellAsParent:true,
                                                        processChildDocumentsAsSeparateChildIndex:false,
                                                        userDefinedRouting:false,
                                                        mapToLowerCase:true)
                );

Example: configure case sensitive strategy (default)

            return new ElasticsearchContext(
                                "http://localhost:9200/",
                                new ElasticsearchSerializerConfiguration(
                                                        CreateMappingResolver(date))
                );

…igured in ElasticsearchSerializerConfiguration ctor to enable lower case stategy on all property names
@damienbod
Copy link
Owner

Hi Jasper, I am testing the pull branch and have noticed that the branch has a build problem and also that the Integration tests do not run because Elasticsearch indices have to be lowercase.

Greetings Damien

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants