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 BA052200D0A for ; Wed, 4 Oct 2017 15:11:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B8DA71609E2; Wed, 4 Oct 2017 13:11:28 +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 0ACFA1609D6 for ; Wed, 4 Oct 2017 15:11:27 +0200 (CEST) Received: (qmail 18449 invoked by uid 500); 4 Oct 2017 13:11:26 -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 18398 invoked by uid 99); 4 Oct 2017 13:11:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2017 13:11:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0F290C0EB9 for ; Wed, 4 Oct 2017 13:11:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=sematext-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PgwO3mndCFbq for ; Wed, 4 Oct 2017 13:11:24 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 80B8E5FE02 for ; Wed, 4 Oct 2017 13:11:23 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id i124so23035768wmf.3 for ; Wed, 04 Oct 2017 06:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sematext-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=WJDsF8toHkQS5WEGVN5RF7cZPrrbCsAtWIm8iYYwOhM=; b=M2Wk2SPrchPRFH2jyTp1eDVOSHPTDFB4KLeEGpMeAlbPliNK9am9FlCsIRvD0Rx0xH 1zZnYZq35+f3/9Ps0Dp1yrK18K5q7lrXkmFmz2xZUhFtanZDS9hu5tTDn41eKlIS8r3i IngbkTzisR3Zc0G/85s1Y/J3rXriwY6GyYwYMZl4s7HPjyBEg1Vv4GDp0BCj1/D9mAPP pwLqawbrynVnahoWglh0CwL00VAqMmZsIsy1G/6v4F6ZF6qKxEbr79WIlr6FPlBeK8e/ vy870zCNEdrDHGbwqQJpZ/eTZwwZ/3eDpzujzRl6mxRH9L4tTIA6e4pLzgSoCF46Hm2A 4g3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=WJDsF8toHkQS5WEGVN5RF7cZPrrbCsAtWIm8iYYwOhM=; b=P31Od4jQpw1tiOZ3vrsQlDBajn51hA3x3ajbn6UGO7ubfg/RLvQyK9BVwoxSv9x3+b wP+yq0oDpTz0PSNoZh/MlGJB088EwELHuDiY+h9YdjE0ACrPSkRzPQcM33I9FF6fes1s z3seVCVS0zY+amM/yNBPaVjpTF1Sgiq1T5rpr7peKUeMFqcNIRILUNUk9Ni1vAcWM3/X smKNlHUmLIFEuqunGgDI6O0NWAxxiT3XPx1jwTIg1dHrRweZudHv/Vkpc8M78sDjwMxD sO0K+MulLcp7dFmAMjvoSQBQ4+hNisKGWecZCVfVzU8PDFcjK68N4hgEEGEEy1efJfmH 3eVA== X-Gm-Message-State: AMCzsaWPAUQ9qkXsIiM6Jhr7h4qm7HRKIwmVb29FpDeOOtXqLYzOV8Rh fT09rwE1jM4jD3ya3qSiEw6axtNvLOc= X-Google-Smtp-Source: AOwi7QALmM+Xvs5kcZlDPdQ4+uWO5P6AF12HU9OxiiTWoCAFwYd4IkwW9MznJggqG91aEIFCMFRS9A== X-Received: by 10.28.210.72 with SMTP id j69mr14365099wmg.75.1507122682685; Wed, 04 Oct 2017 06:11:22 -0700 (PDT) Received: from [192.168.43.207] ([212.39.104.136]) by smtp.gmail.com with ESMTPSA id b9sm4163757wrf.32.2017.10.04.06.11.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 06:11:22 -0700 (PDT) From: =?utf-8?Q?Emir_Arnautovi=C4=87?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: solrj howto update documents with expungeDeletes Date: Wed, 4 Oct 2017 15:11:16 +0200 References: <90d98486-7a6f-bc8e-32eb-a1e7f7371bde@uni-bielefeld.de> <18612_1507116467_v94BRkdp027003_A4C8E8CD-339F-45F1-840C-9C11AE876CB1@sematext.com> <284fa66e-0909-5b93-4ba2-ad7023684d26@uni-bielefeld.de> To: solr-user@lucene.apache.org In-Reply-To: <284fa66e-0909-5b93-4ba2-ad7023684d26@uni-bielefeld.de> Message-Id: <0A793407-0154-4B9E-A7E1-32DA87FFF2D5@sematext.com> X-Mailer: Apple Mail (2.3273) archived-at: Wed, 04 Oct 2017 13:11:28 -0000 Hi Bernd, I guess it is not exposed in Solrj. Maybe for good reason - it is rarely = good to call it. You might better set reclaimDeletesWeight in your merge = config and keep number of deleted docs under control that way. Regards, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 4 Oct 2017, at 14:53, Bernd Fehling = wrote: >=20 > Hi Emir, >=20 > 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) >=20 > Or is expungeDeletes true/false a special combination of the boolean = parameters? >=20 > Regards, Bernd >=20 >=20 > Am 04.10.2017 um 13:27 schrieb Emir Arnautovi=C4=87: >> 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. >>=20 >> When it comes to expungeDeletes - that is a flag that can be set when = committing. >>=20 >> HTH, >> Emir >> -- >> Monitoring - Log Management - Alerting - Anomaly Detection >> Solr & Elasticsearch Consulting Support Training - = http://sematext.com/ >>=20 >>=20 >>=20 >>> On 4 Oct 2017, at 10:38, Bernd Fehling = wrote: >>>=20 >>> A simple question about solrj (Solr 6.4.2), >>>=20 >>> how to update documents with expungeDeletes true/false? >>>=20 >>> In org.apache.solr.client.solrj.SolrClient there are many add, >>> commit, delete, optimize, ... but no "update". >>>=20 >>> What is the best way to "update"? >>> - just "add" the same docid with new content as update? >>> - first "deleteById" and then "add"? >>> - anything else...? >>>=20 >>> And how accomplish "expungeDeletes" true/false ? >>>=20 >>> Thanks, Bernd