Ignore:
Timestamp:
Jul 10, 2010, 10:48:50 PM (14 years ago)
Author:
gav
Message:

Apply bug fix for ticket #76.
Rename all instances of Lucene to Searchable.
Improved global directory config.
Add log levels for searchable plugin and compass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Searchable.groovy

    r598 r622  
     1import org.codehaus.groovy.grails.commons.ConfigurationHolder
     2
    13/**
    24 * This {@link groovy.util.ConfigObject} script provides Grails Searchable Plugin configuration.
     
    2628
    2729    /**
    28      * The location of the Compass index
    29      *
    30      * Examples: "/home/app/compassindex", "ram://app-index" or null to use the default
    31      *
    32      * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}"
    33      */
    34     // Pickup the Tomcat/Catalina work directory else use the current or temp dir.
    35     def catalinaBase = System.properties.getProperty('catalina.base')
    36     def fs = File.separator
    37     def indexDirectory = catalinaBase ? "${catalinaBase}${fs}work${fs}Lucene${fs}" : "Lucene${fs}"
    38 
    39     compassConnection = new File("${indexDirectory}${appName}").absolutePath
     30    * The location of the Compass index
     31    *
     32    * Examples: "/home/app/compassindex", "ram://app-index" or null to use the default
     33    *
     34    * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}"
     35    */
     36    compassConnection = new File(ConfigurationHolder.config.globalDirs.searchableIndexDirectory).absolutePath
    4037
    4138    /**
Note: See TracChangeset for help on using the changeset viewer.