Re: updating documents via csv

2019-12-17 Thread Paras Lehana
Oh lol. How could I miss that! This is actually true for any bash command. Glad that it worked. On Wed, 18 Dec, 2019, 00:29 rhys J, wrote: > On Mon, Dec 16, 2019 at 11:58 PM Paras Lehana > wrote: > > > Hi Rhys, > > > > I use CDATA for XMLs: > > > > > > > > > > There should be a similar so

Re: updating documents via csv

2019-12-17 Thread rhys J
On Mon, Dec 16, 2019 at 11:58 PM Paras Lehana wrote: > Hi Rhys, > > I use CDATA for XMLs: > > > > > There should be a similar solution for JSON though I couldn't find the > specific one on the internet. If you are okay to use XMLs for indexing, you > can use this. > > We are set on using js

Re: updating documents via csv

2019-12-16 Thread Paras Lehana
Hi Rhys, I use CDATA for XMLs: There should be a similar solution for JSON though I couldn't find the specific one on the internet. If you are okay to use XMLs for indexing, you can use this. On Tue, 17 Dec 2019 at 01:40, rhys J wrote: > Is there a way to update documents already stored

Re: Updating documents and commit/rollback

2018-03-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shawn, On 3/2/18 7:46 PM, Shawn Heisey wrote: > On 3/2/2018 10:39 AM, Christopher Schultz wrote: >> The problem is that I'm updating the index after my SQL UPDATE(s) >> have run, but before my SQL COMMIT occurs. I have had a problem >> where the SQL

Re: Updating documents and commit/rollback

2018-03-02 Thread Shawn Heisey
On 3/2/2018 10:39 AM, Christopher Schultz wrote: > The problem is that I'm updating the index after my SQL UPDATE(s) have > run, but before my SQL COMMIT occurs. I have had a problem where the SQL > fails and rolls-back, but the solrClient is not rolled-back. > > I'm a little wary of rolling-back S

Re: Updating documents with docvalues (not stored), commit question

2016-11-17 Thread Erick Erickson
I'm pretty sure that atomic updates use Real Time Get which means they'll pull the values from in-memory structures for docs that haven't been committed yet. And as Shawn says, docValues isn't relevant here. Best, Erick On Thu, Nov 17, 2016 at 5:52 AM, Shawn Heisey wrote: > On 11/17/2016 6:26 A

Re: Updating documents with docvalues (not stored), commit question

