Re: Help migrating from 1.9.1 to 2.3.0 (Newbie)
There is a FAQ covering this question... http://wiki.apache.org/lucene-java/LuceneFAQ#head-86d479476c63a2579e867b75d4faa9664ef6cf4d start by getting your code to compile against 1.9.1 without any deprecation warnings. The deprecation messages in the 1.9.1 javadocs will tell you which new method to use. once you have no deprecation warnings with 1.9.1, your code *should* compile with 2.3.X just fine. Incidently, please note the following information if you have followup questions on this topic... Please Use [EMAIL PROTECTED] Not [EMAIL PROTECTED] Your question is better suited for the [EMAIL PROTECTED] mailing list ... not the [EMAIL PROTECTED] list. java-dev is for discussing development of the internals of the Lucene Java library ... it is *not* the appropriate place to ask questions about how to use the Lucene Java library when developing your own applications. Please resend your message to the java-user mailing list, where you are likely to get more/better responses since that list also has a larger number of subscribers. http://people.apache.org/~hossman/#java-dev -Hoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help migrating from 1.9.1 to 2.3.0 (Newbie)
Someone has left here and I was asked to upgrade to lucene 2.3.0. Please comment on the compile errors: ERROR: rd.delete(t) does this become: rd.deleteDocuments(t) ? (rd is an IndexReader) ERROR: Query q = MultiFieldQueryParser.parse(srch, names, new StandardAnalyzer()) Do I change this to an array of strings like so: Query q = MultiFieldQueryParser.parse(new String[] {srch}, names, new StandardAnalyzer()) ?? ERROR: Field.Keyword(obj.getKeyFieldName(), obj.getKeyFieldValue()) Both are strings, what does this become? ERROR: Field.Text(field.getName(), dispVal) Both are strings, what does this become? Thank you. -- View this message in context: http://www.nabble.com/Help-migrating-from-1.9.1-to-2.3.0-%28Newbie%29-tp16547527p16547527.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]