문제

I'm new to Solr and having difficulties with the DataImportHandler. I get this message when the server starts:
Jan 27, 2010 12:27:22 PM org.apache.solr.handler.dataimport.DataImportHandler processConfiguration

INFO: Processing configuration from solrconfig.xml: {config=dih-gensigdb-jdbc.xml} Jan 27, 2010 12:27:22 PM org.apache.solr.handler.dataimport.DataImporter loadDataConfig INFO: Data Configuration loaded successfully Jan 27, 2010 12:27:22 PM org.apache.solr.handler.dataimport.DataImporter verifyWithSchema INFO: url is a required field in SolrSchema . But not found in DataConfig

My dataConfig doesnt contain a url field, but i'm not sure why its required. When i use the DIH console and try to debug the config I get the following errors during document import:

org.apache.solr.common.SolrException: Document [null] missing required field: url

My dataConfig looks like this:
<dataConfig> <dataSource name="jdbc" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:xe" user="genesigdb" password="genesigdb"/> <document name="PMID"> <entity name="PMID" dataSource="jdbc" query="SELECT PMID FROM PUBLICATION"> </entity> </document> </dataConfig>

도움이 되었습니까?

해결책

나는 알고있는 ootb가 없습니다. 나는 2 가지 옵션을 생각할 수 있으며 모두 본질적으로 똑같은 일을합니다.

고객 이벤트 수신기 - SharePoint 이벤트 수신기에 익숙한 경우 지나치게 고통 스러울 수없는 ItemUpdating 이벤트를 사용해야합니다. 이것은 도움이 필요합니다 -

항목 업데이트 이벤트 수신기

Downfall은 이제 사용자 정의 코드에 추가해야하므로 사용자 지정 코드에 추가해야하거나 사용자 만 이메일을 보내고 코드를 통해 전화를 걸 수있는 SharePoint Designer 워크 플로를 만들 수도 있습니다. 이것은 솔직히 가기 쉬운 방법이 아닙니다. 이벤트 수신기에 익숙하지 않고 SharePoint에서 많은 개발을 수행하지 못했다면 아래에 가야합니다. 당신이 다소 익숙하다면 실제로이 정확한 시나리오가 있으며 내가 원하는 경우 내가 한 일을 찾아서 공유 할 수 있습니다.

SharePoint Designer 워크 플로우 또한 위와 동일한 것과 동일한 작업을 수행하는 워크 플로를 만들 수 있으며 다른 사람들이 나중에 작업 해야하는 경우 조금 더 사용자 친화적입니다.

  1. 목록에 두 번째 열을 만듭니다 .... columnaoriginal
  2. 새롭고 편집 된 항목에서 실행되는 새 목록 워플
  3. columnaoriginal이 공백이 아니고 columnaoriginal이 columna와 같지 않으면 이메일을 보내십시오. 그 아래에 이메일을 설정하십시오.
  4. collumnaoriginal to col to coller a coll of to colly

    우리는 columnaoriginal이 모든 새로운 항목에서 워크 플로가 아직 실행되지 않기 때문에 항상 공백이 될 것입니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top