8.8.2. Configuring Satellite Search
Satellite Administrators may want to configure certain search options to customize search results for their own optimization requirements.
RHN Satellite search results can be customized via the
/etc/rhn/search.rhn-search.conf
file. The following list defines the search configuration and their default values in parentheses.
- search.index_work_dir : Specifies where Lucene indexes are kept (
/usr/share/rhn/search/indexes
) - search.rpc_handlers : semi-colon separated list of classes to act as handlers for XMLRPC calls.
(filename>index:com.redhat.satellite.search.rpc.handlers.IndexHandler, db:com.redhat.satellite.search.rpc.handlers.DatabaseHandler, admin:com.redhat.satellite.search.rpc.handlers.AdminHandler)
(filename>index:com.redhat.satellite.search.rpc.handlers.IndexHandler, db:com.redhat.satellite.search.rpc.handlers.DatabaseHandler, admin:com.redhat.satellite.search.rpc.handlers.AdminHandler)
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - search.max_hits_returned : maximum number of results which will be returned for the query (
500
) - search.connection.driver_class : JDBC driver class to conduct database searches (
oracle.jdbc.driver.OracleDriver
) - search.score_threshold : minimum score a result needs to be returned back as query result (
.10
) - search.system_score_threshold : minimum score a system search result needs to be returned back as a query result (
.01
) - search.errata_score_threshold : minimum score an errata search result needs to be returned back as a query result (
.20
) - search.errata.advisory_score_threshold : minimum score an errata advisory result needs to be returned back as a query result (
.30
) - search.min_ngram : minimum length of n-gram characters. Note that any change to this value requires
clean-index
to be run, and doc-indexes need to be modified and rebuilt) (1
) - search.max_ngram : maximum length of n-gram characters. Note that any change to this value requires
clean-index
to be run, and doc-indexes need to be modified and rebuilt) (5
) - search.doc.limit_results : type
true
to limit the number of results both on search.score_threshold and restrict max hits to be below search.max_hits_returned; typefalse
means to return all documentation search matches (false
) - search.schedule.interval : input the time in miliseconds to control the interval with which the SearchServer polls the database for changes; the default is 5 minutes (
300000
). - search.log.explain.results : used during development and debugging. If set to true, this will log additional information showing what influences the score of each result. (
false
)