summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/tests/xpcshell/simple-engines/search-config-v2.json
blob: 6b0541ab2ce99bb8136bfee55261e86d63e49a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
  "data": [
    {
      "identifier": "basic",
      "recordType": "engine",
      "base": {
        "name": "basic",
        "urls": {
          "search": {
            "base": "https://ar.wikipedia.org/wiki/%D8%AE%D8%A7%D8%B5:%D8%A8%D8%AD%D8%AB",
            "params": [
              {
                "name": "sourceId",
                "value": "Mozilla-search"
              }
            ],
            "searchTermParamName": "search"
          },
          "suggestions": {
            "base": "https://ar.wikipedia.org/w/api.php?action=opensearch&search={searchTerms}"
          }
        }
      },
      "variants": [
        {
          "environment": { "allRegionsAndLocales": true },
          "telemetrySuffix": "telemetry"
        }
      ]
    },
    {
      "identifier": "simple",
      "recordType": "engine",
      "base": {
        "name": "Simple Engine",
        "urls": {
          "search": {
            "base": "https://example.com",
            "params": [
              {
                "name": "sourceId",
                "value": "Mozilla-search"
              }
            ],
            "searchTermParamName": "search"
          },
          "suggestions": { "base": "https://example.com?search={searchTerms}" }
        }
      },
      "variants": [
        {
          "environment": { "allRegionsAndLocales": true }
        }
      ]
    },
    {
      "recordType": "defaultEngines",
      "globalDefault": "basic",
      "specificDefaults": []
    },
    {
      "recordType": "engineOrders",
      "orders": []
    }
  ]
}