Changed example
This commit is contained in:
parent
274b529c3f
commit
800e7bb2ff
1 changed files with 19 additions and 24 deletions
|
@ -10,18 +10,26 @@
|
||||||
<script>
|
<script>
|
||||||
var rules_example =
|
var rules_example =
|
||||||
{
|
{
|
||||||
"condition": "OR",
|
"condition": "AND",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"condition": "AND",
|
"id": "ALLTEXT",
|
||||||
|
"field": "ALLTEXT",
|
||||||
|
"type": "string",
|
||||||
|
"input": "text",
|
||||||
|
"operator": "contains",
|
||||||
|
"value": "мутазилиты"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"condition": "OR",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"id": "ALLTEXT",
|
"id": "keywords",
|
||||||
"field": "ALLTEXT",
|
"field": "keywords",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"input": "text",
|
"input": "text",
|
||||||
"operator": "contains",
|
"operator": "contains",
|
||||||
"value": "мутазилиты"
|
"value": "природа"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "keywords",
|
"id": "keywords",
|
||||||
|
@ -34,25 +42,12 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"condition": "AND",
|
"id": "keywords",
|
||||||
"rules": [
|
"field": "keywords",
|
||||||
{
|
"type": "string",
|
||||||
"id": "ALLTEXT",
|
"input": "text",
|
||||||
"field": "ALLTEXT",
|
"operator": "not_contains",
|
||||||
"type": "string",
|
"value": "модус"
|
||||||
"input": "text",
|
|
||||||
"operator": "contains",
|
|
||||||
"value": "природа"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "ALLTEXT",
|
|
||||||
"field": "ALLTEXT",
|
|
||||||
"type": "string",
|
|
||||||
"input": "text",
|
|
||||||
"operator": "not_contains",
|
|
||||||
"value": "модус"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"valid": true
|
"valid": true
|
||||||
|
|
Loading…
Add table
Reference in a new issue