Implements #1255

Example:
```json
{
  "queries": [
     {
       "type": "SearchPattern",
    	"query": "i-phone",
    	"start": 0,
    	"rows": 10,
    	"lang": "ENGLISH"
    },
     {
       "type": "SearchField",
    	"query": "open",
    	"start": 0,
    	"rows": 10,
    	"lang": "ENGLISH"
    },
     {
       "type": "SearchPatternTemplate",
       "template": "search",
    	"query": "i-phone"
    },
     {
       "type": "SearchFieldTemplate",
       "template": "test",
    	"query": "open"
    }
  ]
}
```