[
https://issues.apache.org/jira/browse/JCR-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983791#action_12983791
]
Sébastien Launay commented on JCR-2415:
---------------------------------------
I have a working upgrade to Lucene 2.9.4 where code compiles and tests are
running fine.
I just created a topic branch for this in sandbox to ease review and do not
break the trunk:
http://svn.apache.org/viewvc/jackrabbit/sandbox/JCR-2415-lucene-3.0/
Here is what I have done so far, but I am not confident so it will need a
serious review :):
- change dependency to use Lucene 2.9.4
- remove most of the deprecated classes/methods
- JR HitCollector => Lucene Collector => JR AbstractHitCollector
- use new Scorer abstract class with new boolean params scoreDocsInOrder and
topScorer
- use Version.LUCENE_24 for backward compatibility (JackrabbitQueryParser,
JackrabbitAnalyzer, StandardAnalyzer, MoreLikeThis)
- creating the directory in FSDirectoryManager (not done by Lucene anymore?)
- use Java 5 generics when appropriate
- use @SuppressWarnings annotation with "unchecked", "serial" and "rawtypes"
What need to be done:
- remove last deprecated classe/methods, that is convert
SortComparatorSource/ScoreDocComparator implementation to
FieldComparatorSource/FieldComparator
- test integration with Lucene 3.0.3 to ensure compatibility with Lucene 3.0.x
I think that sticking to 2.9.4 might be the best approach because:
- users still using Lucene 2.4.x/2.9.x will have an easier integration that
migrating Lucene 3.0.x
- users wanting to use Lucene 3.0.x can force it it maven and have a working
search in JR
> Update Lucene to 3.0
> --------------------
>
> Key: JCR-2415
> URL: https://issues.apache.org/jira/browse/JCR-2415
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: query
> Affects Versions: 2.0-beta3
> Reporter: Attila Király
>
> Lucene 3.0 was released on 2009/11/25. They migrated to Java 1.5 as
> Jackrabbit is doing with 2.0. Also they added some new optimizations. It
> would be nice if Jackrabbit could switch to the new lucene version too.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.