Periodic index of several datasources by Apache Solr and update of subset of fields without document renewal

StackOverflow https://stackoverflow.com/questions/20360569

문제

I have following situation:

2 datasources should be indexed by Apache Solr.

  1. RDBM - constantly available
  2. CSV file which can be pushed to the system from time to time.

CSV file just update 2 fields on already existing documents in Solr.

But I have following problem: it seems impossible to make update just some subset of fields by DataImportHandler. Is it really impossible or there is some trick?

도움이 되었습니까?

해결책

I believe your problem lies in trying to "update" an existing document with only two fields. Which version of Solr are you using? Partial updates are only supported for Solr 4.x.

Here's some information on what partial updates are and how to do them: http://wiki.apache.org/solr/Atomic_Updates

http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/

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