1 If possible, use the same JRE major version at both index and search time.
2 When upgrading to a different JRE major version, consider re-indexing.
4 Different JRE major versions may implement different versions of Unicode,
5 which will change the way some parts of Lucene treat your text.
7 For example: with Java 1.4, LetterTokenizer will split around the character U+02C6,
8 but with Java 5 it will not.
9 This is because Java 1.4 implements Unicode 3, but Java 5 implements Unicode 4.
11 For reference, JRE major versions with their corresponding Unicode versions:
17 In general, whether or not you need to re-index largely depends upon the data that
18 you are searching, and what was changed in any given Unicode version. For example,
19 if you are completely sure that your content is limited to the "Basic Latin" range
20 of Unicode, you can safely ignore this.
24 LUCENE 2.9 TO 3.0, JAVA 1.4 TO JAVA 5 TRANSITION
26 * StandardAnalyzer will return the same results under Java 5 as it did under
27 Java 1.4. This is because it is largely independent of the runtime JRE for
28 Unicode support, (with the exception of lowercasing). However, no changes to
29 casing have occurred in Unicode 4.0 that affect StandardAnalyzer, so if you are
30 using this Analyzer you are NOT affected.
32 * SimpleAnalyzer, StopAnalyzer, LetterTokenizer, LowerCaseFilter, and
33 LowerCaseTokenizer may return different results, along with many other Analyzers
34 and TokenStreams in Lucene's contrib area. If you are using one of these
35 components, you may be affected.