Installation Finalization Example - AFS

Install AFS on a Single Server

Product
AFS
AFS_Version
7.9
Platform
Debian
Category
Technical Notes
language
English

For this example, let us consider the service 1/beta with the Books PaF.

  1. To be able to run some tests on AFS, we create the service 1 with a beta status in the Back Office.

    A new project is created in the Back Office

  2. On the server hosting the Antidot solution, the Books PaF is installed by using the afs_paf_install binary.

    As a result, the following file structure is created:

    My_Stunning_Company
    |__ Books
    |__ conf
    |__ status.json
    |__ status.xml

  3. The following sample files were retrieved from the Antidot Training Resources Center:
    • paf.xml to create the PaF called Books.
    • books.xml and feed-books-complete.xml to create a feed for the Books PaF and provide data to work on.
  4. In the Back Office Service > Setup > Configuration, in the PaF Architect of Books, the paf.xml file is imported.
  5. In File Repository, books.xml and feed-books-complete.xml are added as new files.

    The PaF creation is now complete.

  6. In Dataflow > Books, a Full upload is launched.
  7. We use the afs_service_install binary to install a new reply service on the 1/beta service.

To test the operation of the installation, we use the following URL in our browser:

http://localhost:70/search?afs:service=1&afs:status=beta

The following XML output is displayed:

<afs:replies xmlns:afs="http://ref.antidot.net/v7/afs#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ref.antidot.net/v7/afs# http://ref.antidot.net/v7.9/search.xsd">
<afs:header>
<afs:query userId="82c639d3-3cdc-435d-affb-03273eb3c35e" sessionId="82c639d3-3cdc-435d-affb-03273eb3c35e" date="2019-01-09T20:26:37+0000" textQuery="">
<afs:queryParam name="afs:service" value="1"/>
<afs:mainCtx textQuery=""/>
</afs:query>
<afs:user requestMethod="GET" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" address="10.0.2.2">
<afs:output format="XML" encoding="gzip" charset="UTF-8"/>
</afs:user>
<afs:performance durationMs="12"/>
<afs:info/>
</afs:header>
<afs:replySet>
<afs:meta uri="Books" totalItems="7" totalItemsIsExact="true" pageItems="7" firstPageItem="1" lastPageItem="7" durationMs="6" firstPaFId="1" lastPaFId="1" producer="search"/>
<afs:facets>...</afs:facets>
<afs:content>...</afs:content>
</afs:replySet>
</afs:replies>

The installation was successful.