2013-09-16 14:49:36 -07:00
|
|
|
---
|
2013-09-26 18:22:28 -05:00
|
|
|
layout: doc_page
|
2013-09-16 14:49:36 -07:00
|
|
|
---
|
2014-01-16 15:37:07 -08:00
|
|
|
# Refining Search Queries
|
2013-09-27 19:08:34 -05:00
|
|
|
Search query specs define how a "match" is defined between a search value and a dimension value. The available search query specs are:
|
2013-09-13 17:20:39 -05:00
|
|
|
|
|
|
|
InsensitiveContainsSearchQuerySpec
|
|
|
|
----------------------------------
|
|
|
|
|
2013-09-27 19:08:34 -05:00
|
|
|
If any part of a dimension value contains the value specified in this search query spec, regardless of case, a "match" occurs. The grammar is:
|
2013-09-13 17:20:39 -05:00
|
|
|
|
2013-09-27 19:08:34 -05:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type" : "insensitive_contains",
|
|
|
|
"value" : "some_value"
|
|
|
|
}
|
|
|
|
```
|
2013-09-13 17:20:39 -05:00
|
|
|
|
|
|
|
FragmentSearchQuerySpec
|
|
|
|
-----------------------
|
|
|
|
|
2013-09-27 19:08:34 -05:00
|
|
|
If any part of a dimension value contains any of the values specified in this search query spec, regardless of case, a "match" occurs. The grammar is:
|
2013-09-13 17:20:39 -05:00
|
|
|
|
2013-09-27 19:08:34 -05:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"type" : "fragment",
|
|
|
|
"values" : ["fragment1", "fragment2"]
|
|
|
|
}
|
|
|
|
```
|