2016-11-17 Thread Shawn Heisey
On 11/17/2016 6:26 AM, Dorian Hoxha wrote: > Looks like you can update documents even using just doc-values > (without stored). While I understand the columnar-format, my issue > with this is that docValues are added when a 'commit' is done > (right?). Does that mean that it will force a commit (wh

Re: updating documents unintentionally adds extra values to certain fields

2013-04-22 Thread Chris Hostetter
: I am using solr 4.2, and have set up spatial search config as below : : http://wiki.apache.org/solr/SpatialSearch#Schema_Configuration : : But everything I make an update to a document, : http://wiki.apache.org/solr/UpdateJSON#Updating_a_Solr_Index_with_JSON : : more values of the *_coordinat

Re: Updating documents

2012-07-13 Thread Yonik Seeley
On Fri, Jul 13, 2012 at 3:50 PM, Jonatan Fournier wrote: > On Thu, Jul 12, 2012 at 3:20 PM, Jonatan Fournier > wrote: > But later on when I want to "append" cat3 to the field by doing this: > > "mv_f":{"add":"cat3"}, > ... > > I end up with something like this in the index: > > "mv_f":["{add=cat3

Re: Updating documents

2012-07-13 Thread Jonatan Fournier
On Thu, Jul 12, 2012 at 3:20 PM, Jonatan Fournier wrote: > Yonik, > > On Thu, Jul 12, 2012 at 12:52 PM, Yonik Seeley > wrote: >> On Thu, Jul 12, 2012 at 12:38 PM, Jonatan Fournier >> wrote: >>> On Thu, Jul 12, 2012 at 11:05 AM, Erick Erickson The partial documents update that Jonatan refere

Re: Updating documents

2012-07-13 Thread Yonik Seeley
>> I've just committed this change. > > Super thanks! I assume it will end up in the 4.0 release? Yep! -Yonik http://lucidimagination.com

Re: Updating documents

2012-07-13 Thread Jonatan Fournier
On Fri, Jul 13, 2012 at 1:43 PM, Yonik Seeley wrote: > On Fri, Jul 13, 2012 at 1:41 PM, Jonatan Fournier > wrote: >> On Fri, Jul 13, 2012 at 12:57 AM, Yonik Seeley >> wrote: >>> On Thu, Jul 12, 2012 at 3:20 PM, Jonatan Fournier >>> wrote: Is there a flag for: if document does not exist, cr

Re: Updating documents

2012-07-13 Thread Yonik Seeley
On Fri, Jul 13, 2012 at 1:41 PM, Jonatan Fournier wrote: > On Fri, Jul 13, 2012 at 12:57 AM, Yonik Seeley > wrote: >> On Thu, Jul 12, 2012 at 3:20 PM, Jonatan Fournier >> wrote: >>> Is there a flag for: if document does not exist, create it for me? >> >> Not currently, but it certainly makes sen

Re: Updating documents

2012-07-13 Thread Jonatan Fournier
On Fri, Jul 13, 2012 at 12:57 AM, Yonik Seeley wrote: > On Thu, Jul 12, 2012 at 3:20 PM, Jonatan Fournier > wrote: >> Is there a flag for: if document does not exist, create it for me? > > Not currently, but it certainly makes sense. > The implementation should be easy. The most difficult part is

Re: Updating documents

2012-07-12 Thread Yonik Seeley
On Thu, Jul 12, 2012 at 3:20 PM, Jonatan Fournier wrote: > Is there a flag for: if document does not exist, create it for me? Not currently, but it certainly makes sense. The implementation should be easy. The most difficult part is figuring out the best syntax to specify this. Another idea: we

Re: Updating documents

2012-07-12 Thread Jonatan Fournier
Yonik, On Thu, Jul 12, 2012 at 12:52 PM, Yonik Seeley wrote: > On Thu, Jul 12, 2012 at 12:38 PM, Jonatan Fournier > wrote: >> On Thu, Jul 12, 2012 at 11:05 AM, Erick Erickson >>> The partial documents update that Jonatan references also requires >>> that all the fields be stored. >> >> If my onl

Re: Updating documents

2012-07-12 Thread Yonik Seeley
On Thu, Jul 12, 2012 at 12:38 PM, Jonatan Fournier wrote: > On Thu, Jul 12, 2012 at 11:05 AM, Erick Erickson >> The partial documents update that Jonatan references also requires >> that all the fields be stored. > > If my only fields with stored="false" are copyField (e.g. I don't need > their co

Re: Updating documents

2012-07-12 Thread Jonatan Fournier
Erick, On Thu, Jul 12, 2012 at 11:05 AM, Erick Erickson wrote: > Vinicius: > > No, fetching the document from the index, changing selected values and > re-indexing probably > won't work at all. The problem is that you only get _stored_ values > back from Solr. So unless > you've specified 'stored

Re: Updating documents

2012-07-12 Thread Erick Erickson
Vinicius: No, fetching the document from the index, changing selected values and re-indexing probably won't work at all. The problem is that you only get _stored_ values back from Solr. So unless you've specified 'stored="true" ' for all your fields, you can't use the doc fetched from Solr to upda

Re: Updating documents

2012-07-11 Thread Jonatan Fournier
On Wed, Jul 11, 2012 at 10:57 AM, Vinicius Carvalho wrote: > Hi there. > > I was checking the faq and found that solr does not support field updates > right. So I assume that in order to update a document, one should first > retrieve it by its Id and then change the required field and update the d

Re: updating documents while keeping unspecified fields

2011-07-07 Thread Juan Grande
Hi Adeel, As far as I know, this isn't possible yet, but some work is being done: https://issues.apache.org/jira/browse/SOLR-139 https://issues.apache.org/jira/browse/SOLR-828 Regards, *Juan* On Thu, Jul 7, 2011 at 2:24 PM, Adeel Qureshi wrote: > What I am trying to do is to update a docume

Re: updating documents in solr 1.3.0

2008-10-16 Thread Bill Au
This is being worked on for Solr 1.4: https://issues.apache.org/jira/browse/SOLR-139 Bill On Wed, Oct 15, 2008 at 7:47 PM, Walter Underwood <[EMAIL PROTECTED]>wrote: > Neither Solr no Lucene support partial updates. "Update" means > "add or replace". --wunder > > On 10/15/08 4:23 PM, "[EMAIL PR

Re: updating documents in solr 1.3.0

2008-10-15 Thread Walter Underwood
Neither Solr no Lucene support partial updates. "Update" means "add or replace". --wunder On 10/15/08 4:23 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > I've been trying to find a way to post partial updates, updating only > some of the fields in a set of records, via POSTed XM