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 DAA86200BA7 for ; Fri, 21 Oct 2016 11:54:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D9382160AE8; Fri, 21 Oct 2016 09:54:27 +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 2A1BC160AE0 for ; Fri, 21 Oct 2016 11:54:27 +0200 (CEST) Received: (qmail 63738 invoked by uid 500); 21 Oct 2016 09:54:25 -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 63727 invoked by uid 99); 21 Oct 2016 09:54:25 -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, 21 Oct 2016 09:54:25 +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 35716C0118 for ; Fri, 21 Oct 2016 09:54:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.01 X-Spam-Level: X-Spam-Status: No, score=-1.01 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id QsiIbHbW14Rp for ; Fri, 21 Oct 2016 09:54:23 +0000 (UTC) Received: from mail02.lombardodier.com (mail02.lombardodier.com [80.169.233.143]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A278A5F39A for ; Fri, 21 Oct 2016 09:54:22 +0000 (UTC) Received: from pps.filterd (GVAGTW02.biz.lodh.com [127.0.0.1]) by GVAGTW02.biz.lodh.com (8.15.0.59/8.15.0.59) with SMTP id u9L9p5Ku027678 for ; Fri, 21 Oct 2016 11:54:03 +0200 Received: from gvamsg01.biz.lodh.com (gvamsg01.biz.lodh.com [10.159.99.2]) by GVAGTW02.biz.lodh.com with ESMTP id 267grcr05e-1 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 21 Oct 2016 11:54:03 +0200 Received: from gvamsg03.biz.lodh.com (10.159.99.4) by gvamsg01.biz.lodh.com (10.159.99.2) with Microsoft SMTP Server (TLS) id 15.1.396.30; Fri, 21 Oct 2016 11:54:03 +0200 Received: from GVACAS03.biz.lodh.com (10.159.93.41) by gvamsg03.biz.lodh.com (10.159.99.4) with Microsoft SMTP Server (TLS) id 15.1.396.30 via Frontend Transport; Fri, 21 Oct 2016 11:54:03 +0200 Received: from GVADAG05.biz.lodh.com ([169.254.4.135]) by gvacas03.biz.lodh.com ([10.159.93.41]) with mapi id 14.03.0319.002; Fri, 21 Oct 2016 11:54:03 +0200 From: Ludovic Bertin To: "'java-user@lucene.apache.org'" Subject: Migration Lucene 4 -> Lucene 6 Thread-Topic: Migration Lucene 4 -> Lucene 6 Thread-Index: AdIrcC4RZOq+l/cgTHGiYHEJIaLGLg== Date: Fri, 21 Oct 2016 09:54:02 +0000 Message-ID: <314AF4DACD62AA4AB1D67B9969F4041417937B53@gvadag05.biz.lodh.com> Accept-Language: en-US, fr-CH Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: multipart/alternative; boundary="_000_314AF4DACD62AA4AB1D67B9969F4041417937B53gvadag05bizlodh_" MIME-Version: 1.0 archived-at: Fri, 21 Oct 2016 09:54:28 -0000 --_000_314AF4DACD62AA4AB1D67B9969F4041417937B53gvadag05bizlodh_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, When I'm trying to launch search with ordering, but it fails with exception= : unexpected docvalues type NONE for field 'LOCAL_TIME' (expected=3DNUMERI= C). Re-index with correct docvalues type. For indexing: doc.add(new LongPoint("longValue", (Long) value)); doc.add(new StoredField("longValue", (Long) value)); For searching: Sort sort =3D new Sort(new SortField("longValue", SortField.Type.LONG, fals= e) searcher.search(query, max, sort); =F0 unexpected docvalues type NONE for field 'LOCAL_TIME' (expected=3DNUME= RIC). Re-index with correct docvalues type. Do I have to reindex all my data, or can I change the way to do the search = ? If I have to reindex, what is the correct way to index with sort capabiliti= es ? Thanks Ludovic BERTIN [[ rethink everything. ]] DISCLAIMER ********************************************** This message is intended only for use by the person to whom it is addressed. It may contain information that is privileged and confidential. Its content does not constitute a formal commitment by Bank Lombard Odier & Co Ltd or any of its branches or affiliates. If you are not the intended recipient of this message, kindly notify the sender immediately and destroy this message. Thank You. *************************************************************** --_000_314AF4DACD62AA4AB1D67B9969F4041417937B53gvadag05bizlodh_--