From java-user-return-63964-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Fri Aug 24 07:16:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3AF33180629 for ; Fri, 24 Aug 2018 07:16:11 +0200 (CEST) Received: (qmail 37977 invoked by uid 500); 24 Aug 2018 05:16:09 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 37963 invoked by uid 99); 24 Aug 2018 05:16:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2018 05:16:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7FD7CC0322 for ; Fri, 24 Aug 2018 05:16:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.148 X-Spam-Level: ** X-Spam-Status: No, score=2.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id CDYjKm26TsTG for ; Fri, 24 Aug 2018 05:16:03 +0000 (UTC) Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CF8F15F416 for ; Fri, 24 Aug 2018 05:16:02 +0000 (UTC) Received: by mail-ua1-f51.google.com with SMTP id c12-v6so4667320uan.3 for ; Thu, 23 Aug 2018 22:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=k0qKPuI8mO+AfuB5GW5rbUnxrrfyme45/aqr4UdL1KQ=; b=I++rP4m7CVJDCKG/vne2yJgWw72JBVcyWFWsRV+psG8UedVHe+MJOyO/y3OLJTNGFs lCIi9TvlnBQr5JJhYBL5PuCQw3zSey0qsy+DN2QYFdXhrPgteTGfVpJ6KeQyYJmBxFD/ mUbpyBcYtamNHWSp1XiQHvLMjzxU+XAgd39C9fDosgJJwqJXGkBO9aCzqVUY8IKIzz/C MqNEKNwgiKWalBGcl5pUzUa13oIn/BNIO1kgX/3+9mMnwI1oAyhVBzfUIhOtDPyF5mx3 fGYiAXSfuEkj4TcL4tRf1U3x9BYAEoe9WWnAzKphRcvfc5nb8wpgaU3zalHgOcTHV115 K8Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=k0qKPuI8mO+AfuB5GW5rbUnxrrfyme45/aqr4UdL1KQ=; b=aBVPJqjY/eHEouW5hk99Nb+8sQRFc/obZJ4GI62BW7eSZoYMQsyZHBbaycjKvekrnR pCHfayYwB0lqioybZNXzYAy2AGZQ4rxL396FzNPoYDCzpIBiIP5esaWaRvMWobIhDr2J Xr7aIRZ4t/9Bj2iExSNUc+aMCmXchJXyipPBQYjgFLNxPvop4tG3Be20D3dhN0TCZn6c pnZeCzRsw53IBvXRC3GgzX5Ia+LXR/YhDnMpabgiWVI14VPHUebWqbdNp3hLNpj/yRCz w+X1bPVPk0Emfhjz+Gjx0+x9MGO16KM+NOx8GLhXxMduF9i2475iJ/T6A9ezlU0J0fgq mQQg== X-Gm-Message-State: APzg51Aj5pEJ53YfLZpa2pki7rtgGtXQrg1XIsGGY8EDnXfWaFzoh6EU EuWGdxL1PIeZ1uxL7sMZUYrWL6RukYYQsnDq0pP7Wg== X-Google-Smtp-Source: ANB0Vda8gP/VwywZYnf0zoRFyyJW+F206DAUxfJreyWuxLSraaZOLrJydAd+c6YwaBVo+3KzV8170LI9tugPvphzSus= X-Received: by 2002:ab0:f:: with SMTP id 15-v6mr65696uai.91.1535087761399; Thu, 23 Aug 2018 22:16:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kevin Manuel Date: Thu, 23 Aug 2018 22:15:48 -0700 Message-ID: Subject: Re: Question about BytesRef and BinaryDocValues To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary="000000000000b7a5d60574277854" --000000000000b7a5d60574277854 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Vadim, Thank you so much for your reply. I think you were right. So if a field is 'analyzed' how can I get both terms 'hey' and 'tom'? Thanks, Kevin On Thu, Aug 23, 2018, 20:26 Vadim Gindin wrote: > Hi Kevin! > > I think that your field is "analyzed" and so your field value is divided = to > 2 terms "hey" and "tom". So docvalue is written for each of them. > > Regards > Vadim Gindin > > > =D0=BF=D1=82, 24 =D0=B0=D0=B2=D0=B3. 2018, 5:19 Kevin Manuel : > > > Hi, > > > > I'm using lucene version 4.3.1 and I've implemented a custom score quer= y. > > I'm trying to read the value for a field from the field cache. It's a > text > > field so I'm using getTerms which returns a binarydocvalues object. > > > > However on trying to get the bytes ref object for a document and > converting > > it to a string using utf8ToString I think characters after a whitespace > and > > not being returned in the string. For instance if the field has 'hey > tom', > > the string only returns 'hey'. > > > > I tried this with version 4.10.0 too and I see the same thing. I was > > wondering if there's something wrong with the way I'm accessing it or i= t > > was an issue in these versions. > > > > Thanks, > > Kevin > > > --000000000000b7a5d60574277854--