Skip to content

Conversation

@christophstrobl
Copy link
Member

We added methods to set values for $caseSensitive and $diacriticSensitive when using TextCriteria. Both operators are optional and will not be used until explicitly set.

// { "$text" : { "$search" : "coffee" , "$caseSensitive" : true } }
TextCriteria.forDefaultLanguage().matching("coffee").caseSensitive(true);

// { "$text" : { "$search" : "coffee" , "$diacriticSensitive" : true } }
TextCriteria.forDefaultLanguage().matching("coffee").diacriticSensitive(true);

…diacriticSensitive to $text.

Prepare issue branch.
…diacriticSensitive to $text.

We added methods to set values for $caseSensitive and $diacriticSensitive when using TextCriteria. Both operators are optional and will not be used until explicitly set.

    // { "$text" : { "$search" : "coffee" , "$caseSensitive" : true } }
    TextCriteria.forDefaultLanguage().matching("coffee").caseSensitive(true);
    
    // { "$text" : { "$search" : "coffee" , "$diacriticSensitive" : true } }
    TextCriteria.forDefaultLanguage().matching("coffee").diacriticSensitive(true);
Use static imports for org.junit.Assert and org.hamcrest.core.
mp911de pushed a commit that referenced this pull request Jul 12, 2016
…diacriticSensitive to $text.

We added methods to set values for $caseSensitive and $diacriticSensitive when using TextCriteria. Both operators are optional and will not be used until explicitly set.

    // { "$text" : { "$search" : "coffee" , "$caseSensitive" : true } }
    TextCriteria.forDefaultLanguage().matching("coffee").caseSensitive(true);

    // { "$text" : { "$search" : "coffee" , "$diacriticSensitive" : true } }
    TextCriteria.forDefaultLanguage().matching("coffee").diacriticSensitive(true);

Original pull request: #375.
mp911de pushed a commit that referenced this pull request Jul 12, 2016
Use static imports for org.junit.Assert and org.hamcrest.core. Fix spelling.

Original pull request: #375.
mp911de pushed a commit that referenced this pull request Jul 12, 2016
…diacriticSensitive to $text.

We added methods to set values for $caseSensitive and $diacriticSensitive when using TextCriteria. Both operators are optional and will not be used until explicitly set.

    // { "$text" : { "$search" : "coffee" , "$caseSensitive" : true } }
    TextCriteria.forDefaultLanguage().matching("coffee").caseSensitive(true);

    // { "$text" : { "$search" : "coffee" , "$diacriticSensitive" : true } }
    TextCriteria.forDefaultLanguage().matching("coffee").diacriticSensitive(true);

Original pull request: #375.
mp911de pushed a commit that referenced this pull request Jul 12, 2016
Use static imports for org.junit.Assert and org.hamcrest.core. Fix spelling.

Original pull request: #375.
@mp911de mp911de closed this Jul 12, 2016
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1455 branch October 30, 2017 10:17
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.

3 participants