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 981AA200C65 for ; Sat, 29 Apr 2017 20:39:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 966A8160BA9; Sat, 29 Apr 2017 18:39:12 +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 B7C18160B98 for ; Sat, 29 Apr 2017 20:39:11 +0200 (CEST) Received: (qmail 18801 invoked by uid 500); 29 Apr 2017 18:39:10 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 18790 invoked by uid 99); 29 Apr 2017 18:39:10 -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; Sat, 29 Apr 2017 18:39:10 +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 042A218396C for ; Sat, 29 Apr 2017 18:39:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 96CUPgxKE3Qh for ; Sat, 29 Apr 2017 18:39:08 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5B7785F642 for ; Sat, 29 Apr 2017 18:39:08 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id x184so57054308oia.1 for ; Sat, 29 Apr 2017 11:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=E2p3YwBZFNpowpqn034J72XUrVhAvC6QunvIe4aVEP0=; b=uJiQ/X+z/vdU0YuEk716MZWFkH5nk1sU9y9DA1tDbwsuuahPeqLXFmtwo8yq9556xW xBqKlo+as/QfAItXiSDc4nx9ueWSFfJRHZwwU/N859mkVWb9y47M9LlXS3q2QT+ZXuqR WHox8cGEyjct8v8u/pwtPZSwpWpo02ktfG9dYqhIkOY9OJkGeRFqGAm/sWXtBOLT/c+E kP/w4328PD1LJoj8DysNFvORLGQZAnrm/vAhnA2tqdbXDjEj7zArR8cVHQndN0Tp07Nj VczREqXL7rnVu6JRktS/oJs5f4SYRBIEcX5W16rpqAQ6hcs4L0egfGIkx8eGq2c3Bdr/ 6iNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=E2p3YwBZFNpowpqn034J72XUrVhAvC6QunvIe4aVEP0=; b=gDK2DY0e+jy99Oh4VxNJOZcm7R0NycIYagso0SeY084tes1pqtgrCSV6oQY5qv9x4z 6O2u7KYeJsBYCWF5Aus7ucSFnW58uQLuzn+e9LvxUSd9seVFCOmgsMI65YiTpJxO8XYr KA2OC7oCYna10Suq9FKjKfOHMQgRfJTE6UKkNBJ6YeRxtk9oEmfgQlGoqOcTShs8javj zAXMkhnsyG/eZqZqvaYKBOhXCnHqXkJeVZF5NMFqA8iywDdYpWOJ1qpFhstyqD2OEnI/ G0cb/to0H4jBfVLCCbdZY2BheCuK8T9fzBx8wxCrYJ6Sc3+N7Ap8A7UNNy/kmtzNy4RZ Gcbg== X-Gm-Message-State: AN3rC/6nbXoS7Bqv3ks3LzVvnOKSepoBuUVi9n4/ZcaEtsqPrxGnBAzt 30dOvfPXUU7DSDKGi0pZIsfvDNvyandM X-Received: by 10.202.177.135 with SMTP id a129mr6713428oif.13.1493491147742; Sat, 29 Apr 2017 11:39:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.34.168 with HTTP; Sat, 29 Apr 2017 11:38:47 -0700 (PDT) In-Reply-To: References: <3b9a8a65-1774-e747-62bd-451784ed1c35@elyograg.org> From: Dorian Hoxha Date: Sat, 29 Apr 2017 20:38:47 +0200 Message-ID: Subject: Re: Why no composite primary-key in lucene ? To: dev@lucene.apache.org Content-Type: multipart/alternative; boundary=001a113cd2905624f6054e52817d archived-at: Sat, 29 Apr 2017 18:39:12 -0000 --001a113cd2905624f6054e52817d Content-Type: text/plain; charset=UTF-8 @Yonik Thanks, makes sense. @Walter After reading the cwiki page on update request processor looks like you can't modify the GET/DELETE handlers, right ? Because I want to NOT index/store the 'id' field, so clients/solr-cloud (which needs /get) continue to work normally but internally 'id' appears only in translog. And I need to do something similar for GET/DELETE. How to do that ? Regards, Dorian On Sat, Apr 29, 2017 at 8:04 PM, Walter Underwood wrote: > If you do want a composite key in Solr, you could use an update request > processor script to make it out of the multiple fields. > > wunder > Walter Underwood > wunder@wunderwood.org > http://observer.wunderwood.org/ (my blog) > > > On Apr 29, 2017, at 11:02 AM, Yonik Seeley wrote: > > On Sat, Apr 29, 2017 at 1:45 PM, Dorian Hoxha > wrote: > > @Yonik > > Thanks makes sense. So this means that the 'id' need to be indexed(is > always?), (so you can get/update/delete docs not in translog), right ? > > > In Solr, yes. In Lucene, only if you want lookup-by-id to be fast, or > if you want to use updateDocument with an indexed term for overwriting > documents. > > -Yonik > > > On Sat, Apr 29, 2017 at 7:24 PM, Yonik Seeley wrote: > > > Solr doesn't use Lucene for RT GET, it uses it's transaction log. > Only when the document is not found in the transaction log will it go > and consult the lucene index (which can only search as of the last > commit). > > -Yonik > > On Sat, Apr 29, 2017 at 12:57 PM, Dorian Hoxha > wrote: > > I know all that. My point is, lucene is NRT, while GET is RT (in both > ES/SOLR). How does lucene return the right document (Term Query) before > doing a commit on GET ? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > > --001a113cd2905624f6054e52817d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
@Yonik Thanks, makes sense.
@Walter

After reading the cwiki page on update request processor looks like you can't modif= y the GET/DELETE handlers, right ?
Because I want to NOT index/sto= re the 'id' field, so clients/solr-cloud (which needs /get) continu= e to work normally but internally 'id' appears only in translog.
And I need to do something similar for GET/DELETE.

How to d= o that ?

Regards,
Dorian

On Sat, Apr 29, 2017 at 8:04 PM, Wal= ter Underwood <wunder@wunderwood.org> wrote:
If you do want a= composite key in Solr, you could use an update request processor script to= make it out of the multiple fields.

wunder

On Apr 29, 2017, at 11:02 AM, Yonik= Seeley <yseeley@= gmail.com> wrote:

On Sat, Apr 29, 2017 at 1:45 PM, Dorian Hoxha <= ;dorian.hoxha@g= mail.com> wrote:
@Yonik

Thanks m= akes sense. So this means that the 'id' need to be indexed(is
al= ways?), (so you can get/update/delete docs not in translog), right ?

In Solr, yes.=C2=A0 In Lucene, only if you want lookup-by-id = to be fast, or
if you want to use updateDocument with an indexed term fo= r overwriting
documents.

-Yonik


On Sat, Apr 29, 2017 at 7:24 PM, Yonik Seeley <yseeley@gmail.com> wrote:

Solr doesn't use Lucene for RT GET, it uses it= 's transaction log.
Only when the document is not found in the trans= action log will it go
and consult the lucene index (which can only searc= h as of the last
commit).

-Yonik

On Sat, Apr 29, 2017 at 1= 2:57 PM, Dorian Hoxha <dorian.hoxha@gmail.com>
wrote:
I know all that. My point is, lucene is NRT, while GET is RT (in bot= h
ES/SOLR). How does lucene return the right document (Term Query) befor= e
doing a commit on GET ?

--------------------------= -------------------------------------------
To unsubscribe, e-= mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-= mail: dev-h= elp@lucene.apache.org



--------= -------------------------------------------------------------
= To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For addit= ional commands, e-mail: dev-help@lucene.apache.org



--001a113cd2905624f6054e52817d--