Hi, is it possible to have "append" like updates, where if two records of same id's are posted to solr, the contents of the two merges and composes a single record with the id? I am asking because my program works in a multi-thread manner where several threads produces serveral parts of a final record which is to be posted and indexed. Currently I am having a preprocessing program where the threads produces parts, then a post processing where the parts are merged into a single xml file then posted to solr. If it is possible to do "append" like updating, then each thread can post to solr directly without writing temporary files.
For example, thread 1 produce an xml file like: -------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <add allowDups="true" overwriteCommitted="false" overwritePending="false"> <doc> <field name="record-id">198</field> <field name="description">This is my short text. This is part 1 of the record with id=198</field> </doc> </add> -------------------------------------------------- thread 2 produces xml like -------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <add allowDups="true" overwriteCommitted="false" overwritePending="false"> <doc> <field name="record-id">198</field> <field name="title">Title here. This is part 2 of record with id=198</field> </doc> </add> -------------------------------------------------- Currently my program needs to produce the two separate files, then merge them into -------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <add allowDups="true" overwriteCommitted="false" overwritePending="false"> <doc> <field name="record-id">198</field> <field name="description">This is my short text. This is part 1 of the record with id=198</field> <field name="description">This is my short text. This is part 1 of the record with id=198</field> </doc> </add> -------------------------------------------------- Then post the final file. If I post the two separately, I get two separate records with same id=198, while one has only field "description" and the other has only field "title". Is it possible to append? Or is my settings "allowDup" incorrect? Many thanks! -- View this message in context: http://www.nabble.com/Is-it-possible-to-have-%22append%22-kind-update-operation--tp15006743p15006743.html Sent from the Solr - User mailing list archive at Nabble.com.