2009-12-19 6 views
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 문서가 추가되었음을 알려줍니다. 왜 그런가요?

답변

1

이 문제는 일반적으로 색인 생성 오류입니다. 유감스럽게도 DIH는 항상 오류 메시지를 볼 수있는 곳으로 쉽게 버블 링하지 않습니다!

관련 문제