druid/docs/content/SearchQuerySpec.md

29 lines
735 B
Markdown
Raw Normal View History

---
2013-09-26 19:22:28 -04:00
layout: doc_page
---
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 18:20:39 -04:00
InsensitiveContainsSearchQuerySpec
----------------------------------
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 18:20:39 -04:00
```json
{
"type" : "insensitive_contains",
"value" : "some_value"
}
```
2013-09-13 18:20:39 -04:00
FragmentSearchQuerySpec
-----------------------
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 18:20:39 -04:00
```json
{
"type" : "fragment",
"values" : ["fragment1", "fragment2"]
}
```