Fix docs for "contains" search spec. (#3066)

This commit is contained in:
Gian Merlino 2016-06-02 19:03:40 -07:00 committed by Fangjin Yang
parent 474286bbce
commit 603fbbcc20
1 changed files with 12 additions and 10 deletions

View File

@ -273,6 +273,14 @@ Now suppose that the lower bound is `110` the filter will not match (`110 < 10K`
#### Search Query Spec
##### Contains
|property|description|required?|
|--------|-----------|---------|
|type|This String should always be "contains".|yes|
|value|A String value to run the search over.|yes|
|caseSensitive|Whether two string should be compared as case sensitive or not|no (default == false)|
##### Insensitive Contains
|property|description|required?|
@ -280,6 +288,9 @@ Now suppose that the lower bound is `110` the filter will not match (`110 < 10K`
|type|This String should always be "insensitive_contains".|yes|
|value|A String value to run the search over.|yes|
Note that an "insensitive_contains" search is equivalent to a "contains" search with "caseSensitive": false (or not
provided).
##### Fragment
|property|description|required?|
@ -288,15 +299,6 @@ Now suppose that the lower bound is `110` the filter will not match (`110 < 10K`
|values|A JSON array of String values to run the search over.|yes|
|caseSensitive|Whether strings should be compared as case sensitive or not. Default: false(insensitive)|no|
##### Contains
|property|description|required?|
|--------|-----------|---------|
|type|This String should always be "contains".|yes|
|value|A String value to run the search over.|yes|
|caseSensitive|Whether two string should be compared as case sensitive or not|yes|
### Filtering with Extraction Functions
Some filters optionally support the use of extraction functions.
An extraction function is defined by setting the "extractionFn" field on a filter.
@ -329,4 +331,4 @@ The following matches dimension values in `[product_1, product_3, product_5]` fo
}
}
}
```
```