2
ID列映射我有一個自定義的ID映射域類使用自定義與檢索插件
...
...
String ensemblGeneId
String ensemblTranscriptId
String ensemblProteinId
String proteinSequence
String topologySequence
String topologyRatio
String description
String geneName
..
..
..
static mapping = {
proteinSequence type:'text'
topologySequence type:'text'
description type:'text'
id name:'ensemblProteinId', generator:'assigned'
}
我有使這項工作與搜索插件
我下面的添加到類問題
static searchable = {
id name:'ensemblProteinId'
except = ['topologySequence','proteinSequence']
}
我收到以下錯誤的數據插入完成後
2010-07-06 13:35:08,091 [http-8080-1] ERROR errors.GrailsExceptionResolver - Id with path [$/Protein/id] for alias [Protein] not found
org.compass.core.engine.SearchEngineException: Id with path [$/Protein/id] for alias [Protein] not found
它似乎仍然試圖找到名爲id的列而不是名爲ensemblProteinId的列。
是應該與自定義ID列一起工作的可搜索插件,如果是的話,我在做什麼錯?