!--a11y-->
Creating a Search Server Relation 
It might be necessary to create a search server relation for communication between an application and TREX. The installation documentation on the application in question will contain information on whether you need a search server relation.

Technical background: The need for a search server relation depends on the version of the TREX ABAP client that is used by the application in question. There are the following versions:
· The SRET package with the function modules SRET*
· The STREX package with the function modules TREX_*
If the application in question uses the SRET package, you must create a search server relation. If the application uses the STREX package, this step is not required.
Creating a search server relation consists of the following:
...
1. Creating a search server relation.
2. Testing the search server relation.
...
1. Choose transaction SRMO in the SAP R/3 system.
2. Choose Create SSR.
3. Enter a name for the search server relation in the field Search Server Relation ID (for example, SSR_TREX).
4. Choose Create SSR.
5. Enter the following data:
Field |
Entry |
Search engine |
DRFUZZY This is the internal name of the TREX search engine.
Make sure that you enter DRFUZZY in uppercase and in the format specified. |
RFC Destination (TCP/IP) |
Name of the RFC destination that you created with the activation type Registration. This entry must match the name that you assigned when you created the RFC destination (see Creating an RFC Destination with Activation Type Registration).
TREXDEFAULT_REG |
Description |
Description of the search server relation, for example, Search Server Relation for Retrieval Service. |
6. Save your entries.
You return to the previous dialog box.
7. Select the newly created search server relation in the table.
8. Choose Set SSR as Default.
9. In the confirmation prompt that appears, choose Yes.
The search server relation is then shown as default in the table.
...
1. Choose the RFC Destinations tab.
Two entries are listed for the search server relation you created: One for action I (indexing) and one for action S (searching).
2. Select the entry with action = S. Choose Connection Test under Search Engine Settings.
The connection with the TREX RFC server and the TREX search engine is established. You can see this in the version information that is shown for the TREX components.
3. Select the entry with action = I. Choose Connection Test under Search Engine Settings.
The connection with the TREX RFC server and the TREX search engine is established. You can see this in the version information that is shown for the TREX components.

If the RFC connection still cannot be established, see Checking an RFC Connection.