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 CC1DE98B7 for ; Tue, 6 Mar 2012 14:39:58 +0000 (UTC) Received: (qmail 32734 invoked by uid 500); 6 Mar 2012 14:39:56 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 32515 invoked by uid 500); 6 Mar 2012 14:39:56 -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 32505 invoked by uid 99); 6 Mar 2012 14:39:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 14:39:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_DBL_REDIR X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bimargulies@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 14:39:51 +0000 Received: by wgbdq10 with SMTP id dq10so3009903wgb.5 for ; Tue, 06 Mar 2012 06:39:30 -0800 (PST) Received-SPF: pass (google.com: domain of bimargulies@gmail.com designates 10.180.93.4 as permitted sender) client-ip=10.180.93.4; Authentication-Results: mr.google.com; spf=pass (google.com: domain of bimargulies@gmail.com designates 10.180.93.4 as permitted sender) smtp.mail=bimargulies@gmail.com; dkim=pass header.i=bimargulies@gmail.com Received: from mr.google.com ([10.180.93.4]) by 10.180.93.4 with SMTP id cq4mr23996507wib.21.1331044770540 (num_hops = 1); Tue, 06 Mar 2012 06:39:30 -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:content-transfer-encoding; bh=fd8+aot9T65Nf2DINKbMEI2+4COq4fc9d4DaYIDWHmM=; b=jsIg1ejY+kaF4RgT6P/0L3oxMShIc4O7Gc0WqNWuH5XPobLqwqjUyoCkn2K1SOJoBw mTwUCGw7HyvmMsh3kNu9dQYXoFdfvq0FqXn2rtNmD60ifQ6v75rbXUnZiMvufG9wZIB9 xZRgMwZRA6pd4ANS4+LBa8kAC6DgJrJ5hZJTUWIaq/DRMFldsa9ST/jzB/x5Zd/y0y95 z83N5EGhc8GXashNc7wO4OwpNKTaVoYFDc8cCX/9xw6037wV1siMn2utS6Kk0uX1uFLU i1xUSmMPasNvdzOxRXD/4DL1J9yquBnjz74hwa7s1ixN5MtoGtW4GSkNJvlh19lNBPLl AycA== MIME-Version: 1.0 Received: by 10.180.93.4 with SMTP id cq4mr18969043wib.21.1331044770370; Tue, 06 Mar 2012 06:39:30 -0800 (PST) Received: by 10.180.101.33 with HTTP; Tue, 6 Mar 2012 06:39:30 -0800 (PST) In-Reply-To: <00cd01ccfba6$31e1db50$95a591f0$@thetaphi.de> References: <00c801ccfba0$e5b07e30$b1117a90$@thetaphi.de> <00cd01ccfba6$31e1db50$95a591f0$@thetaphi.de> Date: Tue, 6 Mar 2012 09:39:30 -0500 Message-ID: Subject: Re: A little more CHANGES.txt help on terms(), please From: Benson Margulies To: java-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Mar 6, 2012 at 9:34 AM, Uwe Schindler wrote: > Hi, > > MultiFields should only be used (as it is slow) if you exactly know what = you are doing and what the consequences are. There is a change in Lucene 4.= 0, so you can no longer terms and postings from a top-level (composite) rea= der. More info is also here: http://goo.gl/lMKTM Uwe, The 4.0 change is how I got here in the first place. Some code we have here dumped all the terms using the old IndexReader.terms(), so I was working on figuring out how to replace it. For my purposes, which are a dev tool, I think that MultiFields will be fine. --benson > > Uwe > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de > > >> -----Original Message----- >> From: Benson Margulies [mailto:bimargulies@gmail.com] >> Sent: Tuesday, March 06, 2012 3:15 PM >> To: java-user@lucene.apache.org >> Subject: Re: A little more CHANGES.txt help on terms(), please >> >> On Tue, Mar 6, 2012 at 8:56 AM, Uwe Schindler wrote: >> > AtomicReader.fields() >> >> I went and read up AtomicReader in CHANGES.txt. Should I call >> SegmentReader.getReader(IOContext)? >> >> I just posted a patch to CHANGES.txt to clarify before I read your email= , shall I >> improve it to use this instead of >> >> =C2=A0 =C2=A0 MultiFields.getFields(indexReader).iterator(); >> >> which I came up with by fishing around for myself? >> >> > >> > ----- >> > Uwe Schindler >> > H.-H.-Meier-Allee 63, D-28213 Bremen >> > http://www.thetaphi.de >> > eMail: uwe@thetaphi.de >> > >> > >> >> -----Original Message----- >> >> From: Benson Margulies [mailto:bimargulies@gmail.com] >> >> Sent: Tuesday, March 06, 2012 2:50 PM >> >> To: java-user@lucene.apache.org >> >> Subject: A little more CHANGES.txt help on terms(), please >> >> >> >> Under "LUCENE-1458, LUCENE-2111: Flexible Indexing", CHANGES.txt >> >> appears to be missing one critical hint. If you have existing code >> >> that called IndexReader.terms(), where do you start to get a FieldsEn= um? >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> >> For additional commands, e-mail: java-user-help@lucene.apache.org >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> > For additional commands, e-mail: java-user-help@lucene.apache.org >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org