Indexer
If you are not going to use a CMS you can use the indexer to import data for use with Genesys Knowledge Center.
The indexer is installed during the installation of Knowledge Center Server. It is located inside your Knowledge Center Server installation folder in the \server\tools\indexer subdirectory.
Options
POSIX-like options | GNU-like long options | Required | Default | Description |
---|---|---|---|---|
-h | --host | yes | none | Genesys Knowledge Center Server host |
-u | --user | yes | none | Authorization message |
-a | --authorization | no | none | Credential for Basic Authorization on Knowledge Center Server (if enabled) |
-f | --file | no | ./ | file or directory that contains indexed data for import |
-l | --loop | no | false | read "-f (--file)" file or folder infinitely |
Usage
java -jar gks-indexer.jar
--host "http://%host%:%port%/gks-server"
--file "%path_to_repo%/tools/indexer/xml-datasets"
--user "gksuser"
--authorization "user name:user password"
XML example
<?xml version="1.0" encoding="UTF-8"?>
<documents kbsId="knowledgebaseId" lang="en">
<document>
<answer>answer_1</answer>
<categories>
<category>
<id>cat_1_id</id>
<name>cat_1</name>
</category>
<category>
<id>cat_2_id</id>
<name>cat_2</name>
</category>
</categories>
<customFields>
<entry>
<key>customField1</key>
<value>customFieldValue1</value>
</entry>
<entry>
<key>customField2</key>
<value>customFieldValue2</value>
</entry>
</customFields>
<created>2013-09-08 13:15:33</created>
<id>document_1_id</id>
<media>
<media>application</media>
<media>audio</media>
</media>
<modified>2014-01-03 22:03:19</modified>
<question>question_1</question>
<tags>
<tags>tag1</tags>
<tags>tag2</tags>
</tags>
<url>google.com</url>
</document>
<document>
<answer>answer_2</answer>
<categories>
<category>
<id>cat_1_id</id>
<name>cat_1</name>
</category>
<category>
<id>cat_3_id</id>
<name>cat_3</name>
</category>
</categories>
<created>2010-03-09 11:15:21</created>
<id>document_2_id</id>
<media>
<media>video</media>
<media>text</media>
</media>
<modified>2013-08-01 05:54:52</modified>
<question>question_2</question>
<tags>
<tags>tag3</tags>
<tags>tag4</tags>
</tags>
<url>genesys.com</url>
</document>
</documents>
JSON example
{
"kbsId": "knowledgebaseId",
"lang": "en",
"documents": [{
"answer": "answer_1",
"categories": [{
"id": "cat_1_id",
"name": "cat_1"
}, {
"id": "cat_2_id",
"name": "cat_2"
}],
"created": "2013-09-08 13:15:33",
"id": "document_1_id",
"media": [
"application",
"audio"
],
"modified": "2014-01-03 22:03:19",
"question": "question_1",
"tags": [
"tag1",
"tag2"
],
"url": "google.com"
}, {
"answer": "answer_2",
"categories": [{
"id": "cat_1_id",
"name": "cat_1"
}, {
"id": "cat_3_id",
"name": "cat_3"
}],
"created": "2010-03-09 11:15:21",
"id": "document_2_id",
"media": [
"video",
"text"
],
"modified": "2013-08-01 05:54:52",
"question": "question_2",
"tags": [
"tag3",
"tag4"
],
"url": "genesys.com"
}]
}
This page was last edited on May 19, 2015, at 09:24.
Comments or questions about this documentation? Contact us for support!