How to setup Primo to search a remote index and/or another Primo site?
- Article Type: General
- Product: Primo
- Product Version: 4
Desired Outcome Goal:
To define a Deep Search from one Primo site to another.
Procedure:
1. Terminology
Requester - The Primo site configuring the search, where the queries will be initiated.
Target – The remote Primo site which we want to search; holds the data we want.
2. On the Requester site:
- Go to fe_conf
- Edit thirdnode-config.xml
- Copy the full <adaptor_config> ... </third_node_config> section and edit the fields with the relevant details:
<Id> – add an id name for the search connection <parameters> – change the following in the parameters fields:
<key>host</key> - change the value in <val> to targets FE hostname or IP
<key>port</key> - change the value in <val> to targets FE port
3. (Optional) To search a specific scope within the target index, add a scope parameter field <key>scope</key> and change the value in <val> to the searchable targets scope.
<third_node_config xmlns="http://www.exlibris.com/primo/xsd/search/thirdnode">
<adaptors_config>
<adaptor_config>
<id>YourSearchID</id>
<class_name>PrimoThirdNode</class_name>
<primo_services>
<primo_rank>false</primo_rank>
<primo_facets>false</primo_facets>
<primo_highlighting>true</primo_highlighting>
</primo_services>
<warmup>
<enable>false</enable>
</warmup>
<cache>
<enable>true</enable>
<timeout>60</timeout>
<batchSize>10</batchSize>
</cache>
<parameters>
<parameter>
<key>host</key>
<val>pebbles.exlibris.com.au</val>
</parameter>
<parameter>
<key>port</key>
<val>1701</val>
</parameter>
<parameter>
<key>scope</key>
<val>XYZ</val>
</parameter>
</parameters>
</adaptor_config>
</adaptors_config>
</third_node_config>
It's possible to have multiple <adaptor_config> fields, each with its own ID searching different Primo sites or scopes within one remote Primo.
4. Go to 'Third Node Adaptors' code table – add the relevant ID from <id> in the xml.
The description added here will be used in the Views Wizard scopes page.
5. Go to Views Wizard, create a scope and add the thirdnode scope.
6. Add the thirdnode scope to relevant Primo search tab.
Category: Search Engine
Subject: Configuration
- Article last edited: 10/8/2013