Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4AC48200D0A for ; Wed, 4 Oct 2017 14:53:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 49A141609E2; Wed, 4 Oct 2017 12:53:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 91B461609D6 for ; Wed, 4 Oct 2017 14:53:23 +0200 (CEST) Received: (qmail 64131 invoked by uid 500); 4 Oct 2017 12:53:21 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 64120 invoked by uid 99); 4 Oct 2017 12:53:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2017 12:53:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D1D7E1A1B47 for ; Wed, 4 Oct 2017 12:53:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.302 X-Spam-Level: X-Spam-Status: No, score=-2.302 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XatfKw2-8woj for ; Wed, 4 Oct 2017 12:53:19 +0000 (UTC) Received: from unibi-smtp-b.hrz.uni-bielefeld.de (unibi-smtp-b.hrz.uni-bielefeld.de [129.70.208.22]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 67BDF5F3D1 for ; Wed, 4 Oct 2017 12:53:18 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8 Received: from [129.70.11.68] ([129.70.11.68]) by unibi-smtp-b.hrz.uni-bielefeld.de (Oracle Communications Messaging Server 7.0.5.37.0 64bit (built Jan 25 2016)) with ESMTPPA id <0OXA004Q0UGOY250@unibi-smtp-b.hrz.uni-bielefeld.de> for solr-user@lucene.apache.org; Wed, 04 Oct 2017 14:53:12 +0200 (CEST) X-Connecting-IP: [129.70.11.68] X-PMX-Version: 6.3.3.2656215, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2017.10.4.124516, AntiVirus-Engine: 5.43.0, AntiVirus-Data: 2017.10.4.5430001, pmx12 X-EnvFrom: bernd.fehling@uni-bielefeld.de Subject: Re: solrj howto update documents with expungeDeletes To: solr-user@lucene.apache.org References: <90d98486-7a6f-bc8e-32eb-a1e7f7371bde@uni-bielefeld.de> <18612_1507116467_v94BRkdp027003_A4C8E8CD-339F-45F1-840C-9C11AE876CB1@sematext.com> From: Bernd Fehling Message-id: <284fa66e-0909-5b93-4ba2-ad7023684d26@uni-bielefeld.de> Date: Wed, 04 Oct 2017 14:53:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 In-reply-to: <18612_1507116467_v94BRkdp027003_A4C8E8CD-339F-45F1-840C-9C11AE876CB1@sematext.com> Content-language: de-DE archived-at: Wed, 04 Oct 2017 12:53:24 -0000 Hi Emir, can you point out which commit you are using for expungeDeletes true/false? My commit has only commit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit) Or is expungeDeletes true/false a special combination of the boolean parameters? Regards, Bernd Am 04.10.2017 um 13:27 schrieb Emir Arnautović: > Hi Bernd, > When it comes to updating, it does not exist because indexed documents are not updatable - you can add new document with the same id and old one will be flagged as deleted. No need to delete explicitly. > > When it comes to expungeDeletes - that is a flag that can be set when committing. > > HTH, > Emir > -- > Monitoring - Log Management - Alerting - Anomaly Detection > Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > > > >> On 4 Oct 2017, at 10:38, Bernd Fehling wrote: >> >> A simple question about solrj (Solr 6.4.2), >> >> how to update documents with expungeDeletes true/false? >> >> In org.apache.solr.client.solrj.SolrClient there are many add, >> commit, delete, optimize, ... but no "update". >> >> What is the best way to "update"? >> - just "add" the same docid with new content as update? >> - first "deleteById" and then "add"? >> - anything else...? >> >> And how accomplish "expungeDeletes" true/false ? >> >> Thanks, Bernd