カスタム 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
ensemblProteinId という名前の列ではなく、id という名前の列を見つけようとしているようです。
検索可能なプラグインはカスタム ID 列で動作するはずですが、そうであれば何が間違っていますか?