Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 49908 invoked from network); 4 Dec 2006 11:02:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2006 11:02:58 -0000 Received: (qmail 77537 invoked by uid 500); 4 Dec 2006 11:03:00 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77388 invoked by uid 500); 4 Dec 2006 11:03:00 -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 77377 invoked by uid 99); 4 Dec 2006 11:03:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 03:03:00 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 03:02:47 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GrBad-0006y8-Id for java-user@lucene.apache.org; Mon, 04 Dec 2006 03:02:27 -0800 Message-ID: <7674006.post@talk.nabble.com> Date: Mon, 4 Dec 2006 03:02:27 -0800 (PST) From: Aaron Shaw To: java-user@lucene.apache.org Subject: RE: Problem: "The selected method Keyword was not found" In-Reply-To: <002501c71793$1445ab50$2f0b7d82@philosophe> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: aaronshaw@onetel.com References: <7673372.post@talk.nabble.com> <001d01c7178d$48060490$2f0b7d82@philosophe> <7673534.post@talk.nabble.com> <002101c7178f$30212830$2f0b7d82@philosophe> <7673771.post@talk.nabble.com> <002501c71793$1445ab50$2f0b7d82@philosophe> X-Virus-Checked: Checked by ClamAV on apache.org Is there any quick way of telling whether I'm using 1.9 or 2? I want to mak= e sure I successfully removed the old version Samir Abdou wrote: >=20 > If you're trying to use the 1.9 version it's OK! The 'Keyword' static > method > is not available in the 2.0 version.=20 >=20 > Field field =3D new Field("url","http://localhost:8500/cfdocs/dochome.htm= ",=20 >=20 >>...is this creating a new object or calling a method of my >>existing field object? >=20 > This is creating a new object. >=20 > Samir >=20 >=20 > Samir Abdou wrote: >>=20 >> Field field =3D new Field("url","http://localhost:8500/cfdocs/dochome.ht= m", >> Field.Store.YES, Field.Index.UN_TOKENIZED); >>=20 >> You need tot translate this to cf script :-) >>=20 >> For more information, take a look to >> http://lucene.apache.org/java/1_9_1/api/index.html=20 >>=20 >>=20 >> Welcome, >> Samir >>=20 >>=20 >> -----Message d'origine----- >> De=C2=A0: Aaron Shaw [mailto:aaronshaw@onetel.com]=20 >> Envoy=C3=A9=C2=A0: lundi, 4. d=C3=A9cembre 2006 11:23 >> =C3=80=C2=A0: java-user@lucene.apache.org >> Objet=C2=A0: RE: Problem: "The selected method Keyword was not found" >>=20 >>=20 >> Hi,=20 >>=20 >> I've tried it in 2.0 and 1.9 >>=20 >> What syntax should I be using to add documents in the new version >> instead? >>=20 >> Thanks, >>=20 >> Aaron >>=20 >>=20 >>=20 >> Samir Abdou wrote: >>>=20 >>> Hi, >>>=20 >>> The method Field.Keyword is not longer available in Lucene's last >>> version! >>>=20 >>> Which version are you using? >>>=20 >>> Regards, >>> Samir >>>=20 >>> -----Message d'origine----- >>> De=C2=A0: Aaron Shaw [mailto:aaronshaw@onetel.com]=20 >>> Envoy=C3=A9=C2=A0: lundi, 4. d=C3=A9cembre 2006 11:08 >>> =C3=80=C2=A0: java-user@lucene.apache.org >>> Objet=C2=A0: Problem: "The selected method Keyword was not found" >>>=20 >>>=20 >>> Hi, >>>=20 >>> I'm attempting to use Lucene under Coldfusion MX, however when I try to >>> create and index I am coming up against the following error message whe= n >>> I >>> try to add a document: >>>=20 >>> The selected method Keyword was not found. >>>=20 >>> I'm using the following lines of code to try to create the index: >>>=20 >>> >>> analyzer =3D >>> CreateObject("java","org.apache.lucene.analysis.StopAnalyzer"); >>=20 >>> analyzer.init(); >>> writer =3D CreateObject("java","org.apache.lucene.index.IndexWriter"); >>> writer.init("c:\cfusionmx\wwwroot\lucene\docsindex",analyzer, true);=20 >>> document =3D CreateObject("java", "org.apache.lucene.document.Document"= ); >>> field =3D CreateObject("java", "org.apache.lucene.document.Field"); >>> system =3D CreateObject("java", "java.lang.System");=20 >>> content =3D theContent;=20 >>> endtitle=3Dlen(theContent); >>> startTitle =3D FindNoCase("", content); >>> if (endTitle GT 0) { >>> title =3D trim(Mid(content, startTitle + 7, endTitle - startTitle = - >>> 7)); >>> }=20 >>> >> > document.add(field.Keyword("url","http://localhost:8500/cfdocs/dochome.ht= m") >>> ); >>> >>>=20 >>> However if I dump the "field" object, I would expect to see the Keyword >>> method or property displayed, however this is not the case. >>>=20 >>> If anyone can shed any light on this it would be very much appreciated. >>>=20 >>> Thanks, >>>=20 >>> Aaron >>> --=20 >>> View this message in context: >>> >> > http://www.nabble.com/Problem%3A-%22The-selected-method-Keyword-was-not-f= oun >>> d%22-tf2750289.html#a7673372 >>> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >>>=20 >>>=20 >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: java-user-help@lucene.apache.org >>>=20 >>>=20 >>>=20 >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >>> For additional commands, e-mail: java-user-help@lucene.apache.org >>>=20 >>>=20 >>>=20 >>=20 >> --=20 >> View this message in context: >> > http://www.nabble.com/Problem%3A-%22The-selected-method-Keyword-was-not-f= oun >> d%22-tf2750289.html#a7673534 >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >>=20 >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >>=20 >>=20 >>=20 >=20 > --=20 > View this message in context: > http://www.nabble.com/Problem%3A-%22The-selected-method-Keyword-was-not-f= oun > d%22-tf2750289.html#a7673771 > Sent from the Lucene - Java Users mailing list archive at Nabble.com. >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/Problem%3A-%22The-selec= ted-method-Keyword-was-not-found%22-tf2750289.html#a7674006 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org