0
SOLR 관계형 데이터베이스 오류 :내가 두 테이블을 가지고있다
threads: id, title
posts: id, thread_id, body
나는 문서가 스레드과에 속하는 모든 게시물을 포함합니다. 왜이 작동하지 않습니다 :
<document>
<entity name="threads"
query="select id, title from threads">
<field column="title" name="threads.title"/>
<entity name="posts"
query="select id, thread_id, body from posts where thread_id='${threads.id}'">
<field column="id" name="posts.id"/>
<field column="thread_id" name="posts.thread_id"/>
<field column="body" name="posts.body"/>
</entity>
</entity>
</document>
그것은 총 행을 가져올 228 있지만 그것은 0 문서가 추가되었음을 알려줍니다. 왜 그런가요?