From pylucene-dev-return-3048-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Tue Jun 18 02:57:02 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id BBDB318076D for ; Tue, 18 Jun 2019 04:57:01 +0200 (CEST) Received: (qmail 63931 invoked by uid 500); 18 Jun 2019 02:57:01 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 63913 invoked by uid 99); 18 Jun 2019 02:57:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2019 02:57:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8C94DE02E3 for ; Tue, 18 Jun 2019 02:57:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4BD4424633 for ; Tue, 18 Jun 2019 02:57:00 +0000 (UTC) Date: Tue, 18 Jun 2019 02:57:00 +0000 (UTC) From: "Andi Vajda (JIRA)" To: pylucene-dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PYLUCENE-50) StoredField of an int has the wrong type. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PYLUCENE-50?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D168= 66175#comment-16866175 ]=20 Andi Vajda commented on PYLUCENE-50: ------------------------------------ Thank you, Aric, for you reporting this. Andi.. ?? {{field =3D document.StoredField('', 0)}} > StoredField of an int has the wrong type. > ----------------------------------------- > > Key: PYLUCENE-50 > URL: https://issues.apache.org/jira/browse/PYLUCENE-50 > Project: PyLucene > Issue Type: Bug > Environment: Python 3 official docker container, 8.1.1rc > Reporter: A. Coady > Priority: Critical > > The StoredField constructor is interpreting ints as bytes. =C2=A0It's onl= y reproducing on the 8 rc. > {{import lucene}} > {{lucene.initVM()}} > {{from org.apache.lucene import document}} > =C2=A0 > {{field =3D document.StoredField('', 0)}} > {{print(field.numericValue(), field.binaryValue())}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)