lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lock Levels (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2253) Lucene 3.0 - Deprecated QueryParser Constructor in Demo Code [new QueryParser( "contents", analyzer)]
Date Sun, 07 Feb 2010 13:08:28 GMT
Lucene 3.0 - Deprecated QueryParser Constructor in Demo Code [new QueryParser( "contents",
analyzer)]
-----------------------------------------------------------------------------------------------------

                 Key: LUCENE-2253
                 URL: https://issues.apache.org/jira/browse/LUCENE-2253
             Project: Lucene - Java
          Issue Type: Bug
    Affects Versions: 3.0, 2.9.1
            Reporter: Lock Levels


Found this issue when following the getting started tutorial with Lucene 3.0.  It appears
the QueryParser constructor was deprecated 

The new code in results.jsp should be changed from:

new QueryParser("contents", analyzer)

to:

new QueryParser(Version.LUCENE_CURRENT, "contents", analyzer)

http://www.locklevels.com

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message