case

Purpose

Finds documents that contain case-sensitive occurrences of arguments.

Syntax

case([cap_type,] term, term…​)

Example

case(Bill) matches word "bill" in titlecase ("Bill Hawkins", "Bill and Melinda Gates");

case(bill) matches word "bill" lowercase ("grocery bill", "a bill of material");

case(BIO) matches word "bio" in uppercase ("BIO").

Arguments

Required letters case can be also specified using first optional parameter cap_type which takes one of the following values:

  • lower matches words with all letters in lowercase;

  • upper matches words with all letters in uppercase

  • title matches words with the first letter is in uppercase, all subsequent letters in lowercase;

  • mixed matches words that contains letters in upper and lower case in any combination.

Returned Value

Documents matching the query.

Examples

case(Word) matches "Word" but not "word";

case(upper, word) matches "WORD";

case(title, word) matches "Word";

case(lower, word) matches "word";

case(mixed, word) matches "WoRd", "wORd";

case(title|upper, word) matches "Word" and "WORD".