Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC141185AD for ; Thu, 17 Dec 2015 19:19:46 +0000 (UTC) Received: (qmail 66102 invoked by uid 500); 17 Dec 2015 19:19:45 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 66042 invoked by uid 500); 17 Dec 2015 19:19:45 -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 66030 invoked by uid 99); 17 Dec 2015 19:19:44 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2015 19:19:44 +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 0D2951804A5 for ; Thu, 17 Dec 2015 19:19:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.88 X-Spam-Level: *** X-Spam-Status: No, score=3.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id FW3ZtgheZTUE for ; Thu, 17 Dec 2015 19:19:42 +0000 (UTC) Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 3FFAC201A4 for ; Thu, 17 Dec 2015 19:19:41 +0000 (UTC) Received: by mail-vk0-f46.google.com with SMTP id f2so13770401vkb.3 for ; Thu, 17 Dec 2015 11:19:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FlhzRzU7TqzNUgn9yB2KdQ1URhnlAvGhpHiiL1fj8iM=; b=pzx1H2nq+6dnTdSexpKUG4p9tXvjWV794jm8i+jK1JNjMOXWhTMX4ZWfdCvHrjxa3i C8MMTj5i2T4/oUdi9lbY0j85vRQM5KQDwlWawkzly9HayTHQfKzTZErAQ/u1M1KJCFKD p0++zf3RWYxpPSxGpmOqO5yGzAQYwUAEZOJcQ6yCCfAiiU2n4jLrLS+fe65zDagolCYH Wbi6MWYVBUAyikcqqCyOofchDG0moSqjlqdFhmPj5UFbL62ej/UqyOj0HKcUe8l9EJ6/ XwxGheUecgbYAIlZcojnTjyzINKy3KSzW1UQOEfbaAqloBkTWvQhp2JmQnHplYwPMSok 8nVg== MIME-Version: 1.0 X-Received: by 10.31.8.72 with SMTP id 69mr35627966vki.145.1450379980073; Thu, 17 Dec 2015 11:19:40 -0800 (PST) Received: by 10.31.47.137 with HTTP; Thu, 17 Dec 2015 11:19:40 -0800 (PST) In-Reply-To: References: <-2948627397515939324@unknownmsgid> Date: Thu, 17 Dec 2015 14:19:40 -0500 Message-ID: Subject: Re: Need change one field type from IntField to String including indexOptions to store positions & Norms From: Jack Krupansky To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a114550808087b305271ce75b --001a114550808087b305271ce75b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You could certainly read your stored values from your current index and then write new documents to a new index and then use the new index. That's if all of the indexed field values are stored. -- Jack Krupansky On Thu, Dec 17, 2015 at 2:10 PM, Kumaran Ramasubramanian wrote: > Hi Jack Krupansky > > Thanks for the reply. That will work fine. But i am trying to use the > stored values instead of hitting database for reindex. Isn't it better wa= y > to reindex? Any inputs? > > > -- > =E2=80=8BKumaran R > > > > > On Thu, Dec 17, 2015 at 11:50 PM, Jack Krupansky > > wrote: > > > Delete the full index and create from scratch with the correct field > type, > > re-adding all documents. Any remnants of the old field must be removed. > > > > -- Jack Krupansky > > > > On Thu, Dec 17, 2015 at 11:48 AM, Kumaran R wrote: > > > > > While Reindexing only am facing this problem. > > > > > > Just to confirm what do you mean by reindex. You mean "delete and add= " > > > for all documents by taking data one by one right?? > > > > > > Sent from Phone > > > > > > > On 17-Dec-2015, at 8:53 PM, Jack Krupansky > > > > wrote: > > > > > > > > The standard answer is that you need to reindex all of your data. > > > > > > > > -- Jack Krupansky > > > > > > > > On Thu, Dec 17, 2015 at 6:10 AM, Kumaran Ramasubramanian < > > > kums.134@gmail.com > > > >> wrote: > > > > > > > >> Dear All > > > >> > > > >> i am using lucene 4.10.4. Is there any more information i missed t= o > > > >> provide? Please let me know. > > > >> > > > >> > > > >> -- > > > >> Kumaran R*=E2=80=8B* > > > >> > > > >> > > > >> > > > >> > > > >> On Wed, Dec 16, 2015 at 10:35 PM, Kumaran Ramasubramanian < > > > >> kums.134@gmail.com> wrote: > > > >> > > > >>> > > > >>> Hi All, > > > >>> > > > >>> Previous Post - > > > >>> http://www.gossamer-threads.com/lists/lucene/java-user/289159 > > > >>> > > > >>> i have indexed one field "STATUS" as both IntField & String > > field > > > >> in > > > >>> same index. Now i want to take IntField containing documents and > > change > > > >> the > > > >>> value of field "STATUS" to string with norms & positions ( to > achieve > > > >>> phrase query). > > > >>> > > > >>> But even if i delete that field and index again as String field, > > > =E2=80=8B*STATUS > > > >>> field property of "omitNorms & no positions" are not changing *( > > which > > > >>> are set when it was IntField) > > > >>> > > > >>> There are around 2 million documents in that index. indexed STATU= S > > > field > > > >>> as > > > >>> IntField - in 1 million documents > > > >>> Analyzed String Field - in another 1 million doucments > > > >>> > > > >>> Basically, am trying to change STATUS field into only one type ( = to > > > solve > > > >>> http://www.gossamer-threads.com/lists/lucene/java-user/289159) > > > >>> > > > >>> > > > >>> *In index when it was IntField* > > > >>> > > > >>> > > > > > >>> > > > >>> > > > >>> > > > >>> *=E2=80=8B=E2=80=8Bwhen=E2=80=8B i try to change to string from= =E2=80=8B IntField* > > > >>> > > > >>> =E2=80=8Bstored,indexed,tokenized > > > >>> > > > >>> > > > >>> > > > >>> > > > >>> *This is how STATUS field looks again in index* > > > >>> > > > >>> > > > > =E2=80=8B > > >>>> index cleared>=E2=80=8B > > > >>> =E2=80=8B > > > >>> > > > >>> > > > >>> > > > >>> *code details i am using:* > > > >>> > > > >>> for IntField, > > > >>> IntField intField =3D new IntField("STATUS", Integer.parseInt(" > > > >>> =E2=80=8B222=E2=80=8B > > > >>> "), Field.Store.YES); > > > >>> doc > > > >>> =E2=80=8Bument=E2=80=8B > > > >>> .add(intField); > > > >>> > > > >>> =E2=80=8Bfor string field, > > > >>> =E2=80=8Bdocument.add(new Field("STATUS", "lucene index cleared", > > > >> Field.Store.YES, > > > >>> Field.Index.ANALYZED)); > > > >>> > > > >>> > > > >>> > > > >>> =E2=80=8BThanks in advance=E2=80=8B :-) > > > >>> > > > >>> > > > >>> > > > >>> -- > > > >>> =E2=80=8BK=E2=80=8B > > > >>> umaran > > > >>> =E2=80=8BR=E2=80=8B > > > >> > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > > > > > --001a114550808087b305271ce75b--