Re: how to prevent uuid-field changing in /update query?
: updates? i can't do this because i have delta-import queries which also : should be able to assign uuid when it is needed You really need to give us a full and complete picture of what exactly you are currently doing, what's working, what's not working, and when it's not working what is it doing and how is that differnet from what you expect. example: you mentioned you have "requesthandler with name "/update" which contains uuid update срфшт" (presumably you mean the processor) but you haven't shown us your configs, or any of your logs, so we can see how exactly it's configured, or if/how it's being used. If UUIDUpdateProcessorFactory is in place, then it should only generate a new UUID if the document doesn't already have one -- if you are using DIH to add documents to the index, and the uuid you are using/generating isn't also the uniqueKey field, then the UUIDUpdateProcessorFactory doens't have any way of magically knowing when a "new" document is actually a replacement for an old document. (If you are using Atomic Updates, then registering UUIDUpdateProcessorFactory *after* the DistributedUpdateProcessorFactory can help -- but that doesn't sound like it's relevant if you are using DIH detla updates) Please review this page and give us *all* the details about your current setup, your goal, and the specific problem you are facing... https://wiki.apache.org/solr/UsingMailingLists -Hoss http://www.lucidworks.com/
Re: how to prevent uuid-field changing in /update query?
UUIDUpdateProcessorFactory - "An update processor that adds a newly generated UUID value to any document being added that does not already have a value in the specified field." See: http://lucene.apache.org/solr/5_2_1/solr-core/org/apache/solr/update/processor/UUIDUpdateProcessorFactory.html -- Jack Krupansky On Tue, Aug 25, 2015 at 4:22 AM, CrazyDiamond wrote: > i have uuid field. it is not set as unique, but nevertheless i want it not > to > be changed every time when i call /update. it might be because i added > requesthandler with name "/update" which contains uuid update срфшт .But if > i not do this i have no uuid at all.May be i can config uuid update-chain > to > set uuid only if it is blank? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-to-prevent-uuid-field-changing-in-update-query-tp4225113.html > Sent from the Solr - User mailing list archive at Nabble.com. >
Re: how to prevent uuid-field changing in /update query?
I am honestly not familiar enough to say. Best to try it On Aug 25, 2015 7:59 AM, "CrazyDiamond" wrote: > It sounds like you need to control when the uuid is and is not created, > just feels like you'd get better mileage doing this outside of solr > Can I simply insert a condition(blank or not ) in uuid update-chain? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-to-prevent-uuid-field-changing-in-update-query-tp4225113p4225141.html > Sent from the Solr - User mailing list archive at Nabble.com. >
Re: how to prevent uuid-field changing in /update query?
It sounds like you need to control when the uuid is and is not created, just feels like you'd get better mileage doing this outside of solr Can I simply insert a condition(blank or not ) in uuid update-chain? -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-prevent-uuid-field-changing-in-update-query-tp4225113p4225141.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to prevent uuid-field changing in /update query?
It sounds like you need to control when the uuid is and is not created, just feels like you'd get better mileage doing this outside of solr On Aug 25, 2015 7:49 AM, "CrazyDiamond" wrote: > Why not generate the uuid client side on the initial save and reuse this on > updates? i can't do this because i have delta-import queries which also > should be able to assign uuid when it is needed > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-to-prevent-uuid-field-changing-in-update-query-tp4225113p4225137.html > Sent from the Solr - User mailing list archive at Nabble.com. >
Re: how to prevent uuid-field changing in /update query?
Why not generate the uuid client side on the initial save and reuse this on updates? i can't do this because i have delta-import queries which also should be able to assign uuid when it is needed -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-prevent-uuid-field-changing-in-update-query-tp4225113p4225137.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: how to prevent uuid-field changing in /update query?
Why not generate the uuid client side on the initial save and reuse this on updates? On Aug 25, 2015 4:22 AM, "CrazyDiamond" wrote: > i have uuid field. it is not set as unique, but nevertheless i want it not > to > be changed every time when i call /update. it might be because i added > requesthandler with name "/update" which contains uuid update срфшт .But if > i not do this i have no uuid at all.May be i can config uuid update-chain > to > set uuid only if it is blank? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/how-to-prevent-uuid-field-changing-in-update-query-tp4225113.html > Sent from the Solr - User mailing list archive at Nabble.com. >
how to prevent uuid-field changing in /update query?
i have uuid field. it is not set as unique, but nevertheless i want it not to be changed every time when i call /update. it might be because i added requesthandler with name "/update" which contains uuid update срфшт .But if i not do this i have no uuid at all.May be i can config uuid update-chain to set uuid only if it is blank? -- View this message in context: http://lucene.472066.n3.nabble.com/how-to-prevent-uuid-field-changing-in-update-query-tp4225113.html Sent from the Solr - User mailing list archive at Nabble.com.