PageSourceSearch

https://www.pref.yamanashi.jp/shared/cogmo/configs/search-f3.config.js

js pref.yamanashi.jp collected 2026-09-24 08:37:29 UTC 5,935 bytes, 140 lines download raw bytes

1/*
2  Cogmo Enterprise Generative AI/Cogmo Search UI version: 3.1.3
3  version date: 2025-11-05
4  Copyright: IACT CORPORATION.
5  Comment: 再配布を禁じます。契約者でのご利用にて改変を行うことは認められておりますが、新バージョンのUIファイルは標準ファイルのみ配布となりますので、再度、契約者で改変を行ってください。
6*/
7const Form3SearchConfig = {
8  view: {
9    formParts: {
10      search: [ // この検索フォームのパーツを使う検索タイプID
11        {
12          id: "query",  // 検索フォームのパーツを識別するID文字列
13          /*
14            この検索フォームのパーツの種別
15            natural-language-query:自然文条件の入力
16            checkbox-filter:チェックボックスによる絞り込み
17            radio-filter:ラジオボタンによる絞り込み
18            text-filter:テキストフィルターによる絞り込み
19          */
20          type: "natural-language-query",
21          inputFormPlaceholder: "質問を入力してください", // 自然文条件の入力とテキストフィルターにおける入力欄の初期表示の文言
22          submitButtonLabel: "検索",  // 自然文条件の入力とテキストフィルターにおける実行ボタンの文言
23          spSubmitButtonLabel: "検索",  //  自然文条件の入力とテキストフィルターにおけるモバイルブラウザの実行ボタンの文言
24          inputTextClearTitle: "入力テキストをクリア",  // 自然文条件の入力とテキストフィルターにおける入力欄のクリアボタンのタイトル
25          /*
26            自然文条件の入力における複数行の入力可否
27            multipleLineInputがtrueの場合、{inputFormLineNum}行の入力フォームとなり{inputFormMaxLineNum}行まで拡張される。[shift]+[enter]で送信
28            multipleLineInputがfalseの場合、inputFormLineNum、inputFormMaxLineNumの設定は使わないず一行の入力フォーム。[enter]で送信
29          */
30          multipleLineInput: false,
31          inputFormLineNum: 1,
32          inputFormMaxLineNum: 5,
33        },
34        {
35          id: "category",
36          label: "検索対象:", // チェックボックス/ラジオボタンによる絞り込みにおける見出しの文言
37          type: "checkbox-filter",
38          noCheckedExpression: "site_filter:!*",  // チェックボックスによる絞り込みでチェックがないの場合のクエリー文字列(DQL形式)
39          filters: [  // チェックボックス/ラジオボタンによる絞り込みの選択肢の定義
40            {
41              id: "corporate",  // 選択肢を識別するID文字列
42              name: "IACTサイト", // 選択肢の文言
43              expression: 'site_filter::"corporate"', // 選択された場合に実行するクエリー文字列(DQL形式)
44              checked: true,  // 初期表示でこの選択肢を選択状態にするか
45            },
46            {
47              id: "cogmo",
48              name: "Cogmoブランドサイト",
49              expression: 'site_filter::"cogmo"',
50              checked: true,
51            },
52          ],
53        },
54        {
55          id: "type",
56          label: "ファイル:",
57          type: "radio-filter",
58          filters: [
59            {
60              id: "all",
61              name: "すべて",
62              expression: "",
63              checked: true,
64            },
65            {
66              id: "html",
67              name: "Webページのみ",
68              expression: 'enriched_thumbnail_url.entities.text::!("pdf"|"docx"|"xlsx"|"pptx"|"txt"|"json")',
69            },
70            {
71              id: "file",
72              name: "ファイルのみ",
73              expression: 'enriched_thumbnail_url.entities.text::("pdf"|"docx"|"xlsx"|"pptx"|"txt"|"json")',
74            },
75          ],
76        },
77      ],
78      gpt: [
79        {
80          id: "query",
81          type: "natural-language-query",
82          inputFormPlaceholder: "キーワードを入力してください",
83          submitButtonLabel: "検索",
84          spSubmitButtonLabel: "検索",
85          inputTextClearTitle: "入力テキストをクリア",
86          multipleLineInput: false,
87          inputFormLineNum: 1,
88          inputFormMaxLineNum: 5,
89        },
90      ],
91      searchgpt: [
92        {
93          id: "query",
94          type: "natural-language-query",
95          inputFormPlaceholder: "キーワードを入力してください",
96          submitButtonLabel: "検索",
97          spSubmitButtonLabel: "検索",
98          inputTextClearTitle: "入力テキストをクリア",
99          multipleLineInput: false,
100          inputFormLineNum: 1,
101          inputFormMaxLineNum: 5,
102        },
103        {
104          id: "type",
105          label: "絞り込み",
106          type: "radio-filter",
107          filters: [
108            {
109              id: "all",
110              name: "全て",
111              expression: '',
112            },
113            {
114              id: "kouhou",
115              name: "公報絞り込み",
116              expression: 'site_filter::"kouhou"',
117              checked: true,
118            },
119            {
120              id: "faq",
121              name: "よくある質問絞り込み",
122              expression: 'site_filter::"faq"',
123            },
124            {
125              id: "police",
126              name: "山梨県警絞り込み",
127              expression: 'site_filter::"police"',
128            },
129          ],
130        },
131      ],
132    },
133  },
134  form: {
135    anchorTarget: "_blank", // 検索結果画面へ遷移する際のtarget属性
136  },
137};
138
139window.Form3SearchConfig = Form3SearchConfig;
140

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.