mirror of https://github.com/apache/lucene.git
Fix problems with changes2html.pl, mostly to do with marking things as attributions when they shouldn't be, or not when they should; and fixup formatting issues in lucene/CHANGES.txt and solr/CHANGES.txt
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1661772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b03688ebee
commit
acbba205a7
|
@ -6222,8 +6222,8 @@ Optimizations
|
|||
|
||||
Test Cases
|
||||
|
||||
* LUCENE-3327: Fix AIOOBE when TestFSTs is run with
|
||||
-Dtests.verbose=true (James Dyer via Mike McCandless)
|
||||
* LUCENE-3327: Fix AIOOBE when TestFSTs is run with -Dtests.verbose=true
|
||||
(James Dyer via Mike McCandless)
|
||||
|
||||
Build
|
||||
|
||||
|
|
|
@ -545,6 +545,7 @@ for my $rel (@releases) {
|
|||
}se;
|
||||
$bulleted_list;
|
||||
}ge;
|
||||
$uncode = markup_trailing_attribution($uncode);
|
||||
$uncode;
|
||||
}
|
||||
}sge;
|
||||
|
@ -626,13 +627,18 @@ print "</body>\n</html>\n";
|
|||
sub markup_trailing_attribution {
|
||||
my $item = shift;
|
||||
|
||||
# Put attributions on their own lines.
|
||||
# Put attributions on their own lines - this already happens if there is a preceding </ul>
|
||||
my $extra_newline = ($item =~ m:</ul>:) ? '' : '<br />';
|
||||
# Check for trailing parenthesized attribution with no following period.
|
||||
# Exclude things like "(see #3 above)" and "(use the bug number instead of xxxx)"
|
||||
unless ($item =~ s{\s*(\((?![Ss]ee )
|
||||
unless ($item =~ s{\s+(\((?![Ss]ee )
|
||||
(?!spans\b)
|
||||
(?!mainly\ )
|
||||
(?!LUCENE-\d+\))
|
||||
(?!SOLR-\d+\))
|
||||
(?!user's)
|
||||
(?!like\ )
|
||||
(?!r\d{6}) # subversion revision
|
||||
(?!and\ )
|
||||
(?!backported\ )
|
||||
(?!in\ )
|
||||
|
@ -640,7 +646,7 @@ sub markup_trailing_attribution {
|
|||
(?![Tt]he\ )
|
||||
(?!use\ the\ bug\ number)
|
||||
[^()"]+?\))\s*$}
|
||||
{\n<br /><span class="attrib">$1</span>}x) {
|
||||
{\n${extra_newline}<span class="attrib">$1</span>}x) {
|
||||
# If attribution is not found, then look for attribution with a
|
||||
# trailing period, but try not to include trailing parenthesized things
|
||||
# that are not attributions.
|
||||
|
@ -650,10 +656,14 @@ sub markup_trailing_attribution {
|
|||
# fewer words or it includes the word "via" or the phrase "updates from",
|
||||
# then it is considered to be an attribution.
|
||||
|
||||
$item =~ s{(\s*(\((?![Ss]ee\ )
|
||||
$item =~ s{(\s+(\((?![Ss]ee\ )
|
||||
(?!spans\b)
|
||||
(?!mainly\ )
|
||||
(?!LUCENE-\d+\))
|
||||
(?!SOLR-\d+\))
|
||||
(?!user's)
|
||||
(?!like\ )
|
||||
(?!r\d{6}) # subversion revision
|
||||
(?!and\ )
|
||||
(?!backported\ )
|
||||
(?!in\ )
|
||||
|
@ -669,8 +679,10 @@ sub markup_trailing_attribution {
|
|||
if ($parenthetical !~ /LUCENE-\d+/) {
|
||||
my ($no_parens) = $parenthetical =~ /^\((.*)\)$/s;
|
||||
my @words = grep {/\S/} split /\s+/, $no_parens;
|
||||
if ($no_parens =~ /\b(?:via|updates\s+from)\b/i || scalar(@words) <= 4) {
|
||||
$subst = "\n<br /><span class=\"attrib\">$parenthetical</span>";
|
||||
my $commas = $no_parens =~ s/,/,/g; # count commas
|
||||
my $max_words = 4 + $commas;
|
||||
if ($no_parens =~ /\b(?:via|updates\s+from)\b/i || scalar(@words) <= $max_words) {
|
||||
$subst = "\n${extra_newline}<span class=\"attrib\">$parenthetical</span>";
|
||||
}
|
||||
}
|
||||
$subst . $trailing_period_and_or_issue;
|
||||
|
|
|
@ -188,6 +188,11 @@ Other Changes
|
|||
|
||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||
|
||||
NOTE: Solr 5.0 only supports creating and removing SolrCloud collections through
|
||||
the collections API, unlike previous versions. While not using the
|
||||
collections API may still work in 5.0, it is unsupported, not recommended,
|
||||
and the behavior will change in a 5.x release.
|
||||
|
||||
Versions of Major Components
|
||||
---------------------
|
||||
Apache Tika 1.7
|
||||
|
@ -197,11 +202,6 @@ Apache UIMA 2.3.1
|
|||
Apache ZooKeeper 3.4.6
|
||||
Jetty 9.2.6.v20141205
|
||||
|
||||
NOTE: Solr 5.0 only supports creating and removing SolrCloud collections through
|
||||
the collections API, unlike previous versions. While not using the
|
||||
collections API may still work in 5.0, it is unsupported, not recommended,
|
||||
and the behavior will change in a 5.x release.
|
||||
|
||||
Upgrading from Solr 4.x
|
||||
----------------------
|
||||
|
||||
|
@ -670,10 +670,10 @@ Bug Fixes
|
|||
of all "keys" found in the request parameters, resulting in some key=value param pairs
|
||||
being duplicated. This was noticeably affecting some areas of the code where iteration
|
||||
was done over the set of all params:
|
||||
* literal.* in ExtractingRequestHandler
|
||||
* facet.* in FacetComponent
|
||||
* spellcheck.[dictionary name].* and spellcheck.collateParam.* in SpellCheckComponent
|
||||
* olap.* in AnalyticsComponent
|
||||
- literal.* in ExtractingRequestHandler
|
||||
- facet.* in FacetComponent
|
||||
- spellcheck.[dictionary name].* and spellcheck.collateParam.* in SpellCheckComponent
|
||||
- olap.* in AnalyticsComponent
|
||||
(Alexandre Rafalovitch & hossman)
|
||||
|
||||
* SOLR-6920: A replicated index can end up corrupted when small files end up with the same
|
||||
|
@ -3207,18 +3207,18 @@ Bug Fixes
|
|||
|
||||
* SOLR-4910: persisting solr.xml is broken. More stringent testing of persistence fixed
|
||||
up a number of issues and several bugs with persistence. Among them are
|
||||
> don't persisting implicit properties
|
||||
> should persist zkHost in the <solr> tag (user's list)
|
||||
> reloading a core that has transient="true" returned an error. reload should load
|
||||
- don't persisting implicit properties
|
||||
- should persist zkHost in the <solr> tag (user's list)
|
||||
- reloading a core that has transient="true" returned an error. reload should load
|
||||
a transient core if it's not yet loaded.
|
||||
> No longer persisting loadOnStartup or transient core properties if they were not
|
||||
- No longer persisting loadOnStartup or transient core properties if they were not
|
||||
specified in the original solr.xml
|
||||
> Testing flushed out the fact that you couldn't swap a core marked transient=true
|
||||
- Testing flushed out the fact that you couldn't swap a core marked transient=true
|
||||
loadOnStartup=false because it hadn't been loaded yet.
|
||||
> SOLR-4862, CREATE fails to persist schema, config, and dataDir
|
||||
> SOLR-4363, not persisting coreLoadThreads in <solr> tag
|
||||
> SOLR-3900, logWatcher properties not persisted
|
||||
> SOLR-4850, cores defined as loadOnStartup=true, transient=false can't be searched
|
||||
- SOLR-4862, CREATE fails to persist schema, config, and dataDir
|
||||
- SOLR-4363, not persisting coreLoadThreads in <solr> tag
|
||||
- SOLR-3900, logWatcher properties not persisted
|
||||
- SOLR-4850, cores defined as loadOnStartup=true, transient=false can't be searched
|
||||
(Erick Erickson)
|
||||
|
||||
* SOLR-4923: Commits to non leaders as part of a request that also contain updates
|
||||
|
|
Loading…
Reference in New Issue