Searchable Plugin - Configuration

Configuration

The Searchable Plugin tries to have sensible defaults but if you need to change its behavoir run:

grails install-searchable-config

from your project dir, then edit the generated file, project/grails-app/conf/SearchableConfiguration.groovy.

With this file you can configure such things as

  • Compass settings
  • The index location (eg, file-system or RAM index)
  • Default search options (max, escape, reload, etc)
  • Default property mapping exclusions and formats
  • Enabling/disabling the bulk index and mirror changes features

See the config file for more.

Native Compass XML config

Since 0.4 the plugin also looks for a native Compass XML configuration file on the classpath called compass.cfg.xml. If this file is present, Compass is configured with the settings defined in it, in addition to any that may be defined by the plugin's own SearchableConfiguration.groovy.

See the XML configuration section of the Compass manual for more info and examples.



Previous - Managing the index

Up - Searchable Plugin

Next - Debugging

Labels

 
(None)