TextSearchOptions.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Copyright 2015-present MongoDB Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. namespace MongoDB.Driver
  16. {
  17. /// <summary>
  18. /// Represents text search options.
  19. /// </summary>
  20. public class TextSearchOptions
  21. {
  22. // private fields
  23. private bool? _caseSensitive;
  24. private bool? _diacriticSensitive;
  25. private string _language;
  26. // public properties
  27. /// <summary>
  28. /// Gets or sets whether a text search should be case sensitive.
  29. /// </summary>
  30. public bool? CaseSensitive
  31. {
  32. get { return _caseSensitive; }
  33. set { _caseSensitive = value; }
  34. }
  35. /// <summary>
  36. /// Gets or sets whether a text search should be diacritic sensitive.
  37. /// </summary>
  38. public bool? DiacriticSensitive
  39. {
  40. get { return _diacriticSensitive; }
  41. set { _diacriticSensitive = value; }
  42. }
  43. /// <summary>
  44. /// Gets or sets the language for a text search.
  45. /// </summary>
  46. public string Language
  47. {
  48. get { return _language; }
  49. set { _language = value; }
  50. }
  51. }
  52. }