Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9123043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:14:40+00:00 2026-06-17T06:14:40+00:00

I am deploying a Grails application to Cloud Foundry where the Searchable plugin ‘compassConnection’

  • 0

I am deploying a Grails application to Cloud Foundry where the Searchable plugin ‘compassConnection’ is set to use a RAM index. Problem is Cloud Foundry applies some of it’s magic auto-configuration to set the ‘compassConnection’ to use a file-based index instead.

This would be fine if I was using a disk-based index and Cloud Foundry needs to reconfigure to make it work in it’s environment but I want the RAM index config left as it is.

Any ideas how I can make this work?

thanks,
Olly

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:14:42+00:00Added an answer on June 17, 2026 at 6:14 am

    I found the cause of the issue after trawling through the Cloud Foundry plugin source code inside AbstractCloudBeanPostprocessor. The method for populating the compass connection doesn’t check if it is a RAM index or not but blindly sets it to a location on disk.

        /**
     * Update the location of the Searchable Lucene index.
     * @param beanFactory the Spring bean factory
     * @param appConfig the application config
     */
    protected void fixCompass(ConfigurableListableBeanFactory beanFactory, ConfigObject appConfig) {
        def compassBean = beanFactory.getBeanDefinition('compass')
        String indexLocation = getCompassIndexRootLocation(appConfig) + '/searchable-index'
        appConfig.searchable.compassConnection = indexLocation
        compassBean.propertyValues.addPropertyValue 'compassConnection', indexLocation
        log.debug "Updated Compass connection details: $indexLocation"
    }
    

    I think this should really check for presence of RAM index and only set it to disk location. One possible workaround would be to create my own BeanDefinitionRegistryPostProcessor and undo what the cloud foundry plugin does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed cloud foundry plugin on my grails project and I have successfully
When deploying to cloud-foundry its advised to change from 'jquery-rails' gem to 'cloudfoundry-jquery-rails' #
I have a grails 1.3.7 application. I am making use of Spring's JMS classses
I'm trying to deploy a Grails application on Openshift. I'm deploying the app using
When deploying a web-role to the Windows Azure cloud, what is the default behavior
After deploying to Azure, I kept getting server errors -- the application would not
After deploying a set of services on QA environemnt, one orchestration is suspended with
While deploying my application, I got the error message: Thread 1:Program received signal: EXC_BAD_ACCESS.
When deploying plug-ins for MS Dynamics CRM, using the CRM plugin registration tool, you
Tried deploying a simple web application (jboss 5.1, jboss seam 2.2.1) on a machine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.