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 593C77CC0 for ; Tue, 4 Oct 2011 10:08:41 +0000 (UTC) Received: (qmail 64429 invoked by uid 500); 4 Oct 2011 10:08:39 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 64386 invoked by uid 500); 4 Oct 2011 10:08:39 -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 64378 invoked by uid 99); 4 Oct 2011 10:08:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2011 10:08:39 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS,URG_BIZ X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.138.91.138] (HELO nm8-vm3.bullet.mail.ne1.yahoo.com) (98.138.91.138) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Oct 2011 10:08:31 +0000 Received: from [98.138.90.50] by nm8.bullet.mail.ne1.yahoo.com with NNFMP; 04 Oct 2011 10:08:10 -0000 Received: from [98.138.89.172] by tm3.bullet.mail.ne1.yahoo.com with NNFMP; 04 Oct 2011 10:08:10 -0000 Received: from [127.0.0.1] by omp1028.mail.ne1.yahoo.com with NNFMP; 04 Oct 2011 10:08:10 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 525236.95963.bm@omp1028.mail.ne1.yahoo.com Received: (qmail 15832 invoked by uid 60001); 4 Oct 2011 10:08:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1317722890; bh=3ROnWcRRbonhVLIRiWSNuh+H25EXt4yoenvnsQcH2sY=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RHqOXOPVR3OyEbk9gwXuQl2/l1nCRs6GimmIIOKUAdgnzIs+hvvo5gtTsJr/ne/b3vrSlQK2iDimzhE5WV8Nm/SGbmNUsB+QqRtBXsKZO7EfoZM9flkEvLhgMvnE+p47fOfoDQ9if5CpNXi+8+/OBqRh05Sl97Kj/e4v88HbyNo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=maYETNip3/6Cz3ZksCwdAbL++uMSLjwtjNsP1r/JWF/POtz3ij6Cj1vfPddHlCao8uWhIJWtK+hMcrEePuNB/ePSb2t634ZKrgWmovGkm/ka8rN3vwgHYXoRVZtatYkyjgGGy4CKJX8zvMt9redkAlofnx07c8VyAMSG5lwWc/4=; X-YMail-OSG: Qx6HzncVM1kRt0hXMV8OChvUVgON40Vl9pdPjt6Kp.aEo_s dSYDPovd4d3.EG39nZS8hD2g4Kmo8X1VXBLFZ7_QNupRbjhKQAHvZaG9b1n1 JBGJYALjht8SiOiRauhZUDuAhukck.a3vOKXSbphIIfHmuYBEVGTwFIlTzRw 9rBllnTzTsqPVKkGJuEqDpaFuAnGBBKCcOqjksl1VeQm.grOC38qFmHxPSgH CDDchfqQwWMCTe9WpqF3wLBEI.8p37wfyynscf0gvlteWrI20.GE.5VicGEw a8ILIN.68y_d6bELB5h6xLHSJED6YusN8QYF_bAKN99FlOqwr1MJgvgGX665 UJ9zTgsPsjE9bCFpWErG7YT3qOMV5F7mszG2EFi_czhrWgbOOtAtudeO_4Fq p35JZdKH3zF_01Xot59FOrxr37RRGpunZ2C5pGEkpU3E- Received: from [212.235.4.36] by web30501.mail.mud.yahoo.com via HTTP; Tue, 04 Oct 2011 03:08:10 PDT X-Mailer: YahooMailWebService/0.8.114.317681 References: <1317721572.92757.YahooMailNeo@web30502.mail.mud.yahoo.com> <003a01cc827b$67c713b0$37553b10$@thetaphi.de> Message-ID: <1317722890.2136.YahooMailNeo@web30501.mail.mud.yahoo.com> Date: Tue, 4 Oct 2011 03:08:10 -0700 (PDT) From: sol myr Reply-To: sol myr Subject: Re: [Lucene] Frequencies and positions - are they stored per field? To: "java-user@lucene.apache.org" In-Reply-To: <003a01cc827b$67c713b0$37553b10$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks a lot.=0ABut then what's the added value of Field.TermVector?=0A=0AC= an't it be deduced from the overall Lucene index? Or is it just inefficient= to deduce?=0A=0AThanks again :)=0A=0A=0A=0A----- Original Message -----=0A= From: Uwe Schindler =0ATo: java-user@lucene.apache.org; 's= ol myr' =0ACc: =0ASent: Tuesday, October 4, 2011 11:53 = AM=0ASubject: RE: [Lucene] Frequencies and positions - are they stored per = field?=0A=0ALucene always uses a field, a query using a term without a fiel= d is=0Aimpossible. See each field as a parallel inverted index; all statist= ics are=0Aper field, too. If you pass a query without a field name to Query= Parser it=0Awill chose the default field, that=E2=80=99s given when creatin= g the QueryParser.=0A=0AUwe=0A=0A-----=0AUwe Schindler=0AH.-H.-Meier-Allee = 63, D-28213 Bremen=0Ahttp://www.thetaphi.de=0AeMail: uwe@thetaphi.de=0A=0A= =0A> -----Original Message-----=0A> From: sol myr [mailto:solmyr72@yahoo.co= m]=0A> Sent: Tuesday, October 04, 2011 11:46 AM=0A> To: lucene=0A> Subject:= [Lucene] Frequencies and positions - are they stored per field?=0A> =0A> = =0A> =0A> Hi,=0A> =0A> I use Lucene, but an not familiar with its internals= .=0A> I'd appreciate help understanding whether Term Frequences and Positio= ns -=0Aare=0A> stored=C2=A0 per Document of per Field?=0A> On the one hand,= I never ask for "Field.TermVector" because I read it's=0Aonly=0A> required= for "MoreLikeThis" (which I don't need).=0A> On the other hand, my searche= s *are* based on fields...=0A> =0A> Here's my code:=0A> // Write (without F= ield.TermVector):=0A> =0A> Document doc=3Dnew Document();=0A> doc.add(new F= ield("subject",=C2=A0 "Requisition request", Store.YES,=0A> Index.ANALYZED)= ); doc.add(new Field("body",=C2=A0 "Attached is an Urgent=0A> requisition r= equest", Store.YES, Index.ANALYZED)); write.addDocument(doc);=0A> =0A> // A= nd my Query:=0A> Query query=3Dparser.parse("subject : urgent");=0A> =0A> N= ow how does Lucene manage this query?=0A> I asked it to search the "subject= " Field.=0A> But if the "inverted index" doesn't keep fields, it would only= remember=0Athat=0A> "The term 'Urgent' appears in SOME FIELD of document#1= "...=0A> Isn't it true?=0A> =0A> If so, how would it make sure to retrieve= only documents that match in the=0A> Subject ?=0A> =0A> Thanks.=0A> =0A> = =0A> ---------------------------------------------------------------------= =0A> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org=0A> Fo= r additional commands, e-mail: java-user-help@lucene.apache.org=0A=0A=0A---= ------------------------------------------------------------------=0ATo uns= ubscribe, e-mail: java-user-unsubscribe@lucene.apache.org=0AFor 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