Search Results

Search found 2 results on 1 pages for 'ombud'.

Page 1/1 | 1 

  • Displaying desired properties from search results with grails compass

    - by ombud
    Hi, I've been stumped with the problem of displaying a selected set of properties returned as a result via a Compass query in grails. I have 300 columns in my domain class and what I'd like to do is to return ONLY THOSE values I specify (around 10 - 15 properties/fields/columns). All the 300 columns have been indexed, btw. I know I can do this using Lucene by cycling through returned hits and selectively calling a=getField(column_name), et c. My qiuestion is, how do I do the same thing using thee Compass Grails plugin ? Any help will gratefully be appreciated. Thanks in anticipation, Ombud

    Read the article

  • Grails/Compass question - How can I change the compqass Connection to point to a different directory

    - by ombud
    Hi, I use the Searchable plugin with Grails I have the need to change the directory to which Compass points to, depending upon a UI choice by the user. Normally, this value is set in the compassConnection variable of the searchable map in grails-app/conf/Searchable.groovy, like so, and gets called at app startup time: searchable { compassConnection = new File( "/path/to/index/file/directory" ).absolutePath ... } To do what I need to do, I think that I need to get a handle into the compass config variable and then call config.setConnection("/new/path/to/index/dir") I don't know how I can get a reference to the config compass variable Am I right in assuming that I need to call setConnection(String) only, or is(are) there any other step(s) I need to take? Really appreciate any help that I can get, Shailen

    Read the article

1