searchable-plugin

    0熱度

    1回答

    有沒有辦法在Grails中禁用屬於某個插件(在我的情況下是可搜索的)的一部分的控制器?我能想到的唯一兩種方式是將其指向UrlMappings [1]中的404頁面或爲同一事物編寫過濾器。但是,在我看來,這更像是解決方法。至少在可搜索插件的情況下,需要擺脫默認的控制器和視圖似乎對我來說很常見,因爲它們基本上都是無用的。 [1]這也被在Disable grails Searchable plugin

    3熱度

    2回答

    當試圖在Grails 2.4.4應用程序中添加可搜索的:0.6.9(或更少的)時,我得到了hibernate4拋出的異常,但這隻發生在我將「static searchable = true」添加到我的域類中。 考慮到我的BuildConfig.groovy看起來像這樣: repositories { inherits true // Whether to inherit reposito

    0熱度

    1回答

    域(只是簡單的例子): class House { String address String region Long price static searchable = { only = ['address', 'price', 'region'] } } 我想通過地址以價格選擇搜索 搜索查詢是: "${address} AND price: [100 TO 1000]" 但是

    1熱度

    1回答

    當我需要搜索0.6.5插件Grails的2.2.3,我體改BuildConfigh.groovy如下: dependencies { compile ":searchable:0.6.5" } plugins { runtime ":hibernate:$grailsVersion" runtime ":jquery:1.8.3" runtime ":res

    0熱度

    1回答

    鑑於以下域類: class Test { String name Integer val1, val2 } 目前,我正在尋找這個類以下標準: Test.createCriteria().list(params) { params.key.split(' ').each { ilike('name', "%${it}%") } gt

    1熱度

    1回答

    我有一對一的關係(hasOne在用戶域和belongsTo在UserInfo域中)。當自舉正在執行我得到一個異常: org.compass.core.converter.ConversionException:試圖馬歇爾空ID [ID]別名[的UserInfo] 這行代碼生產它: def user = new User(....., new UserInfo()).save()

    0熱度

    1回答

    我需要重新配置可搜索插件的默認設置。當我嘗試運行install-searchable-config我收到以下錯誤: 錯誤I/O異常加載腳本[null \ scripts \ Init.groovy(系統找不到指定的路徑)]:null \ scripts \ Init.groovy(系統找不到指定的路徑) 任何人都知道我該如何解決這個問題?

    1熱度

    1回答

    我正在部署Grails應用程序到Cloud Foundry,其中Searchable插件'compassConnection'設置爲使用RAM索引。問題是Cloud Foundry應用其一些神奇的自動配置來設置'compassConnection'來代替使用基於文件的索引。 如果我使用的是基於磁盤的索引,並且Cloud Foundry需要重新配置以使其在其環境中工作,但我希望RAM索引配置保持原樣

    0熱度

    1回答

    我需要重新編制regulary所有從現場遺留的數據庫 在哪裏〜400K recodrs在DB 從DB withoud一個讀域對象一個我的域名實例重新索引越來越〜15分鐘再予 與重新編制迭代得到8-10小時指數remdisk: ids.each { id -> Domain.reindex(id) } 我不能使用Domain.reindex()becouse DB連接超時 sear

    4熱度

    1回答

    我有domain class User,它與domain class LibraryElement有多對多的關係。我試圖過濾屬於用戶的所有庫元素,其中包含特定的文本。這是搜索的屬性和關係是如何定義的: 用戶側: static searchable = { id name: 'userId' libraryElements component: true } static