13.4.2. Configuring Red Hat Satellite Search
Red Hat Satellite Administrators can configure certain search options to customize search results for their own optimization requirements.
Customize Red Hat Satellite search results with the
/usr/share/rhn/config-defaults/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)
- 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 milliseconds 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
).