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 A03D8200D0A for ; Wed, 4 Oct 2017 15:03:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9F0B91609E2; Wed, 4 Oct 2017 13:03:20 +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 BDD5B1609D6 for ; Wed, 4 Oct 2017 15:03:19 +0200 (CEST) Received: (qmail 91831 invoked by uid 500); 4 Oct 2017 13:03:18 -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 91813 invoked by uid 99); 4 Oct 2017 13:03:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2017 13:03:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EA56D180B02 for ; Wed, 4 Oct 2017 13:03:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.48 X-Spam-Level: X-Spam-Status: No, score=0.48 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, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id JSFBUfipu6Hz for ; Wed, 4 Oct 2017 13:03:14 +0000 (UTC) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B560D60D79 for ; Wed, 4 Oct 2017 13:03:13 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id u138so23016913wmu.4 for ; Wed, 04 Oct 2017 06:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sematext-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=h3TgEt0gMkX2BGmmIFuCbbN3Z9z9xQOI1DA6tCjLAmc=; b=OO7qu/SGzDyoFxl7hHjaTCTo5IrWVjkdvhG4YZrO3carfc0CCMIIC8jt2JQU2W5Ovq vP0NDF9rXG2R2Q293NanDGz0M7vAnGRbBXEzLbVlqv1UO7yQntDYZhuHU25zBdPlKfZ6 Amg990KGGx8z7OlqQygUcz7D2GH7DZ9NIGCJtpir9vc2rqzrSc6hXXCFbVjHDRuYJ2w9 U6gFPrifNs7i5j5gGC3OsSbLnkJJAVVJxW/toYC96Fl5O8RCSbs9f3Tt4QXUg6JHZJvU bV9XVCLGlbv45RLBqNFGHwUYbsmE3+3XVHyaYVTeXPGVY3vHBAIXEca6TDeunBcOE6Zo +kPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=h3TgEt0gMkX2BGmmIFuCbbN3Z9z9xQOI1DA6tCjLAmc=; b=hlFPjEmRJVejxWFZI+vIJ1gQqTtMbkQQFvm0qjLxSXsztwfvc1X2kUf9DL5azasLl2 wOB8aFTS9OSb5AlmkC9LReUcIcrny4iRVinUyBBT+ZQCghetFt14UgKlMCS18fymKre2 roD8pTQGGyicixOKoUFJsBLnjzZNrDcVmkHX/s3qJJe4LaZNRobXJolNYIpb1HkXn+wG 41XruYZsI/II0sMH9kctVZDbz/fy0IL9bZ6Pv81Lf5eTPdheCxvuwNkRR73SztG2XBUR VaC/mlR+lz5SedhGcM7WqwgQn8/EKre2v4ZyOfaJ2ilWkPALGxQjBjGLuCY3mCUXG6S4 PbbA== X-Gm-Message-State: AMCzsaWElbB1Bmv/wGd1ydMBANUWx8O6sPeWqRyfqLyaHSDYKU5gQuF2 Wt86rcA1enAAfsUeIQ302Zyv0k5K5rU= X-Google-Smtp-Source: AOwi7QB1KSGaeBAHT+AnaFvL+CGPRSA9Aqbs0tAyInhwuZ3LiHkJ3vYEqvkzV0FnUxMNOU/J7GDQYg== X-Received: by 10.28.92.136 with SMTP id q130mr15439889wmb.35.1507122192842; Wed, 04 Oct 2017 06:03:12 -0700 (PDT) Received: from [192.168.43.207] ([212.39.104.136]) by smtp.gmail.com with ESMTPSA id v19sm5350204wrd.75.2017.10.04.06.03.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 06:03:12 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Very high number of deleted docs From: =?utf-8?Q?Emir_Arnautovi=C4=87?= X-Priority: 3 (Normal) In-Reply-To: Date: Wed, 4 Oct 2017 15:03:06 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <2C4D760D-68E8-4DD7-8713-D7833F2E04CA@sematext.com> References: To: solr-user@lucene.apache.org X-Mailer: Apple Mail (2.3273) archived-at: Wed, 04 Oct 2017 13:03:20 -0000 Hi Markus, It is passed but not explicitly - it uses reflection to pass arguments - = take a look at parent factory class. When it comes to force merging - you have extreme case - 80% is deleted = (my guess frequent updates) and extreme cases require some extreme = measures - it can be either periodic force merge or full reindexing + = aliases. HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 4 Oct 2017, at 14:47, Markus Jelsma = wrote: >=20 > Do you mean a periodic forceMerge? That is usually considered a bad = habit on this list (i agree). It is just that i am actually very = surprised this can happen at all with default settings. This factory, = unfortunately does not seem to support settings configured in = solrconfig. >=20 > Thanks, > Markus >=20 > -----Original message----- >> From:Amrit Sarkar >> Sent: Wednesday 4th October 2017 14:42 >> To: solr-user@lucene.apache.org >> Subject: Re: Very high number of deleted docs >>=20 >> Hi Markus, >>=20 >> Emir already mentioned tuning *reclaimDeletesWeight which *affects = segments >> about to merge priority. Optimising index time by time, preferably >> scheduling weekly / fortnight / ..., at low traffic period to never = be in >> such odd position of 80% deleted docs in total index. >>=20 >> Amrit Sarkar >> Search Engineer >> Lucidworks, Inc. >> 415-589-9269 >> www.lucidworks.com >> Twitter http://twitter.com/lucidworks >> LinkedIn: https://www.linkedin.com/in/sarkaramrit2 >>=20 >> On Wed, Oct 4, 2017 at 6:02 PM, Emir Arnautovi=C4=87 < >> emir.arnautovic@sematext.com> wrote: >>=20 >>> Hi Markus, >>> You can set reclaimDeletesWeight in merge settings to some higher = value >>> than default (I think it is 2) to favor segments with deleted docs = when >>> merging. >>>=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 13:31, Markus Jelsma >>> wrote: >>>>=20 >>>> Hello, >>>>=20 >>>> Using a 6.6.0, i just spotted one of our collections having a core = of >>> which over 80 % of the total number of documents were deleted = documents. >>>>=20 >>>> It has >>> configured with no non-default settings. >>>>=20 >>>> Is this supposed to happen? How can i prevent these kind of = numbers? >>>>=20 >>>> Thanks, >>>> Markus >>>=20 >>>=20 >>=20