Apache Lucene open-source search software
Replace prettyprint with code tag for prism. (#15573)
Dawid Weiss378ca8d1bbf3
diff --git a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/RenderJavadocPlugin.java b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/RenderJavadocPlugin.javaindex 6a7dd40aa98..61ddde49b9e 100644--- a/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/RenderJavadocPlugin.java+++ b/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/RenderJavadocPlugin.java@@ -566,17 +566,11 @@ public class RenderJavadocPlugin extends LuceneGradlePlugin {getTaskResources(),"table_padding.css","custom_styles.css",- "prettify/prettify.css","prettify/prism.css");// append prettify to scriptsProvider<RegularFile> customScript = getOutputDir().file("script-files/lucene-script.js");- concat(- customScript,- getTaskResources().dir("prettify"),- "prettify.js",- "inject-javadocs.js",- "prism.js");+ concat(customScript, getTaskResources().dir("prettify"), "prism.js");opts.add(List.of("--add-script", customScript.get().getAsFile().toString()));opts.add(List.of("--add-stylesheet", customCss.get().getAsFile().toString()));diff --git a/gradle/documentation/render-javadoc/prettify/inject-javadocs.js b/gradle/documentation/render-javadoc/prettify/inject-javadocs.jsdeleted file mode 100644index 77f6a4b0463..00000000000--- a/gradle/documentation/render-javadoc/prettify/inject-javadocs.js+++ /dev/null@@ -1,27 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one or more- * contributor license agreements. See the NOTICE file distributed with- * this work for additional information regarding copyright ownership.- * The ASF licenses this file to You under the Apache License, Version 2.0- * (the "License"); you may not use this file except in compliance with- * the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-!function(){- var oldonload = window.onload;- if (typeof oldonload != 'function') {- window.onload = prettyPrint;- } else {- window.onload = function() {- oldonload();- prettyPrint();- }- }-}();diff --git a/gradle/documentation/render-javadoc/prettify/prettify.css b/gradle/documentation/render-javadoc/prettify/prettify.cssdeleted file mode 100644index d1a82584a65..00000000000--- a/gradle/documentation/render-javadoc/prettify/prettify.css+++ /dev/null@@ -1,17 +0,0 @@-/*-- Copyright (C) 2006 Google Inc.-- Licensed under the Apache License, Version 2.0 (the "License");- you may not use this file except in compliance with the License.- You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.-*/-.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}diff --git a/gradle/documentation/render-javadoc/prettify/prettify.js b/gradle/documentation/render-javadoc/prettify/prettify.jsdeleted file mode 100644index 3b74b5bdaa3..00000000000--- a/gradle/documentation/render-javadoc/prettify/prettify.js+++ /dev/null@@ -1,46 +0,0 @@-!function(){/*-- Copyright (C) 2006 Google Inc.-- Licensed under the Apache License, Version 2.0 (the "License");- you may not use this file except in compliance with the License.- You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.-*/-window.PR_SHOULD_USE_CONTINUATION=!0;-(function(){function T(a){function d(e){var b=e.charCodeAt(0);if(92!==b)return b;var a=e.charAt(1);return(b=w[a])?b:"0"<=a&&"7">=a?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1)}function f(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e=-[];var a="^"===b[0],c=["["];a&&c.push("^");for(var a=a?1:0,g=b.length;a<g;++a){var h=b[a];if(/\\[bdsw]/i.test(h))c.push(h);else{var h=d(h),k;a+2<g&&"-"===b[a+1]?(k=d(b[a+2]),a+=2):k=h;e.push([h,k]);65>k||122<h||(65>k||90<h||e.push([Math.max(65,h)|32,Math.min(k,90)|32]),97>k||122<h||e.push([Math.max(97,h)&-33,Math.min(k,122)&-33]))}}e.sort(function(e,a){return e[0]-a[0]||a[1]-e[1]});b=[];g=[];for(a=0;a<e.length;++a)h=e[a],h[0]<=g[1]+1?g[1]=Math.max(g[1],h[1]):b.push(g=h);for(a=0;a<b.length;++a)h=b[a],-c.push(f(h[0])),h[1]>h[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(f(h[1])));c.push("]");return c.join("")}function v(e){for(var a=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),c=a.length,d=[],g=0,h=0;g<c;++g){var k=a[g];"("===k?++h:"\\"===k.charAt(0)&&(k=+k.substring(1))&&(k<=h?d[k]=-1:a[g]=f(k))}for(g=1;g<d.length;++g)-1===d[g]&&(d[g]=++A);for(h=g=0;g<c;++g)k=a[g],"("===k?(++h,d[h]||(a[g]="(?:")):"\\"===-k.charAt(0)&&(k=+k.substring(1))&&k<=h&&(a[g]="\\"+d[k]);for(g=0;g<c;++g)"^"===a[g]&&"^"!==a[g+1]&&(a[g]="");if(e.ignoreCase&&n)for(g=0;g<c;++g)k=a[g],e=k.charAt(0),2<=k.length&&"["===e?a[g]=b(k):"\\"!==e&&(a[g]=k.replace(/[a-zA-Z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return a.join("")}for(var A=0,n=!1,l=!1,m=0,c=a.length;m<c;++m){var p=a[m];if(p.ignoreCase)l=!0;else if(/[a-z]/i.test(p.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){n=!0;-l=!1;break}}for(var w={b:8,t:9,n:10,v:11,f:12,r:13},r=[],m=0,c=a.length;m<c;++m){p=a[m];if(p.global||p.multiline)throw Error(""+p);r.push("(?:"+v(p)+")")}return new RegExp(r.join("|"),l?"gi":"g")}function U(a,d){function f(a){var c=a.nodeType;if(1==c){if(!b.test(a.className)){for(c=a.firstChild;c;c=c.nextSibling)f(c);c=a.nodeName.toLowerCase();if("br"===c||"li"===c)v[l]="\n",n[l<<1]=A++,n[l++<<1|1]=a}}else if(3==c||4==c)c=a.nodeValue,c.length&&(c=d?c.replace(/\r\n?/g,"\n"):c.replace(/[ \t\r\n]+/g,-" "),v[l]=c,n[l<<1]=A,A+=c.length,n[l++<<1|1]=a)}var b=/(?:^|\s)nocode(?:\s|$)/,v=[],A=0,n=[],l=0;f(a);return{a:v.join("").replace(/\n$/,""),c:n}}function J(a,d,f,b,v){f&&(a={h:a,l:1,j:null,m:null,a:f,c:null,i:d,g:null},b(a),v.push.apply(v,a.g))}function V(a){for(var d=void 0,f=a.firstChild;f;f=f.nextSibling)var b=f.nodeType,d=1===b?d?a:f:3===b?W.test(f.nodeValue)?a:d:d;return d===a?void 0:d}function G(a,d){function f(a){for(var l=a.i,m=a.h,c=[l,"pln"],p=0,w=a.a.match(v)||[],r={},e=0,t=w.length;e<-t;++e){var z=w[e],q=r[z],g=void 0,h;if("string"===typeof q)h=!1;else{var k=b[z.charAt(0)];if(k)g=z.match(k[1]),q=k[0];else{for(h=0;h<A;++h)if(k=d[h],g=z.match(k[1])){q=k[0];break}g||(q="pln")}!(h=5<=q.length&&"lang-"===q.substring(0,5))||g&&"string"===typeof g[1]||(h=!1,q="src");h||(r[z]=q)}k=p;p+=z.length;if(h){h=g[1];var B=z.indexOf(h),D=B+h.length;g[2]&&(D=z.length-g[2].length,B=D-h.length);q=q.substring(5);J(m,l+k,z.substring(0,B),f,c);J(m,l+k+B,h,K(q,h),c);J(m,l+k+D,z.substring(D),f,c)}else c.push(l+-k,q)}a.g=c}var b={},v;(function(){for(var f=a.concat(d),l=[],m={},c=0,p=f.length;c<p;++c){var w=f[c],r=w[3];if(r)for(var e=r.length;0<=--e;)b[r.charAt(e)]=w;w=w[1];r=""+w;m.hasOwnProperty(r)||(l.push(w),m[r]=null)}l.push(/[\0-\uffff]/);v=T(l)})();var A=d.length;return f}function y(a){var d=[],f=[];a.tripleQuotedStrings?d.push(["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,-null,"'\""]):a.multiLineStrings?d.push(["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):d.push(["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]);a.verbatimStrings&&f.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var b=a.hashComments;b&&(a.cStyleComments?(1<b?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,-null,"#"]),f.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):d.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(f.push(["com",/^\/\/[^\r\n]*/,null]),f.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(b=a.regexLiterals){var v=(b=1<b?"":"\n\r")?".":"[\\S\\s]";f.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+-("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+v+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+v+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&f.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&f.push(["kwd",new RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),null]);d.push(["pln",/^\s+/,null," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");f.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i,-null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(b),null]);return G(d,f)}function L(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!A.test(a.className))if("br"===a.nodeName)v(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((3==c||4==c)&&f){var d=a.nodeValue,q=d.match(n);q&&(c=d.substring(0,q.index),a.nodeValue=c,(d=d.substring(q.index+q[0].length))&&-a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),v(a),c||a.parentNode.removeChild(a))}}function v(a){function b(a,c){var d=c?a.cloneNode(!1):a,k=a.parentNode;if(k){var k=b(k,1),e=a.nextSibling;k.appendChild(d);for(var f=e;f;f=e)e=f.nextSibling,k.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var d;(d=a.parentNode)&&1===d.nodeType;)a=d;c.push(a)}for(var A=/(?:^|\s)nocode(?:\s|$)/,n=/\r\n?|\n/,l=a.ownerDocument,m=l.createElement("li");a.firstChild;)m.appendChild(a.firstChild);-for(var c=[m],p=0;p<c.length;++p)b(c[p]);d===(d|0)&&c[0].setAttribute("value",d);var w=l.createElement("ol");w.className="linenums";d=Math.max(0,d-1|0)||0;for(var p=0,r=c.length;p<r;++p)m=c[p],m.className="L"+(p+d)%10,m.firstChild||m.appendChild(l.createTextNode("\u00a0")),w.appendChild(m);a.appendChild(w)}function t(a,d){for(var f=d.length;0<=--f;){var b=d[f];I.hasOwnProperty(b)?E.console&&console.warn("cannot override language handler %s",b):I[b]=a}}function K(a,d){a&&I.hasOwnProperty(a)||(a=/^\s*</.test(d)?-"default-markup":"default-code");return I[a]}function M(a){var d=a.j;try{var f=U(a.h,a.l),b=f.a;a.a=b;a.c=f.c;a.i=0;K(d,b)(a);var v=/\bMSIE\s(\d+)/.exec(navigator.userAgent),v=v&&8>=+v[1],d=/\n/g,A=a.a,n=A.length,f=0,l=a.c,m=l.length,b=0,c=a.g,p=c.length,w=0;c[p]=n;var r,e;for(e=r=0;e<p;)c[e]!==c[e+2]?(c[r++]=c[e++],c[r++]=c[e++]):e+=2;p=r;for(e=r=0;e<p;){for(var t=c[e],z=c[e+1],q=e+2;q+2<=p&&c[q+1]===z;)q+=2;c[r++]=t;c[r++]=z;e=q}c.length=r;var g=a.h;a="";g&&(a=g.style.display,g.style.display="none");-try{for(;b<m;){var h=l[b+2]||n,k=c[w+2]||n,q=Math.min(h,k),B=l[b+1],D;if(1!==B.nodeType&&(D=A.substring(f,q))){v&&(D=D.replace(d,"\r"));B.nodeValue=D;var N=B.ownerDocument,u=N.createElement("span");u.className=c[w+1];var y=B.parentNode;y.replaceChild(u,B);u.appendChild(B);f<h&&(l[b+1]=B=N.createTextNode(A.substring(q,h)),y.insertBefore(B,u.nextSibling))}f=q;f>=h&&(b+=2);f>=k&&(w+=2)}}finally{g&&(g.style.display=a)}}catch(x){E.console&&console.log(x&&x.stack||x)}}var E=window,C=["break,continue,do,else,for,if,return,while"],-F=[[C,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],H=[F,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],-O=[F,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],P=[F,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],-F=[F,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],Q=[C,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],R=[C,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[C,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],-S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,W=/\S/,X=y({keywords:[H,P,O,F,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Q,R,C],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),I={};t(X,["default-code"]);t(G([],[["pln",/^[^<?]+/],["dec",-/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));t(G([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,-"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);t(G([],[["atv",/^[\s\S]+/]]),["uq.val"]);t(y({keywords:H,-hashComments:!0,cStyleComments:!0,types:S}),"c cc cpp cxx cyc m".split(" "));t(y({keywords:"null,true,false"}),["json"]);t(y({keywords:P,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]);t(y({keywords:O,cStyleComments:!0}),["java"]);t(y({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);t(y({keywords:Q,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);t(y({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",-hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);t(y({keywords:R,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);t(y({keywords:F,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]);t(y({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,-regexLiterals:!0}),["coffee"]);t(G([],[["str",/^[\s\S]+/]]),["regex"]);var Y=E.PR={createSimpleLexer:G,registerLangHandler:t,sourceDecorator:y,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:E.prettyPrintOne=function(a,d,f){f=f||!1;d=d||null;var b=document.createElement("div");b.innerHTML="<pre>"+a+"</pre>";-b=b.firstChild;f&&L(b,f,!0);M({j:d,m:f,h:b,l:1,a:null,i:null,c:null,g:null});return b.innerHTML},prettyPrint:E.prettyPrint=function(a,d){function f(){for(var b=E.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;p<t.length&&c.now()<b;p++){for(var d=t[p],l=g,m=d;m=m.previousSibling;){var n=m.nodeType,u=(7===n||8===n)&&m.nodeValue;if(u?!/^\??prettify\b/.test(u):3!==n||/\S/.test(m.nodeValue))break;if(u){l={};u.replace(/\b(\w+)=([\w:.%+-]+)/g,function(a,b,c){l[b]=c});break}}m=d.className;if((l!==g||r.test(m))&&-!e.test(m)){n=!1;for(u=d.parentNode;u;u=u.parentNode)if(q.test(u.tagName)&&u.className&&r.test(u.className)){n=!0;break}if(!n){d.className+=" prettyprinted";n=l.lang;if(!n){var n=m.match(w),C;!n&&(C=V(d))&&z.test(C.tagName)&&(n=C.className.match(w));n&&(n=n[1])}if(y.test(d.tagName))u=1;else var u=d.currentStyle,x=v.defaultView,u=(u=u?u.whiteSpace:x&&x.getComputedStyle?x.getComputedStyle(d,null).getPropertyValue("white-space"):0)&&"pre"===u.substring(0,3);x=l.linenums;(x="true"===x||+x)||(x=(x=m.match(/\blinenums\b(?::(\d+))?/))?-x[1]&&x[1].length?+x[1]:!0:!1);x&&L(d,x,u);M({j:n,h:d,m:x,l:u,a:null,i:null,c:null,g:null})}}}p<t.length?E.setTimeout(f,250):"function"===typeof a&&a()}for(var b=d||document.body,v=b.ownerDocument||document,b=[b.getElementsByTagName("pre"),b.getElementsByTagName("code"),b.getElementsByTagName("xmp")],t=[],n=0;n<b.length;++n)for(var l=0,m=b[n].length;l<m;++l)t.push(b[n][l]);var b=null,c=Date;c.now||(c={now:function(){return+new Date}});var p=0,w=/\blang(?:uage)?-([\w.]+)(?!\S)/,r=/\bprettyprint\b/,-e=/\bprettyprinted\b/,y=/pre|xmp/i,z=/^code$/i,q=/^(?:pre|code|xmp)$/i,g={};f()}},H=E.define;"function"===typeof H&&H.amd&&H("google-code-prettify",[],function(){return Y})})();}()diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ar/ArabicNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ar/ArabicNormalizationFilterFactory.javaindex 937752e173e..b2f424942dc 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ar/ArabicNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ar/ArabicNormalizationFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ArabicNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_arnormal" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.ArabicNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ar/ArabicStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ar/ArabicStemFilterFactory.javaindex 9f2e70270c7..f9dae8b9a54 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ar/ArabicStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ar/ArabicStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ArabicStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_arstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.ArabicNormalizationFilterFactory"/>* <filter class="solr.ArabicStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/bg/BulgarianStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/bg/BulgarianStemFilterFactory.javaindex 8aebc1e0726..1152128fba9 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/bg/BulgarianStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/bg/BulgarianStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link BulgarianStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_bgstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.BulgarianStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizationFilterFactory.javaindex b95cbfbb93a..6090db2336f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizationFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link BengaliNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_bnnormal" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.BengaliNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 7.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliStemFilterFactory.javaindex a8711b4df53..f238d453729 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliStemFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link BengaliStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_histem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.BengaliStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 7.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/boost/DelimitedBoostTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/boost/DelimitedBoostTokenFilterFactory.javaindex 71f42bd587b..fe997448c79 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/boost/DelimitedBoostTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/boost/DelimitedBoostTokenFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link DelimitedBoostTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_dlmtd" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.DelimitedBoostTokenFilterFactory" delimiter="|"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @lucene.spi {@value #NAME}*/diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemFilterFactory.javaindex 634e1cc1b7e..b9b43aec1b9 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/br/BrazilianStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link BrazilianStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_brstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.BrazilianStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilterFactory.javaindex 84fc1cf7cfc..453cae98cef 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilterFactory.java@@ -25,13 +25,13 @@ import org.apache.lucene.analysis.CharFilterFactory;/*** Factory for {@link HTMLStripCharFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_html" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <charFilter class="solr.HTMLStripCharFilterFactory" escapedTags="a, title" />* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/MappingCharFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/MappingCharFilterFactory.javaindex 6ad3c3be39f..21fdc5caa4a 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/MappingCharFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/MappingCharFilterFactory.java@@ -30,13 +30,13 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link MappingCharFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_map" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <charFilter class="solr.MappingCharFilterFactory" mapping="mapping.txt"/>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since Solr 1.4* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilterFactory.javaindex 1c8699a92e3..7a99a207713 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKBigramFilterFactory.java@@ -23,7 +23,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link CJKBigramFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_cjk" class="solr.TextField">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>@@ -33,7 +33,7 @@ import org.apache.lucene.analysis.TokenStream;* han="true" hiragana="true"* katakana="true" hangul="true" outputUnigrams="false" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKWidthFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKWidthFilterFactory.javaindex 8e464fd7432..b9ee825d1fb 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKWidthFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cjk/CJKWidthFilterFactory.java@@ -23,7 +23,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link CJKWidthFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_cjk" class="solr.TextField">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>@@ -31,7 +31,7 @@ import org.apache.lucene.analysis.TokenStream;* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.CJKBigramFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ckb/SoraniNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ckb/SoraniNormalizationFilterFactory.javaindex 59409f74888..7e6451e6c90 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ckb/SoraniNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ckb/SoraniNormalizationFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link SoraniNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ckbnormal" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.SoraniNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.7.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ckb/SoraniStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ckb/SoraniStemFilterFactory.javaindex 00ce270a885..8df056edf81 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ckb/SoraniStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ckb/SoraniStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link SoraniStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ckbstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.SoraniNormalizationFilterFactory"/>* <filter class="solr.SoraniStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.7.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/classic/ClassicFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/classic/ClassicFilterFactory.javaindex 4c153bfdad6..dfb5bb4806a 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/classic/ClassicFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/classic/ClassicFilterFactory.java@@ -24,13 +24,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ClassicFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_clssc" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.ClassicTokenizerFactory"/>* <filter class="solr.ClassicFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/classic/ClassicTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/classic/ClassicTokenizerFactory.javaindex d62dbf9cdba..1ecf84c7e92 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/classic/ClassicTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/classic/ClassicTokenizerFactory.java@@ -24,12 +24,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link ClassicTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_clssc" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.ClassicTokenizerFactory" maxTokenLength="120"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsFilterFactory.javaindex 939b712a75f..052d421a01d 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsFilterFactory.java@@ -26,13 +26,13 @@ import org.apache.lucene.analysis.en.EnglishAnalyzer;/*** Constructs a {@link CommonGramsFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_cmmngrms" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.CommonGramsFilterFactory" words="commongramsstopwords.txt" ignoreCase="false"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsQueryFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsQueryFilterFactory.javaindex 0e19d787f53..0f911b9b12c 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsQueryFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/commongrams/CommonGramsQueryFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Construct {@link CommonGramsQueryFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_cmmngrmsqry" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.CommonGramsQueryFilterFactory" words="commongramsquerystopwords.txt" ignoreCase="false"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilterFactory.javaindex 13071aec38d..7102b65d353 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/DictionaryCompoundWordTokenFilterFactory.java@@ -28,14 +28,14 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link DictionaryCompoundWordTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_dictcomp" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.DictionaryCompoundWordTokenFilterFactory" dictionary="dictionary.txt"* minWordSize="5" minSubwordSize="2" maxSubwordSize="15" onlyLongestMatch="true"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilterFactory.javaindex 8a40de23fb8..54428b23a69 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilterFactory.java@@ -49,14 +49,14 @@ import org.xml.sax.InputSource;** <br>*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_hyphncomp" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.HyphenationCompoundWordTokenFilterFactory" hyphenator="hyphenator.xml" encoding="UTF-8"* dictionary="dictionary.txt" minWordSize="5" minSubwordSize="2" maxSubwordSize="15" onlyLongestMatch="false"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @see HyphenationCompoundWordTokenFilter* @since 3.1.0diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/package-info.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/package-info.javaindex 0f89337b1da..bcfbd1d7965 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/package-info.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/package-info.java@@ -138,7 +138,7 @@** <h2>Examples</h2>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public void testHyphenationCompoundWordsDE() throws Exception {* String[] dict = { "Rind", "Fleisch", "Draht", "Schere", "Gesetz",* "Aufgabe", "Überwachung" };@@ -192,6 +192,6 @@* System.out.println(t);* }* }- * </pre>+ * </code></pre>*/package org.apache.lucene.analysis.compound;diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/DecimalDigitFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/DecimalDigitFilterFactory.javaindex b2c7b9a3fb1..37194237ec5 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/DecimalDigitFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/DecimalDigitFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link DecimalDigitFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_lwrcase" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.DecimalDigitFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 5.4.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/KeywordTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/KeywordTokenizerFactory.javaindex 0f8a8c6a7d7..959e4e49392 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/KeywordTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/KeywordTokenizerFactory.java@@ -25,12 +25,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link KeywordTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_keyword" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.KeywordTokenizerFactory" maxTokenLen="256"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** Options:*diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LetterTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LetterTokenizerFactory.javaindex 3741fd811d3..04748eee104 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LetterTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LetterTokenizerFactory.java@@ -26,12 +26,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link LetterTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_letter" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.LetterTokenizerFactory" maxTokenLen="256"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** Options:*diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LowerCaseFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LowerCaseFilterFactory.javaindex 8558e7c3cac..e78618759c9 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LowerCaseFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LowerCaseFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link LowerCaseFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_lwrcase" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/StopFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/StopFilterFactory.javaindex b7ea4615f1d..4c0a8c71f66 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/StopFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/StopFilterFactory.java@@ -26,14 +26,14 @@ import org.apache.lucene.analysis.en.EnglishAnalyzer;/*** Factory for {@link StopFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_stop" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.StopFilterFactory" ignoreCase="true"* words="stopwords.txt" format="wordset"* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>All attributes are optional:*diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/TypeTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/TypeTokenFilterFactory.javaindex e1baa25c9d3..c58f206533a 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/TypeTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/TypeTokenFilterFactory.java@@ -29,14 +29,14 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory class for {@link TypeTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="chars" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.TypeTokenFilterFactory" types="stoptypes.txt"* useWhitelist="false"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/UpperCaseFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/UpperCaseFilterFactory.javaindex 0f86ca5495d..a6af42519e1 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/UpperCaseFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/UpperCaseFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link UpperCaseFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_uppercase" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.UpperCaseFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p><b>NOTE:</b> In Unicode, this transformation may lose information when the upper case* character represents more than one lower case character. Use this filter when you requirediff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/WhitespaceTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/WhitespaceTokenizerFactory.javaindex e62e5a3761c..647800ff7d1 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/WhitespaceTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/WhitespaceTokenizerFactory.java@@ -29,12 +29,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link WhitespaceTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory" rule="unicode" maxTokenLen="256"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** Options:*diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/custom/CustomAnalyzer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/custom/CustomAnalyzer.javaindex a6a41e94c0c..1ed08f7b288 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/custom/CustomAnalyzer.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/custom/CustomAnalyzer.java@@ -55,13 +55,13 @@ import org.apache.lucene.util.Version;* <p>You can create an instance of this Analyzer using the builder by passing the SPI names (as* defined by {@link java.util.ServiceLoader} interface) to it:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Analyzer ana = CustomAnalyzer.builder(Paths.get("/path/to/config/dir"))* .withTokenizer(StandardTokenizerFactory.NAME)* .addTokenFilter(LowerCaseFilterFactory.NAME)* .addTokenFilter(StopFilterFactory.NAME, "ignoreCase", "false", "words", "stopwords.txt", "format", "wordset")* .build();- * </pre>+ * </code></pre>** The parameters passed to components are also used by Apache Solr and are documented on their* corresponding factory classes. Refer to documentation of subclasses of {@link TokenizerFactory},@@ -69,13 +69,13 @@ import org.apache.lucene.util.Version;** <p>This is the same as the above:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Analyzer ana = CustomAnalyzer.builder(Paths.get("/path/to/config/dir"))* .withTokenizer("standard")* .addTokenFilter("lowercase")* .addTokenFilter("stop", "ignoreCase", "false", "words", "stopwords.txt", "format", "wordset")* .build();- * </pre>+ * </code></pre>** <p>The list of names to be used for components can be looked up through: {@link* TokenizerFactory#availableTokenizers()}, {@link TokenFilterFactory#availableTokenFilters()}, and@@ -84,7 +84,7 @@ import org.apache.lucene.util.Version;* <p>You can create conditional branches in the analyzer by using {@link Builder#when(String,* String...)} and {@link Builder#whenTerm(Predicate)}:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Analyzer ana = CustomAnalyzer.builder()* .withTokenizer("standard")* .addTokenFilter("lowercase")@@ -92,7 +92,7 @@ import org.apache.lucene.util.Version;* .addTokenFilter("reversestring")* .endwhen()* .build();- * </pre>+ * </code></pre>** @since 5.0.0*/diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cz/CzechStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cz/CzechStemFilterFactory.javaindex 5b5c4ac66a3..6b9f2faac0a 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/cz/CzechStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/cz/CzechStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link CzechStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_czstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.CzechStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanLightStemFilterFactory.javaindex 1f4a357ffca..66d3e848279 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanLightStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link GermanLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_delgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.GermanLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanMinimalStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanMinimalStemFilterFactory.javaindex 1183a00048a..0270c2479fa 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanMinimalStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanMinimalStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link GermanMinimalStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_deminstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.GermanMinimalStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanNormalizationFilterFactory.javaindex f55e26812b9..93ddf39a787 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanNormalizationFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link GermanNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_denorm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.GermanNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemFilterFactory.javaindex 4bf9b74650e..3768630d65b 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/de/GermanStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link GermanStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_destem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.GermanStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/el/GreekLowerCaseFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/el/GreekLowerCaseFilterFactory.javaindex 54789ccde16..5cfa11ec8fd 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/el/GreekLowerCaseFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/el/GreekLowerCaseFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link GreekLowerCaseFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_glc" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.GreekLowerCaseFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/el/GreekStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/el/GreekStemFilterFactory.javaindex c6dc20031d9..6c4980cd14f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/el/GreekStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/el/GreekStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link GreekStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_gstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.GreekLowerCaseFilterFactory"/>* <filter class="solr.GreekStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/email/UAX29URLEmailTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/email/UAX29URLEmailTokenizerFactory.javaindex 566cd672350..d46f05f05bc 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/email/UAX29URLEmailTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/email/UAX29URLEmailTokenizerFactory.java@@ -24,12 +24,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link UAX29URLEmailTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_urlemail" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.UAX29URLEmailTokenizerFactory" maxTokenLength="255"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishMinimalStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishMinimalStemFilterFactory.javaindex 68f23012631..66a0809e7ae 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishMinimalStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishMinimalStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link EnglishMinimalStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_enminstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.EnglishMinimalStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishPossessiveFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishPossessiveFilterFactory.javaindex 4eb6f13e9f1..4a1f5b4e20f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishPossessiveFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishPossessiveFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link EnglishPossessiveFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_enpossessive" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.EnglishPossessiveFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemFilterFactory.javaindex 536ae0ff6b6..64a982ac05a 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemFilterFactory.java@@ -24,14 +24,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link KStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_kstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.KStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.3.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilter.javaindex 1d7c4170ceb..4b20623da9e 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilter.java@@ -31,7 +31,7 @@ import org.apache.lucene.analysis.tokenattributes.KeywordAttribute;* the TokenStream chain as you want it. To use this with LowerCaseTokenizer, for example, you'd* write an analyzer like this: <br>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* class MyAnalyzer extends Analyzer {* {@literal @Override}* protected TokenStreamComponents createComponents(String fieldName) {@@ -39,7 +39,7 @@ import org.apache.lucene.analysis.tokenattributes.KeywordAttribute;* return new TokenStreamComponents(source, new PorterStemFilter(source));* }* }- * </pre>+ * </code></pre>** <p>Note: This filter is aware of the {@link KeywordAttribute}. To prevent certain terms from* being passed to the stemmer {@link KeywordAttribute#isKeyword()} should be set to <code>truediff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilterFactory.javaindex aa7c4fd630a..a73aeac3254 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link PorterStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_porterstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.PorterStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishLightStemFilterFactory.javaindex a2040f2cd51..4eb3bcf7a17 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishLightStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link SpanishLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_eslgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.SpanishLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishMinimalStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishMinimalStemFilterFactory.javaindex 9526704a2da..da929afb5e2 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishMinimalStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishMinimalStemFilterFactory.java@@ -24,14 +24,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link SpanishMinimalStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_eslgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.SpanishMinimalStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @lucene.spi {@value #NAME}* @deprecated Use {@link SpanishPluralStemFilterFactory} insteaddiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishPluralStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishPluralStemFilterFactory.javaindex 6063601b152..e995333a2d5 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishPluralStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/es/SpanishPluralStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link SpanishPluralStemFilterFactory}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_eslgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.SpanishPluralStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @lucene.spi {@value #NAME}*/diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fa/PersianCharFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fa/PersianCharFilterFactory.javaindex 0b4fbde18a2..80c35db5cfd 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fa/PersianCharFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fa/PersianCharFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.CharFilterFactory;/*** Factory for {@link PersianCharFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_fa" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <charFilter class="solr.PersianCharFilterFactory"/>* <tokenizer class="solr.StandardTokenizerFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fa/PersianNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fa/PersianNormalizationFilterFactory.javaindex d086caf9d56..ec6161252b5 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fa/PersianNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fa/PersianNormalizationFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link PersianNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_fanormal" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <charFilter class="solr.PersianCharFilterFactory"/>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.PersianNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fi/FinnishLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fi/FinnishLightStemFilterFactory.javaindex 67589c4dbd8..bc8159fe283 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fi/FinnishLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fi/FinnishLightStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link FinnishLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_filgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.FinnishLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fr/FrenchLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fr/FrenchLightStemFilterFactory.javaindex ee0c7ceb5f4..71bb605b718 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fr/FrenchLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fr/FrenchLightStemFilterFactory.java@@ -23,7 +23,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link FrenchLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_frlgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>@@ -31,7 +31,7 @@ import org.apache.lucene.analysis.TokenStream;* <filter class="solr.ElisionFilterFactory"/>* <filter class="solr.FrenchLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fr/FrenchMinimalStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fr/FrenchMinimalStemFilterFactory.javaindex de7399911f5..c309be23cf3 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/fr/FrenchMinimalStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/fr/FrenchMinimalStemFilterFactory.java@@ -23,7 +23,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link FrenchMinimalStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_frminstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>@@ -31,7 +31,7 @@ import org.apache.lucene.analysis.TokenStream;* <filter class="solr.ElisionFilterFactory"/>* <filter class="solr.FrenchMinimalStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ga/IrishLowerCaseFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ga/IrishLowerCaseFilterFactory.javaindex 5cbe67db6c3..489d50e61f8 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ga/IrishLowerCaseFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ga/IrishLowerCaseFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link IrishLowerCaseFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ga" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.IrishLowerCaseFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/gl/GalicianMinimalStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/gl/GalicianMinimalStemFilterFactory.javaindex c0bc05e636c..08b83e328f5 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/gl/GalicianMinimalStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/gl/GalicianMinimalStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link GalicianMinimalStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_glplural" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.GalicianMinimalStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/gl/GalicianStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/gl/GalicianStemFilterFactory.javaindex 825101a185d..3f728887359 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/gl/GalicianStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/gl/GalicianStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link GalicianStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_glstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.GalicianStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hi/HindiNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hi/HindiNormalizationFilterFactory.javaindex a6b39cd4d44..1f757d861f7 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hi/HindiNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hi/HindiNormalizationFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link HindiNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_hinormal" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.HindiNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hi/HindiStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hi/HindiStemFilterFactory.javaindex c20659c8e4b..fd27b88814f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hi/HindiStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hi/HindiStemFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link HindiStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_histem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.HindiStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hu/HungarianLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hu/HungarianLightStemFilterFactory.javaindex b115ce9dce4..7955bc47471 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hu/HungarianLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hu/HungarianLightStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link HungarianLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_hulgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.HungarianLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/HunspellStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/HunspellStemFilterFactory.javaindex e4bab11874f..63a775b5a8c 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/HunspellStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/HunspellStemFilterFactory.java@@ -36,12 +36,12 @@ import org.apache.lucene.util.ResourceLoaderAware;* TokenFilterFactory that creates instances of {@link HunspellStemFilter}. Example config for* British English:*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <filter class="solr.HunspellStemFilterFactory"* dictionary="en_GB.dic,my_custom.dic"* affix="en_GB.aff"* ignoreCase="false"- * longestOnly="false" /></pre>+ * longestOnly="false" /></code></pre>** Both parameters dictionary and affix are mandatory. Dictionaries for many languages are available* through the OpenOffice project.diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/id/IndonesianStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/id/IndonesianStemFilterFactory.javaindex e36d115b708..bc577b6fc3b 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/id/IndonesianStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/id/IndonesianStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link IndonesianStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_idstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.IndonesianStemFilterFactory" stemDerivational="true"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/in/IndicNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/in/IndicNormalizationFilterFactory.javaindex a8cec485277..0af2b5fead3 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/in/IndicNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/in/IndicNormalizationFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link IndicNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_innormal" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.IndicNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/it/ItalianLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/it/ItalianLightStemFilterFactory.javaindex df570336946..0c42fec01a5 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/it/ItalianLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/it/ItalianLightStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ItalianLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_itlgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.ItalianLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/lv/LatvianStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/lv/LatvianStemFilterFactory.javaindex 8810753626e..61c51cf61ec 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/lv/LatvianStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/lv/LatvianStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link LatvianStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_lvstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.LatvianStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.2.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilterFactory.javaindex 53038cdaa4e..0bcadfa5a46 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ASCIIFoldingFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ascii" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.ASCIIFoldingFilterFactory" preserveOriginal="false"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilterFactory.javaindex 7f2f81fd637..43756eb8ebe 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CapitalizationFilterFactory.java@@ -46,7 +46,7 @@ import org.apache.lucene.analysis.TokenStream;* assumed to be correct.* </ul>*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_cptlztn" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>@@ -54,7 +54,7 @@ import org.apache.lucene.analysis.TokenStream;* keep="java solr lucene" keepIgnoreCase="false"* okPrefix="McK McD McA"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since solr 1.3* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CodepointCountFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CodepointCountFilterFactory.javaindex 6211ff58166..e92ed7e82e7 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CodepointCountFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/CodepointCountFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link CodepointCountFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_lngth" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.CodepointCountFilterFactory" min="0" max="1" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.5.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DateRecognizerFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DateRecognizerFilterFactory.javaindex aa6a40b0157..b5926116e66 100755--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DateRecognizerFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DateRecognizerFilterFactory.java@@ -26,14 +26,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link DateRecognizerFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_filter_none_date" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.DateRecognizerFilterFactory" datePattern="yyyy/mm/dd" locale="en-US" />* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** <p>The {@code datePattern} is optional. If omitted, {@link DateRecognizerFilter} will be created* with the default date format of the system. The {@code locale} is optional and if omitted thediff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DelimitedTermFrequencyTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DelimitedTermFrequencyTokenFilterFactory.javaindex 5fb58398d6d..ab07cfcaf75 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DelimitedTermFrequencyTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DelimitedTermFrequencyTokenFilterFactory.java@@ -25,13 +25,13 @@ import org.apache.lucene.analysis.TokenStream;* Factory for {@link DelimitedTermFrequencyTokenFilter}. The field must have {@code* omitPositions=true}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_tfdl" class="solr.TextField" omitPositions="true">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.DelimitedTermFrequencyTokenFilterFactory" delimiter="|"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 7.0.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DropIfFlaggedFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DropIfFlaggedFilterFactory.javaindex efd9da2df70..f63b166c4ba 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DropIfFlaggedFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/DropIfFlaggedFilterFactory.java@@ -29,13 +29,13 @@ import org.apache.lucene.analysis.TokenStream;* <br>* In Solr this might be configured such as*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <analyzer type="index">* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <-- other filters -->* <filter class="solr.DropIfFlaggedFilterFactory" dropFlags="9"/>* </analyzer>- * </pre>+ * </code></pre>** The above would drop any token that had the first and fourth bit set.*diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/FingerprintFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/FingerprintFilterFactory.javaindex e34d0a2a2ac..76e4c29a848 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/FingerprintFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/FingerprintFilterFactory.java@@ -23,12 +23,9 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link FingerprintFilter}.*- * <pre class="prettyprint">- * The {@code maxOutputTokenSize} property is optional and defaults to {@code 1024}.- * The {@code separator} property is optional and defaults to the space character.- * See- * {@link FingerprintFilter} for an explanation of its use.- * </pre>+ * <p>The {@code maxOutputTokenSize} property is optional and defaults to {@code 1024}. The {@code+ * separator} property is optional and defaults to the space character. See {@link+ * FingerprintFilter} for an explanation of its use.** @since 5.4.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/HyphenatedWordsFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/HyphenatedWordsFilter.javaindex 50649698518..38d376b6b9d 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/HyphenatedWordsFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/HyphenatedWordsFilter.java@@ -30,7 +30,7 @@ import org.apache.lucene.util.IgnoreRandomChains;* broken into two lines back together. This filter should be used on indexing time only. Example* field definition in schema.xml:*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldtype name="text" class="solr.TextField" positionIncrementGap="100">* <analyzer type="index">* <tokenizer class="solr.WhitespaceTokenizerFactory"/>@@ -50,7 +50,7 @@ import org.apache.lucene.util.IgnoreRandomChains;* <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>* </analyzer>* </fieldtype>- * </pre>+ * </code></pre>*/@IgnoreRandomChains(reason = "TODO: doesn't handle graph inputs (or even look at positionIncrement)")diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/HyphenatedWordsFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/HyphenatedWordsFilterFactory.javaindex 130241c6de1..c25fbcba2c0 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/HyphenatedWordsFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/HyphenatedWordsFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link HyphenatedWordsFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_hyphn" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.HyphenatedWordsFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/KeepWordFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/KeepWordFilterFactory.javaindex 324c4ca9a43..af792b39bd9 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/KeepWordFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/KeepWordFilterFactory.java@@ -24,13 +24,13 @@ import org.apache.lucene.analysis.en.AbstractWordsFileFilterFactory;/*** Factory for {@link KeepWordFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_keepword" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.KeepWordFilterFactory" words="keepwords.txt" ignoreCase="false"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/KeywordMarkerFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/KeywordMarkerFilterFactory.javaindex 712668d2caf..dbf17d0cdd7 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/KeywordMarkerFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/KeywordMarkerFilterFactory.java@@ -28,13 +28,13 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link KeywordMarkerFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_keyword" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.KeywordMarkerFilterFactory" protected="protectedkeyword.txt" pattern="^.+er$" ignoreCase="false"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilterFactory.javaindex e7b62bd65c6..10d909df43d 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link LengthFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_lngth" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.LengthFilterFactory" min="0" max="1" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilterFactory.javaindex 8f5f6c039e4..0e2f91262ba 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link LimitTokenCountFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_lngthcnt" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10" consumeAllTokens="false" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>The {@code consumeAllTokens} property is optional and defaults to {@code false}. See {@link* LimitTokenCountFilter} for an explanation of its use.diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenOffsetFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenOffsetFilterFactory.javaindex ddd3027bd82..71e1b189352 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenOffsetFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenOffsetFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link LimitTokenOffsetFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_limit_pos" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.LimitTokenOffsetFilter" maxStartOffset="100000" consumeAllTokens="false" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>The {@code consumeAllTokens} property is optional and defaults to {@code false}.*diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenPositionFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenPositionFilterFactory.javaindex 75c8c646a77..23dba2b7930 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenPositionFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LimitTokenPositionFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link LimitTokenPositionFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_limit_pos" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.LimitTokenPositionFilterFactory" maxTokenPosition="3" consumeAllTokens="false" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>The {@code consumeAllTokens} property is optional and defaults to {@code false}. See {@link* LimitTokenPositionFilter} for an explanation of its use.diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.javaindex c8606079b05..c1232197ed2 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PerFieldAnalyzerWrapper.java@@ -21,30 +21,27 @@ import java.util.Map;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.analysis.DelegatingAnalyzerWrapper;-/**- * This analyzer is used to facilitate scenarios where different fields require different analysis- * techniques. Use the Map argument in {@link #PerFieldAnalyzerWrapper(Analyzer, java.util.Map)} to- * add non-default analyzers for fields.- *- * <p>Example usage:- *- * <pre class="prettyprint">{@code- * Map<String,Analyzer> analyzerPerField = new HashMap<>();- * analyzerPerField.put("firstname", new KeywordAnalyzer());- * analyzerPerField.put("lastname", new KeywordAnalyzer());- *- * PerFieldAnalyzerWrapper aWrapper =- * new PerFieldAnalyzerWrapper(new StandardAnalyzer(version), analyzerPerField);- * }</pre>- *- * <p>In this example, StandardAnalyzer will be used for all fields except "firstname" and- * "lastname", for which KeywordAnalyzer will be used.- *- * <p>A PerFieldAnalyzerWrapper can be used like any other analyzer, for both indexing and query- * parsing.- *- * @since 3.1- */+/// This analyzer is used to facilitate scenarios where different fields require different analysis+/// techniques. Use the Map argument in [#PerFieldAnalyzerWrapper(Analyzer, java.util.Map)] to+/// add non-default analyzers for fields.+///+/// Example usage:+/// ```java+/// Map<String,Analyzer> analyzerPerField = new HashMap<>();+/// analyzerPerField.put("firstname", new KeywordAnalyzer());+/// analyzerPerField.put("lastname", new KeywordAnalyzer());+///+/// PerFieldAnalyzerWrapper aWrapper =+/// new PerFieldAnalyzerWrapper(new StandardAnalyzer(version), analyzerPerField);+/// ```+///+/// In this example, StandardAnalyzer will be used for all fields except "firstname" and+/// "lastname", for which KeywordAnalyzer will be used.+///+/// A PerFieldAnalyzerWrapper can be used like any other analyzer, for both indexing and query+/// parsing.+///+/// @since 3.1public final class PerFieldAnalyzerWrapper extends DelegatingAnalyzerWrapper {private final Analyzer defaultAnalyzer;private final Map<String, Analyzer> fieldAnalyzers;diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ProtectedTermFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ProtectedTermFilterFactory.javaindex 9d134784b36..8787813c017 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ProtectedTermFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ProtectedTermFilterFactory.java@@ -37,7 +37,7 @@ import org.apache.lucene.util.ResourceLoader;** <p>CustomAnalyzer example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Analyzer ana = CustomAnalyzer.builder()* .withTokenizer("standard")* .when("protectedterm", "ignoreCase", "true", "protected", "protectedTerms.txt")@@ -45,26 +45,26 @@ import org.apache.lucene.util.ResourceLoader;* .addTokenFilter("lowercase")* .endwhen()* .build();- * </pre>+ * </code></pre>** <p>Solr example, in which conditional filters are specified via the <code>wrappedFilters</code>* parameter - a comma-separated list of case-insensitive TokenFilter SPI names - and conditional* filter args are specified via <code>filterName.argName</code> parameters:*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="reverse_lower_with_exceptions" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.ProtectedTermFilterFactory" ignoreCase="true" protected="protectedTerms.txt"* wrappedFilters="truncate,lowercase" truncate.prefixLength="4" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>When using the <code>wrappedFilters</code> parameter, each filter name must be unique, so if* you need to specify the same filter more than once, you must add case-insensitive unique '-id'* suffixes (note that the '-id' suffix is stripped prior to SPI lookup), e.g.:*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="double_synonym_with_exceptions" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>@@ -73,7 +73,7 @@ import org.apache.lucene.util.ResourceLoader;* synonymgraph-A.synonyms="synonyms-1.txt"* synonymgraph-B.synonyms="synonyms-2.txt"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>See related {@link* org.apache.lucene.analysis.custom.CustomAnalyzer.Builder#whenTerm(Predicate)}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilterFactory.javaindex 9d54ac8e5d4..b8cdcbf9b5e 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link RemoveDuplicatesTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_rmdup" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilterFactory.javaindex 12b24d6f5c3..dd9b42e7a99 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ScandinavianFoldingFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_scandfold" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.ScandinavianFoldingFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.4.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilterFactory.javaindex 6f65fffe658..489b0bc453b 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link org.apache.lucene.analysis.miscellaneous.ScandinavianNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_scandnorm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.ScandinavianNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.4.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.javaindex b0b33a9b3fa..f633499d4ee 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java@@ -28,13 +28,13 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link StemmerOverrideFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_dicstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.StemmerOverrideFilterFactory" dictionary="dictionary.txt" ignoreCase="false"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TrimFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TrimFilterFactory.javaindex d3e12d9444d..dd11a64d6d6 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TrimFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TrimFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link TrimFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_trm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.NGramTokenizerFactory"/>* <filter class="solr.TrimFilterFactory" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @see TrimFilter* @since 3.1diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilterFactory.javaindex ba57a675b6f..11ae978532f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilterFactory.java@@ -24,7 +24,7 @@ import org.apache.lucene.analysis.TokenStream;* Factory for {@link org.apache.lucene.analysis.miscellaneous.TruncateTokenFilter}. The following* type is recommended for "<i>diacritics-insensitive search</i>" for Turkish.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_tr_ascii_f5" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>@@ -35,7 +35,7 @@ import org.apache.lucene.analysis.TokenStream;* <filter class="solr.TruncateTokenFilterFactory" prefixLength="5"/>* <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.8.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TypeAsSynonymFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TypeAsSynonymFilterFactory.javaindex e648a5139f9..628b492df2a 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TypeAsSynonymFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/TypeAsSynonymFilterFactory.java@@ -27,13 +27,13 @@ import org.apache.lucene.analysis.TokenStream;** <p>In Solr this might be used as such*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_type_as_synonym" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.UAX29URLEmailTokenizerFactory"/>* <filter class="solr.TypeAsSynonymFilterFactory" prefix="_type_" synFlagsMask="5" ignore="foo,bar"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>If the optional {@code prefix} parameter is used, the specified value will be prepended to the* type, e.g. with prefix="_type_", for a token "example.com" with type "<URL>", the emitteddiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilterFactory.javaindex d2a05833ca0..f4c397db14f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilterFactory.java@@ -35,7 +35,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link WordDelimiterFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_wd" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>@@ -45,7 +45,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* generateWordParts="1" generateNumberParts="1" stemEnglishPossessive="1"* types="wdfftypes.txt" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @deprecated Use {@link WordDelimiterGraphFilterFactory} instead: it produces a correct token* graph so that e.g. {@link PhraseQuery} works correctly when it's used in the search timediff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterGraphFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterGraphFilterFactory.javaindex 31fdf35fb02..cbadad173db 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterGraphFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterGraphFilterFactory.java@@ -51,7 +51,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link WordDelimiterGraphFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_wd" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>@@ -61,7 +61,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* generateWordParts="1" generateNumberParts="1" stemEnglishPossessive="1"* types="wdfftypes.txt" ignoreKeywords="0" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 6.5.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/EdgeNGramFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/EdgeNGramFilterFactory.javaindex 26341f8e45c..b232075fe4c 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/EdgeNGramFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/EdgeNGramFilterFactory.java@@ -24,13 +24,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Creates new instances of {@link EdgeNGramTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_edgngrm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="2" preserveOriginal="true"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizerFactory.javaindex 2eb84c334c1..52b46f17428 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/EdgeNGramTokenizerFactory.java@@ -24,12 +24,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Creates new instances of {@link EdgeNGramTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_edgngrm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.EdgeNGramTokenizerFactory" minGramSize="1" maxGramSize="1"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/NGramFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/NGramFilterFactory.javaindex 7d2c57c0280..01cd1c27c8b 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/NGramFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/NGramFilterFactory.java@@ -24,13 +24,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link NGramTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ngrm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.NGramFilterFactory" minGramSize="1" maxGramSize="2" preserveOriginal="true"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/NGramTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/NGramTokenizerFactory.javaindex 400451f2eea..a23db511a54 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/NGramTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ngram/NGramTokenizerFactory.java@@ -26,12 +26,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link NGramTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ngrm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.NGramTokenizerFactory" minGramSize="1" maxGramSize="2"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/no/NorwegianLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/no/NorwegianLightStemFilterFactory.javaindex 81061f49db5..76ef0c65f5a 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/no/NorwegianLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/no/NorwegianLightStemFilterFactory.java@@ -26,14 +26,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link NorwegianLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_svlgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.NorwegianLightStemFilterFactory" variant="nb"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/no/NorwegianMinimalStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/no/NorwegianMinimalStemFilterFactory.javaindex 3c8d28c9b29..873f722dc94 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/no/NorwegianMinimalStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/no/NorwegianMinimalStemFilterFactory.java@@ -26,14 +26,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link NorwegianMinimalStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_svlgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.NorwegianMinimalStemFilterFactory" variant="nb"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.javaindex b4c01ea072f..f02e648713d 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.java@@ -32,7 +32,7 @@ import org.apache.lucene.util.AttributeFactory;* <code>Books/NonFic/Science/Physics</code>, etc. But it will not match documents indexed with* values like <code>Books</code>, or <code>Books/Fic</code>...*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="descendent_path" class="solr.TextField">* <analyzer type="index">* <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />@@ -41,14 +41,14 @@ import org.apache.lucene.util.AttributeFactory;* <tokenizer class="solr.KeywordTokenizerFactory" />* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** <p>In this example however we see the oposite configuration, so that a query for <code>* Books/NonFic/Science/Physics</code> would match documents containing <code>Books/NonFic</code>,* <code>Books/NonFic/Science</code>, or <code>Books/NonFic/Science/Physics</code>, but not <code>* Books/NonFic/Science/Physics/Theory</code> or <code>Books/NonFic/Law</code>.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="descendent_path" class="solr.TextField">* <analyzer type="index">* <tokenizer class="solr.KeywordTokenizerFactory" />@@ -57,7 +57,7 @@ import org.apache.lucene.util.AttributeFactory;* <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternCaptureGroupFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternCaptureGroupFilterFactory.javaindex fc6c78ba783..754b19351b9 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternCaptureGroupFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternCaptureGroupFilterFactory.java@@ -24,13 +24,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link PatternCaptureGroupTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptncapturegroup" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.KeywordTokenizerFactory"/>* <filter class="solr.PatternCaptureGroupFilterFactory" pattern="([^a-z])" preserve_original="true"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @see PatternCaptureGroupTokenFilter* @since 4.4.0diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternReplaceCharFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternReplaceCharFilterFactory.javaindex 9ddd8c176f7..208632ea9a9 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternReplaceCharFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternReplaceCharFilterFactory.java@@ -24,14 +24,14 @@ import org.apache.lucene.analysis.CharFilterFactory;/*** Factory for {@link PatternReplaceCharFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptnreplace" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <charFilter class="solr.PatternReplaceCharFilterFactory"* pattern="([^a-z])" replacement=""/>* <tokenizer class="solr.KeywordTokenizerFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since Solr 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternReplaceFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternReplaceFilterFactory.javaindex 93845a6294d..3672209af75 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternReplaceFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternReplaceFilterFactory.java@@ -25,14 +25,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link PatternReplaceFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptnreplace" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.KeywordTokenizerFactory"/>* <filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement=""* replace="all"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @see PatternReplaceFilter* @since 3.1diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternTokenizerFactory.javaindex 6f5852c196e..07fe9e6d224 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternTokenizerFactory.java@@ -46,12 +46,12 @@ import org.apache.lucene.util.AttributeFactory;** <p>NOTE: This Tokenizer does not output tokens that are of zero length.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptn" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.PatternTokenizerFactory" pattern="\'([^\']+)\'" group="1"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @see PatternTokenizer* @since solr1.2diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternTypingFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternTypingFilterFactory.javaindex 4c379679f7f..a187e689714 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternTypingFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/PatternTypingFilterFactory.java@@ -33,7 +33,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* itself this filter is not very useful. Normally it is combined with a filter that reacts to types* or flags.*- * <pre class="prettyprint" >+ * <pre><code class="language-xml">* <fieldType name="text_taf" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>@@ -42,7 +42,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* <filter class="solr.TypeAsSynonymFilterFactory" prefix="__TAS__"* ignore="word,&lt;ALPHANUM&gt;,&lt;NUM&gt;,&lt;SOUTHEAST_ASIAN&gt;,&lt;IDEOGRAPHIC&gt;,&lt;HIRAGANA&gt;,&lt;KATAKANA&gt;,&lt;HANGUL&gt;,&lt;EMOJI&gt;"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>Note that a configuration such as above may interfere with multi-word synonyms. The patterns* file has the format:diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/SimplePatternSplitTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/SimplePatternSplitTokenizerFactory.javaindex 7472bba5848..b6ab8240879 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/SimplePatternSplitTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/SimplePatternSplitTokenizerFactory.java@@ -46,12 +46,12 @@ import org.apache.lucene.util.automaton.RegExp;** <p>For example, to match tokens delimited by simple whitespace characters:*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptn" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.SimplePatternSplitTokenizerFactory" pattern="[ \t\r\n]+"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @lucene.experimental* @see SimplePatternSplitTokenizerdiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/SimplePatternTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/SimplePatternTokenizerFactory.javaindex ea790345abd..39261eef158 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/SimplePatternTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pattern/SimplePatternTokenizerFactory.java@@ -44,12 +44,12 @@ import org.apache.lucene.util.automaton.RegExp;** <p>For example, to match tokens delimited by simple whitespace characters:*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptn" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.SimplePatternTokenizerFactory" pattern="[^ \t\r\n]+"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @lucene.experimental* @see SimplePatternTokenizerdiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/DelimitedPayloadTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/DelimitedPayloadTokenFilterFactory.javaindex 74131f16660..74a8bd026a1 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/DelimitedPayloadTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/DelimitedPayloadTokenFilterFactory.java@@ -25,13 +25,13 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link DelimitedPayloadTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_dlmtd" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float" delimiter="|"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/NumericPayloadTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/NumericPayloadTokenFilterFactory.javaindex 646dba1d88c..7539935a929 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/NumericPayloadTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/NumericPayloadTokenFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link NumericPayloadTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_numpayload" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.NumericPayloadTokenFilterFactory" payload="24" typeMatch="word"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/TokenOffsetPayloadTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/TokenOffsetPayloadTokenFilterFactory.javaindex 5321ce282f6..ef0a6c59700 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/TokenOffsetPayloadTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/TokenOffsetPayloadTokenFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link TokenOffsetPayloadTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_tokenoffset" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.TokenOffsetPayloadTokenFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/TypeAsPayloadTokenFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/TypeAsPayloadTokenFilterFactory.javaindex 8c5b2c1948d..e02217d187e 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/TypeAsPayloadTokenFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/TypeAsPayloadTokenFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link TypeAsPayloadTokenFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_typeaspayload" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.TypeAsPayloadTokenFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseLightStemFilterFactory.javaindex bd579801d9b..b2d802ace5b 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseLightStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link PortugueseLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptlgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.PortugueseLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseMinimalStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseMinimalStemFilterFactory.javaindex 052bc7675fc..2895910ddc2 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseMinimalStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseMinimalStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link PortugueseMinimalStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptminstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.PortugueseMinimalStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseStemFilterFactory.javaindex f28bcf7ec5a..77f1c793af1 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/pt/PortugueseStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link PortugueseStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ptstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.PortugueseStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/reverse/ReverseStringFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/reverse/ReverseStringFilterFactory.javaindex 9b2e43ddd78..e4a5e7667ae 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/reverse/ReverseStringFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/reverse/ReverseStringFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ReverseStringFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_rvsstr" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.ReverseStringFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since solr 1.4* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ru/RussianLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ru/RussianLightStemFilterFactory.javaindex 0f76f95bb36..692f57aaab6 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/ru/RussianLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/ru/RussianLightStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link RussianLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_rulgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.RussianLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/shingle/ShingleFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/shingle/ShingleFilterFactory.javaindex 008f8460da3..25f0d3c8119 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/shingle/ShingleFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/shingle/ShingleFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ShingleFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_shingle" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.ShingleFilterFactory" minShingleSize="2" maxShingleSize="2"* outputUnigrams="true" outputUnigramsIfNoShingles="false" tokenSeparator=" " fillerToken="_"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/sinks/TeeSinkTokenFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/sinks/TeeSinkTokenFilter.javaindex 57088983fa8..7d2a5fdf27d 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/sinks/TeeSinkTokenFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/sinks/TeeSinkTokenFilter.java@@ -32,7 +32,7 @@ import org.apache.lucene.util.AttributeSource;* <p>It is also useful for doing things like entity extraction or proper noun analysis as part of* the analysis workflow and saving off those tokens for use in another field.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* TeeSinkTokenFilter source1 = new TeeSinkTokenFilter(new WhitespaceTokenizer());* TeeSinkTokenFilter.SinkTokenStream sink1 = source1.newSinkTokenStream();* TeeSinkTokenFilter.SinkTokenStream sink2 = source1.newSinkTokenStream();@@ -44,7 +44,7 @@ import org.apache.lucene.util.AttributeSource;* d.add(new TextField("f1", final1));* d.add(new TextField("f2", final2));* d.add(new TextField("f3", final3));- * </pre>+ * </code></pre>** <p>In this example, {@code sink1} and {@code sink2} will both get tokens from {@code source1}* after whitespace tokenization, and will further do additional token filtering, e.g. detectdiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballPorterFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballPorterFilterFactory.javaindex 2b31d2fe1fa..3997ea9d46f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballPorterFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/snowball/SnowballPorterFilterFactory.java@@ -32,14 +32,14 @@ import org.tartarus.snowball.SnowballStemmer;** <p>Note: Use of the "Lovins" stemmer is not recommended, as it is implemented with reflection.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_snowballstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.SnowballPorterFilterFactory" protected="protectedkeyword.txt" language="English"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/sr/SerbianNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/sr/SerbianNormalizationFilterFactory.javaindex f801b8f4a71..cfdfddf8b8c 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/sr/SerbianNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/sr/SerbianNormalizationFilterFactory.java@@ -24,7 +24,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link SerbianNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_srnorm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>@@ -32,7 +32,7 @@ import org.apache.lucene.analysis.TokenStream;* <filter class="solr.SerbianNormalizationFilterFactory"* haircut="bald"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 5.0.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishLightStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishLightStemFilterFactory.javaindex e4e9834a509..3f61546f32f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishLightStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishLightStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link SwedishLightStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_svlgtstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.SwedishLightStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishMinimalStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishMinimalStemFilterFactory.javaindex 49edfa4e8b6..c0454c71246 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishMinimalStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/sv/SwedishMinimalStemFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link SwedishMinimalStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_svminstem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.LowerCaseFilterFactory"/>* <filter class="solr.SwedishMinimalStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 9.0.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymFilterFactory.javaindex 81b017bf607..fae3224e6ec 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymFilterFactory.java@@ -41,7 +41,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link SynonymFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_synonym" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>@@ -50,7 +50,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* tokenizerFactory="solr.WhitespaceTokenizerFactory"* [optional tokenizer factory parameters]/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>An optional param name prefix of "tokenizerFactory." may be used for any init params that the* SynonymFilterFactory needs to pass to the specified TokenizerFactory. If the TokenizerFactorydiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymGraphFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymGraphFilterFactory.javaindex f2c5c42c18c..7b34caf78f1 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymGraphFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymGraphFilterFactory.java@@ -40,7 +40,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link SynonymGraphFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_synonym" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>@@ -49,7 +49,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* tokenizerFactory="solr.WhitespaceTokenizerFactory"* [optional tokenizer factory parameters]/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>An optional param name prefix of "tokenizerFactory." may be used for any init params that the* SynonymGraphFilterFactory needs to pass to the specified TokenizerFactory. If thediff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguNormalizationFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguNormalizationFilterFactory.javaindex 8fa05efc7f9..bf23b5e13b2 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguNormalizationFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguNormalizationFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link TeluguNormalizationFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_tenormal" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.TeluguNormalizationFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 9.0.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguStemFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguStemFilterFactory.javaindex 0e26ba115cd..bda48538c87 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguStemFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/te/TeluguStemFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link TeluguStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_testem" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.TeluguStemFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 9.0.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/th/ThaiTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/th/ThaiTokenizerFactory.javaindex bf0b7f8f937..ef0969681a3 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/th/ThaiTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/th/ThaiTokenizerFactory.java@@ -24,12 +24,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link ThaiTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_thai" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.ThaiTokenizerFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.10.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/tr/ApostropheFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/tr/ApostropheFilterFactory.javaindex 44bb65449d2..33884c165c4 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/tr/ApostropheFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/tr/ApostropheFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ApostropheFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_tr_lower_apostrophes" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.ApostropheFilterFactory"/>* <filter class="solr.TurkishLowerCaseFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.8.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/tr/TurkishLowerCaseFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/tr/TurkishLowerCaseFilterFactory.javaindex 3b6a5783801..44b159b76ad 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/tr/TurkishLowerCaseFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/tr/TurkishLowerCaseFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link TurkishLowerCaseFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_trlwr" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>* <filter class="solr.TurkishLowerCaseFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/CharTokenizer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/CharTokenizer.javaindex 753b936b53a..73acb521605 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/CharTokenizer.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/CharTokenizer.java@@ -37,9 +37,9 @@ import org.apache.lucene.util.AttributeFactory;* 8 lambdas or method references. It is possible to create an instance which behaves exactly like* {@link LetterTokenizer}:*- * <pre class="prettyprint lang-java">+ * <pre><code class="language-java">* Tokenizer tok = CharTokenizer.fromTokenCharPredicate(Character::isLetter);- * </pre>+ * </code></pre>*/public abstract class CharTokenizer extends Tokenizer {@@ -85,9 +85,9 @@ public abstract class CharTokenizer extends Tokenizer {* <p>This factory is intended to be used with lambdas or method references. E.g., an elegant way* to create an instance which behaves exactly as {@link LetterTokenizer} is:*- * <pre class="prettyprint lang-java">+ * <pre><code class="language-java">* Tokenizer tok = CharTokenizer.fromTokenCharPredicate(Character::isLetter);- * </pre>+ * </code></pre>*/public static CharTokenizer fromTokenCharPredicate(final IntPredicate tokenCharPredicate) {return fromTokenCharPredicate(DEFAULT_TOKEN_ATTRIBUTE_FACTORY, tokenCharPredicate);@@ -101,9 +101,9 @@ public abstract class CharTokenizer extends Tokenizer {* <p>This factory is intended to be used with lambdas or method references. E.g., an elegant way* to create an instance which behaves exactly as {@link LetterTokenizer} is:*- * <pre class="prettyprint lang-java">+ * <pre><code class="language-java">* Tokenizer tok = CharTokenizer.fromTokenCharPredicate(factory, Character::isLetter);- * </pre>+ * </code></pre>*/public static CharTokenizer fromTokenCharPredicate(AttributeFactory factory, final IntPredicate tokenCharPredicate) {@@ -125,9 +125,9 @@ public abstract class CharTokenizer extends Tokenizer {* <p>This factory is intended to be used with lambdas or method references. E.g., an elegant way* to create an instance which behaves exactly as {@link WhitespaceTokenizer} is:*- * <pre class="prettyprint lang-java">+ * <pre><code class="language-java">* Tokenizer tok = CharTokenizer.fromSeparatorCharPredicate(Character::isWhitespace);- * </pre>+ * </code></pre>*/public static CharTokenizer fromSeparatorCharPredicate(final IntPredicate separatorCharPredicate) {@@ -142,9 +142,9 @@ public abstract class CharTokenizer extends Tokenizer {* <p>This factory is intended to be used with lambdas or method references. E.g., an elegant way* to create an instance which behaves exactly as {@link WhitespaceTokenizer} is:*- * <pre class="prettyprint lang-java">+ * <pre><code class="language-java">* Tokenizer tok = CharTokenizer.fromSeparatorCharPredicate(factory, Character::isWhitespace);- * </pre>+ * </code></pre>*/public static CharTokenizer fromSeparatorCharPredicate(AttributeFactory factory, final IntPredicate separatorCharPredicate) {diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/ElisionFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/ElisionFilterFactory.javaindex c8caec9f32b..19c8095dfbc 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/ElisionFilterFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/ElisionFilterFactory.java@@ -28,7 +28,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link ElisionFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_elsn" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>@@ -36,7 +36,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* <filter class="solr.ElisionFilterFactory"* articles="stopwordarticles.txt" ignoreCase="true"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerFactory.javaindex 71b7b7a1aea..5b13f5dce29 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerFactory.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizerFactory.java@@ -25,12 +25,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link WikipediaTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_wiki" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WikipediaTokenizerFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/common/src/java/org/apache/lucene/collation/package-info.java b/lucene/analysis/common/src/java/org/apache/lucene/collation/package-info.javaindex 821cdc007a5..bfc76356d9f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/collation/package-info.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/collation/package-info.java@@ -38,7 +38,7 @@** <h3>Farsi Range Queries</h3>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // "fa" Locale is not supported by Sun JDK 1.4 or 1.5* Collator collator = Collator.getInstance(new Locale("ar"));* CollationKeyAnalyzer analyzer = new CollationKeyAnalyzer(collator);@@ -63,11 +63,11 @@* ScoreDoc[] result* = is.search(aqp.parse("[ \u062F TO \u0698 ]"), null, 1000).scoreDocs;* assertEquals("The index Term should not be included.", 0, result.length);- * </pre>+ * </code></pre>** <h3>Danish Sorting</h3>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Analyzer analyzer* = new CollationKeyAnalyzer(Collator.getInstance(new Locale("da", "dk")));* Path dirPath = Files.createTempDirectory("tempIndex");@@ -93,11 +93,11 @@* Document doc = searcher.doc(result[i].doc);* assertEquals(sortedTracerOrder[i], doc.getValues("tracer")[0]);* }- * </pre>+ * </code></pre>** <h3>Turkish Case Normalization</h3>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Collator collator = Collator.getInstance(new Locale("tr", "TR"));* collator.setStrength(Collator.PRIMARY);* Analyzer analyzer = new CollationKeyAnalyzer(collator);@@ -114,7 +114,7 @@* Query query = parser.parse("d\u0131gy"); // U+0131: dotless i* ScoreDoc[] result = is.search(query, null, 1000).scoreDocs;* assertEquals("The index Term should be included.", 1, result.length);- * </pre>+ * </code></pre>** <h2>Caveats and Comparisons</h2>*diff --git a/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUFoldingFilterFactory.java b/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUFoldingFilterFactory.javaindex f8e84e9d8ac..dfa5e44d797 100644--- a/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUFoldingFilterFactory.java+++ b/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUFoldingFilterFactory.java@@ -26,13 +26,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link ICUFoldingFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_folded" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.ICUFoldingFilterFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ICUTokenizerFactory.java b/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ICUTokenizerFactory.javaindex 0545db0ba19..d3085ab1781 100644--- a/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ICUTokenizerFactory.java+++ b/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ICUTokenizerFactory.java@@ -39,12 +39,12 @@ import org.apache.lucene.util.ResourceLoaderAware;** <p>To use the default set of per-script rules:*- * <pre class="prettyprint" >+ * <pre><code class="language-xml">* <fieldType name="text_icu" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.ICUTokenizerFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>You can customize this tokenizer's behavior by specifying per-script rule files, which are* compiled by the ICU RuleBasedBreakIterator. See the <a@@ -57,13 +57,13 @@ import org.apache.lucene.util.ResourceLoaderAware;* followed by a colon, then a resource path. E.g. to specify rules for Latin (script code "Latn")* and Cyrillic (script code "Cyrl"):*- * <pre class="prettyprint" >+ * <pre><code class="language-xml">* <fieldType name="text_icu_custom" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.ICUTokenizerFactory" cjkAsWords="true"* rulefiles="Latn:my.Latin.rules.rbbi,Cyrl:my.Cyrillic.rules.rbbi"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/icu/src/java/overview.html b/lucene/analysis/icu/src/java/overview.htmlindex 7b9c2c88a7f..5f7112c501b 100644--- a/lucene/analysis/icu/src/java/overview.html+++ b/lucene/analysis/icu/src/java/overview.html@@ -70,10 +70,10 @@ algorithm.</ul><h2>Example Usages</h2><h3>Tokenizing multilanguage text</h3>-<pre class="prettyprint">+<pre><code class="language-java">// This tokenizer will work well in general for most languages.Tokenizer tokenizer = new ICUTokenizer(reader);-</pre>+</code></pre><hr><h1><a id="collation">Collation</a></h1><p>@@ -110,7 +110,7 @@ algorithm.<h2>Example Usages</h2><h3>Farsi Range Queries</h3>-<pre class="prettyprint">+<pre><code class="language-java">Collator collator = Collator.getInstance(new ULocale("ar"));ICUCollationKeyAnalyzer analyzer = new ICUCollationKeyAnalyzer(collator);Path indexPath = Files.createTempDirectory("tempIndex");@@ -134,10 +134,10 @@ algorithm.ScoreDoc[] result= is.search(aqp.parse("[ \u062F TO \u0698 ]"), null, 1000).scoreDocs;assertEquals("The index Term should not be included.", 0, result.length);-</pre>+</code></pre><h3>Danish Sorting</h3>-<pre class="prettyprint">+<pre><code class="language-java">Analyzer analyzer= new ICUCollationKeyAnalyzer(Collator.getInstance(new ULocale("da", "dk")));Path indexPath = Files.createTempDirectory("tempIndex");@@ -162,10 +162,10 @@ algorithm.Document doc = searcher.doc(result[i].doc);assertEquals(sortedTracerOrder[i], doc.getValues("tracer")[0]);}-</pre>+</code></pre><h3>Turkish Case Normalization</h3>-<pre class="prettyprint">+<pre><code class="language-java">Collator collator = Collator.getInstance(new ULocale("tr", "TR"));collator.setStrength(Collator.PRIMARY);Analyzer analyzer = new ICUCollationKeyAnalyzer(collator);@@ -181,7 +181,7 @@ algorithm.Query query = parser.parse("d\u0131gy"); // U+0131: dotless iScoreDoc[] result = is.search(query, null, 1000).scoreDocs;assertEquals("The index Term should be included.", 1, result.length);-</pre>+</code></pre><h2>Caveats and Comparisons</h2><p>@@ -241,12 +241,12 @@ algorithm.</ul><h2>Example Usages</h2><h3>Normalizing text to NFC</h3>-<pre class="prettyprint">+<pre><code class="language-java">// Normalizer2 objects are unmodifiable and immutable.Normalizer2 normalizer = Normalizer2.getInstance(null, "nfc", Normalizer2.Mode.COMPOSE);// This filter will normalize to NFC.TokenStream tokenstream = new ICUNormalizer2Filter(tokenizer, normalizer);-</pre>+</code></pre><hr><h1><a id="casefolding">Case Folding</a></h1><p>@@ -276,10 +276,10 @@ this integration. To perform case-folding, you use normalization with the form</ul><h2>Example Usages</h2><h3>Lowercasing text</h3>-<pre class="prettyprint">+<pre><code class="language-java">// This filter will case-fold and normalize to NFKC.TokenStream tokenstream = new ICUNormalizer2Filter(tokenizer);-</pre>+</code></pre><hr><h1><a id="searchfolding">Search Term Folding</a></h1><p>@@ -301,11 +301,11 @@ many character foldings recursively.</ul><h2>Example Usages</h2><h3>Removing accents</h3>-<pre class="prettyprint">+<pre><code class="language-java">// This filter will case-fold, remove accents and other distinctions, and// normalize to NFKC.TokenStream tokenstream = new ICUFoldingFilter(tokenizer);-</pre>+</code></pre><hr><h1><a id="transform">Text Transformation</a></h1><p>@@ -329,16 +329,16 @@ and</ul><h2>Example Usages</h2><h3>Convert Traditional to Simplified</h3>-<pre class="prettyprint">+<pre><code class="language-java">// This filter will map Traditional Chinese to Simplified ChineseTokenStream tokenstream = new ICUTransformFilter(tokenizer, Transliterator.getInstance("Traditional-Simplified"));-</pre>+</code></pre><h3>Transliterate Serbian Cyrillic to Serbian Latin</h3>-<pre class="prettyprint">+<pre><code class="language-java">//This filter will map Serbian Cyrillic to Serbian Latin according to BGN rulesTokenStream tokenstream = new ICUTransformFilter(tokenizer, Transliterator.getInstance("Serbian-Latin/BGN"));-</pre>+</code></pre><hr><h1><a id="backcompat">Backwards Compatibility</a></h1><p>@@ -350,7 +350,7 @@ a specific Unicode Version by using a {@link com.ibm.icu.text.FilteredNormalizer</p><h2>Example Usages</h2><h3>Restricting normalization to Unicode 5.0</h3>-<pre class="prettyprint">+<pre><code class="language-java">// This filter will do NFC normalization, but will ignore any characters that// did not exist as of Unicode 5.0. Because of the normalization stability policy// of Unicode, this is an easy way to force normalization to a specific version.@@ -360,6 +360,6 @@ a specific Unicode Version by using a {@link com.ibm.icu.text.FilteredNormalizerset.freeze();FilteredNormalizer2 unicode50 = new FilteredNormalizer2(normalizer, set);TokenStream tokenstream = new ICUNormalizer2Filter(tokenizer, unicode50);-</pre>+</code></pre></body></html>diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseIterationMarkCharFilterFactory.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseIterationMarkCharFilterFactory.javaindex c300cc06b0a..743b85eb025 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseIterationMarkCharFilterFactory.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseIterationMarkCharFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.CharFilterFactory;/*** Factory for {@link org.apache.lucene.analysis.ja.JapaneseIterationMarkCharFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">* <analyzer>* <charFilter class="solr.JapaneseIterationMarkCharFilterFactory normalizeKanji="true" normalizeKana="true"/>* <tokenizer class="solr.JapaneseTokenizerFactory"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 4.0.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseKatakanaStemFilterFactory.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseKatakanaStemFilterFactory.javaindex 5ec89222f59..ead84b63275 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseKatakanaStemFilterFactory.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseKatakanaStemFilterFactory.java@@ -23,7 +23,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link JapaneseKatakanaStemFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ja" class="solr.TextField">* <analyzer>* <tokenizer class="solr.JapaneseTokenizerFactory"/>@@ -31,7 +31,7 @@ import org.apache.lucene.analysis.TokenStream;* minimumLength="4"/>* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseNumberFilterFactory.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseNumberFilterFactory.javaindex 5b1b92e6fb2..1ddf7943653 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseNumberFilterFactory.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseNumberFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link JapaneseNumberFilter}. <br>*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ja" class="solr.TextField">* <analyzer>* <tokenizer class="solr.JapaneseTokenizerFactory" discardPunctuation="false"/>* <filter class="solr.JapaneseNumberFilterFactory"/>* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** <p>It is important that punctuation is not discarded by the tokenizer so use {@code* discardPunctuation="false"} in your {@link JapaneseTokenizerFactory}.diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapanesePartOfSpeechStopFilterFactory.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapanesePartOfSpeechStopFilterFactory.javaindex 3e9b981258f..0d6024c294c 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapanesePartOfSpeechStopFilterFactory.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapanesePartOfSpeechStopFilterFactory.java@@ -29,7 +29,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link org.apache.lucene.analysis.ja.JapanesePartOfSpeechStopFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ja" class="solr.TextField">* <analyzer>* <tokenizer class="solr.JapaneseTokenizerFactory"/>@@ -37,7 +37,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* tags="stopTags.txt"/>* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseReadingFormFilterFactory.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseReadingFormFilterFactory.javaindex f8ccc0f3996..fa5d3b15923 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseReadingFormFilterFactory.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseReadingFormFilterFactory.java@@ -23,7 +23,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link org.apache.lucene.analysis.ja.JapaneseReadingFormFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ja" class="solr.TextField">* <analyzer>* <tokenizer class="solr.JapaneseTokenizerFactory"/>@@ -31,7 +31,7 @@ import org.apache.lucene.analysis.TokenStream;* useRomaji="false"/>* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseTokenizerFactory.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseTokenizerFactory.javaindex 911df4eb010..cb61aaedc56 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseTokenizerFactory.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseTokenizerFactory.java@@ -36,7 +36,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link org.apache.lucene.analysis.ja.JapaneseTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ja" class="solr.TextField">* <analyzer>* <tokenizer class="solr.JapaneseTokenizerFactory"@@ -49,7 +49,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* <filter class="solr.JapaneseBaseFormFilterFactory"/>* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** <p>Additional expert user parameters nBestCost and nBestExamples can be used to include* additional searchable tokens that those most likely according to the statistical model. A typicaldiff --git a/lucene/analysis/morfologik/src/java/org/apache/lucene/analysis/morfologik/MorfologikFilterFactory.java b/lucene/analysis/morfologik/src/java/org/apache/lucene/analysis/morfologik/MorfologikFilterFactory.javaindex 2822769c828..ab95b6b6c5d 100644--- a/lucene/analysis/morfologik/src/java/org/apache/lucene/analysis/morfologik/MorfologikFilterFactory.java+++ b/lucene/analysis/morfologik/src/java/org/apache/lucene/analysis/morfologik/MorfologikFilterFactory.java@@ -34,13 +34,13 @@ import org.apache.lucene.util.ResourceLoaderAware;* <p>An explicit resource name of the dictionary ({@code ".dict"}) can be provided via the <code>* dictionary</code> attribute, as the example below demonstrates:*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_mylang" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.MorfologikFilterFactory" dictionary="mylang.dict" />* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>If the dictionary attribute is not provided, the Polish dictionary is loaded and used by* default.diff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanNumberFilterFactory.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanNumberFilterFactory.javaindex cbb65b12bd6..bad47555f07 100644--- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanNumberFilterFactory.java+++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanNumberFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link KoreanNumberFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ko" class="solr.TextField">* <analyzer>* <tokenizer class="solr.KoreanTokenizerFactory" discardPunctuation="false"/>* <filter class="solr.KoreanNumberFilterFactory"/>* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** <p>It is important that punctuation is not discarded by the tokenizer so use {@code* discardPunctuation="false"} in your {@link KoreanTokenizerFactory}.diff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanPartOfSpeechStopFilterFactory.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanPartOfSpeechStopFilterFactory.javaindex 65c18f8d931..4725c74afa4 100644--- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanPartOfSpeechStopFilterFactory.java+++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanPartOfSpeechStopFilterFactory.java@@ -25,7 +25,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link KoreanPartOfSpeechStopFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ko" class="solr.TextField">* <analyzer>* <tokenizer class="solr.KoreanTokenizerFactory"/>@@ -33,7 +33,7 @@ import org.apache.lucene.analysis.TokenStream;* tags="E,J"/>* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** <p>Supports the following attributes:*diff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanReadingFormFilterFactory.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanReadingFormFilterFactory.javaindex b2c7ae466e4..5022558a3a6 100644--- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanReadingFormFilterFactory.java+++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanReadingFormFilterFactory.java@@ -23,14 +23,14 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link KoreanReadingFormFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ko" class="solr.TextField">* <analyzer>* <tokenizer class="solr.KoreanTokenizerFactory"/>* <filter class="solr.KoreanReadingFormFilterFactory"/>* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** @lucene.experimental* @since 7.4.0diff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanTokenizerFactory.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanTokenizerFactory.javaindex f7cdc1ed76d..399012fb52b 100644--- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanTokenizerFactory.java+++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanTokenizerFactory.java@@ -36,7 +36,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link KoreanTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_ko" class="solr.TextField">* <analyzer>* <tokenizer class="solr.KoreanTokenizerFactory"@@ -48,7 +48,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* />* </analyzer>* </fieldType>- * </pre>+ * </code></pre>** <p>Supports the following attributes:*diff --git a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPChunkerFilterFactory.java b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPChunkerFilterFactory.javaindex 95188dd3823..9388450de2b 100644--- a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPChunkerFilterFactory.java+++ b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPChunkerFilterFactory.java@@ -29,14 +29,14 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link OpenNLPChunkerFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_opennlp_chunked" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="filename" tokenizerModel="filename"/>* <filter class="solr.OpenNLPPOSFilterFactory" posTaggerModel="filename"/>* <filter class="solr.OpenNLPChunkerFilterFactory" chunkerModel="filename"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 7.3.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPLemmatizerFilterFactory.java b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPLemmatizerFilterFactory.javaindex ae78d868634..0a230cf5f06 100644--- a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPLemmatizerFilterFactory.java+++ b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPLemmatizerFilterFactory.java@@ -29,7 +29,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link OpenNLPLemmatizerFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_opennlp_lemma" class="solr.TextField" positionIncrementGap="100"* <analyzer>* <tokenizer class="solr.OpenNLPTokenizerFactory"@@ -40,7 +40,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* dictionary="filename"* lemmatizerModel="filename"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 7.3.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilterFactory.java b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilterFactory.javaindex a897daad810..f94f3d36ae5 100644--- a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilterFactory.java+++ b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilterFactory.java@@ -28,13 +28,13 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link OpenNLPPOSFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_opennlp_pos" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="filename" tokenizerModel="filename"/>* <filter class="solr.OpenNLPPOSFilterFactory" posTaggerModel="filename"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 7.3.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPTokenizerFactory.java b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPTokenizerFactory.javaindex 859a0dde4d8..ee9b3d592a0 100644--- a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPTokenizerFactory.java+++ b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPTokenizerFactory.java@@ -30,12 +30,12 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link OpenNLPTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_opennlp" class="solr.TextField" positionIncrementGap="100"* <analyzer>* <tokenizer class="solr.OpenNLPTokenizerFactory" sentenceModel="filename" tokenizerModel="filename"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 7.3.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/BeiderMorseFilterFactory.java b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/BeiderMorseFilterFactory.javaindex 8dfc75b4a2e..fa6a372606a 100644--- a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/BeiderMorseFilterFactory.java+++ b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/BeiderMorseFilterFactory.java@@ -28,7 +28,7 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link BeiderMorseFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_bm" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory"/>@@ -37,7 +37,7 @@ import org.apache.lucene.analysis.TokenStream;* concat="true" languageSet="auto"* </filter>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.6.0* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/DaitchMokotoffSoundexFilterFactory.java b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/DaitchMokotoffSoundexFilterFactory.javaindex 1b6ccaab9d2..6a47db632d4 100644--- a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/DaitchMokotoffSoundexFilterFactory.java+++ b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/DaitchMokotoffSoundexFilterFactory.java@@ -32,13 +32,13 @@ import org.apache.lucene.analysis.TokenStream;* <dd>(default=true) add tokens to the stream with the offset=0* </dl>*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_phonetic" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.DaitchMokotoffSoundexFilterFactory" inject="true"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @see DaitchMokotoffSoundexFilter* @lucene.experimentaldiff --git a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/DoubleMetaphoneFilterFactory.java b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/DoubleMetaphoneFilterFactory.javaindex 71e36640b4f..0f4096c4caf 100644--- a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/DoubleMetaphoneFilterFactory.java+++ b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/DoubleMetaphoneFilterFactory.java@@ -23,13 +23,13 @@ import org.apache.lucene.analysis.TokenStream;/*** Factory for {@link DoubleMetaphoneFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_dblmtphn" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.DoubleMetaphoneFilterFactory" inject="true" maxCodeLength="4"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/PhoneticFilterFactory.java b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/PhoneticFilterFactory.javaindex e1df2e3408a..15a091690f4 100644--- a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/PhoneticFilterFactory.java+++ b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/PhoneticFilterFactory.java@@ -56,13 +56,13 @@ import org.apache.lucene.util.ResourceLoaderAware;* support this then specifying this is an error.* </dl>*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_phonetic" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.WhitespaceTokenizerFactory"/>* <filter class="solr.PhoneticFilterFactory" encoder="DoubleMetaphone" inject="true"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @see PhoneticFilter* @since 3.1diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene50/Lucene50StoredFieldsFormat.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene50/Lucene50StoredFieldsFormat.javaindex c208f1252eb..560bdb2d1f3 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene50/Lucene50StoredFieldsFormat.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene50/Lucene50StoredFieldsFormat.java@@ -55,12 +55,12 @@ import org.apache.lucene.util.compress.LZ4;* href="http://en.wikipedia.org/wiki/DEFLATE">DEFLATE</a> algorithm with 60KB blocks for a better* ratio at the expense of slower performance. These two options can be configured like this:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // the default: for high performance* indexWriterConfig.setCodec(new Lucene54Codec(Mode.BEST_SPEED));* // instead for higher performance (but slower):* // indexWriterConfig.setCodec(new Lucene54Codec(Mode.BEST_COMPRESSION));- * </pre>+ * </code></pre>** <p><b>File formats</b>*diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene87/Lucene87StoredFieldsFormat.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene87/Lucene87StoredFieldsFormat.javaindex 570e50b94a6..988b979354f 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene87/Lucene87StoredFieldsFormat.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene87/Lucene87StoredFieldsFormat.java@@ -47,12 +47,12 @@ import org.apache.lucene.util.packed.DirectMonotonicWriter;* dictionaries for a better ratio at the expense of slower performance. These two options can be* configured like this:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // the default: for high performance* indexWriterConfig.setCodec(new Lucene87Codec(Mode.BEST_SPEED));* // instead for higher performance (but slower):* // indexWriterConfig.setCodec(new Lucene87Codec(Mode.BEST_COMPRESSION));- * </pre>+ * </code></pre>** <p><b>File formats</b>*diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/packed/LegacyDirectReader.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/packed/LegacyDirectReader.javaindex d738e74953e..b7b68ce6fed 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/packed/LegacyDirectReader.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/packed/LegacyDirectReader.java@@ -25,14 +25,14 @@ import org.apache.lucene.util.LongValues;** <p>Example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int bitsPerValue = 100;* IndexInput in = dir.openInput("packed", IOContext.DEFAULT);* LongValues values = LegacyDirectReader.getInstance(in.randomAccessSlice(start, end), bitsPerValue);* for (int i = 0; i < numValues; i++) {* long value = values.get(i);* }- * </pre>+ * </code></pre>** @see LegacyDirectWriter*/diff --git a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/packed/LegacyDirectWriter.java b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/packed/LegacyDirectWriter.javaindex 124bd7feacb..2c5af1f4338 100644--- a/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/packed/LegacyDirectWriter.java+++ b/lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/packed/LegacyDirectWriter.java@@ -29,7 +29,7 @@ import org.apache.lucene.util.packed.PackedInts;* <p>Unlike PackedInts, it optimizes for read i/o operations and supports > 2B values. Example* usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int bitsPerValue = LegacyDirectWriter.bitsRequired(100); // values up to and including 100* IndexOutput output = dir.createOutput("packed", IOContext.DEFAULT);* DirectWriter writer = LegacyDirectWriter.getInstance(output, numberOfValues, bitsPerValue);@@ -38,7 +38,7 @@ import org.apache.lucene.util.packed.PackedInts;* }* writer.finish();* output.close();- * </pre>+ * </code></pre>** @see LegacyDirectReader*/diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/package-info.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/package-info.javaindex 19aad3d0f0f..807e37e5104 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/package-info.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/package-info.java@@ -35,7 +35,7 @@** <p>Here is a sample code used to run the TREC 2006 queries 701-850 on the .Gov2 collection:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* File topicsFile = new File("topics-701-850.txt");* File qrelsFile = new File("qrels-701-850.txt");* IndexReader ir = DirectoryReader.open(directory):@@ -67,7 +67,7 @@* // print an average sum of the results* QualityStats avg = QualityStats.average(stats);* avg.log("SUMMARY",2,logger, " ");- * </pre>+ * </code></pre>** <p>Some immediate ways to modify this program to your needs are:*diff --git a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.javaindex 17f98abb518..86057ebbb63 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java+++ b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java@@ -41,7 +41,7 @@ import org.apache.lucene.util.CloseableThreadLocal;** <p>Simple example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Analyzer analyzer = new Analyzer() {* {@literal @Override}* protected TokenStreamComponents createComponents(String fieldName) {@@ -57,7 +57,7 @@ import org.apache.lucene.util.CloseableThreadLocal;* return new FooFilter(in);* }* };- * </pre>+ * </code></pre>** For more examples, see the {@link org.apache.lucene.analysis Analysis package documentation}.*diff --git a/lucene/core/src/java/org/apache/lucene/analysis/package-info.java b/lucene/core/src/java/org/apache/lucene/analysis/package-info.javaindex 256d2e00053..4dfe81038f4 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/package-info.java+++ b/lucene/core/src/java/org/apache/lucene/analysis/package-info.java@@ -178,7 +178,7 @@* <p>However an application might invoke Analysis of any text for testing or for any other purpose,* something like:*- * <pre class="prettyprint" id="analysis-workflow">+ * <pre id="analysis-workflow"><code class="language-java">* Version matchVersion = Version.LUCENE_XY; // Substitute desired Lucene version for XY* Analyzer analyzer = new StandardAnalyzer(matchVersion); // or any other analyzer* TokenStream ts = analyzer.tokenStream("myfield", new StringReader("some text goes here"));@@ -200,7 +200,7 @@* } finally {* ts.close(); // Release resources associated with this stream.* }- * </pre>+ * </code></pre>** <h2>Indexing Analysis vs. Search Analysis</h2>*@@ -251,25 +251,25 @@* search and proximity search to seamlessly cross boundaries between these "sections". In other* words, if a certain field "f" is added like this:*- * <PRE class="prettyprint">+ * <pre><code class="language-java">* document.add(new Field("f","first ends",...);* document.add(new Field("f","starts two",...);* indexWriter.addDocument(document);- * </PRE>+ * </code></pre>** <p>Then, a phrase search for "ends starts" would find that document. Where desired, this behavior* can be modified by introducing a "position gap" between consecutive field "sections", simply by* overriding {@link org.apache.lucene.analysis.Analyzer#getPositionIncrementGap(java.lang.String)* Analyzer.getPositionIncrementGap(fieldName)}:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Version matchVersion = Version.LUCENE_XY; // Substitute desired Lucene version for XY* Analyzer myAnalyzer = new StandardAnalyzer(matchVersion) {* public int getPositionIncrementGap(String fieldName) {* return 10;* }* };- * </pre>+ * </code></pre>** <h3>End of Input Cleanup</h3>*@@ -304,7 +304,7 @@* the position increment in order not to generate corrupt tokenstream graphs. Here is the logic* used by StopFilter to increment positions when filtering out tokens:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public TokenStream tokenStream(final String fieldName, Reader reader) {* final TokenStream ts = someAnalyzer.tokenStream(fieldName, reader);* TokenStream res = new TokenStream() {@@ -330,7 +330,7 @@* };* return res;* }- * </pre>+ * </code></pre>** <p>A few more use cases for modifying position increments are:*@@ -537,7 +537,7 @@* selected logic to another tokenizer) must also set the reader to the delegate in the overridden* {@link org.apache.lucene.analysis.Tokenizer#reset()} method, e.g.:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public class ForwardingTokenizer extends Tokenizer {* private Tokenizer delegate;* ...@@ -548,7 +548,7 @@* delegate.reset();* }* }- * </pre>+ * </code></pre>** <h3>Testing Your Analysis Component</h3>*@@ -603,7 +603,7 @@** <h4>Whitespace tokenization</h4>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public class MyAnalyzer extends Analyzer {** private Version matchVersion;@@ -642,7 +642,7 @@* }* }* }- * </pre>+ * </code></pre>** In this easy example a simple white space tokenization is performed. In main() a loop consumes* the stream and prints the term text of the tokens by accessing the CharTermAttribute that the@@ -666,14 +666,14 @@* LengthFilter to the chain. Only the <code>createComponents()</code> method in our analyzer needs* to be changed:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* {@literal @Override}* protected TokenStreamComponents createComponents(String fieldName) {* final Tokenizer source = new WhitespaceTokenizer(matchVersion);* TokenStream result = new LengthFilter(true, source, 3, Integer.MAX_VALUE);* return new TokenStreamComponents(source, result);* }- * </pre>+ * </code></pre>** Note how now only words with 3 or more characters are contained in the output:*@@ -688,7 +688,7 @@** Now let's take a look at how the LengthFilter is implemented:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public final class LengthFilter extends FilteringTokenFilter {** private final int min;@@ -718,7 +718,7 @@* }** }- * </pre>+ * </code></pre>** <p>In LengthFilter, the CharTermAttribute is added and stored in the instance variable <code>* termAtt</code>. Remember that there can only be a single instance of CharTermAttribute in the@@ -734,7 +734,7 @@** <p>LengthFilter extends FilteringTokenFilter:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public abstract class FilteringTokenFilter extends TokenFilter {** private final PositionIncrementAttribute posIncrAtt = addAttribute(PositionIncrementAttribute.class);@@ -772,7 +772,7 @@* }** }- * </pre>+ * </code></pre>** <h4>Adding a custom Attribute</h4>*@@ -780,7 +780,7 @@* consequently <code>PartOfSpeechAttribute</code>. First we need to define the interface of the new* Attribute:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public interface PartOfSpeechAttribute extends Attribute {* public enum PartOfSpeech {* Noun, Verb, Adjective, Adverb, Pronoun, Preposition, Conjunction, Article, Unknown@@ -790,7 +790,7 @@** public PartOfSpeech getPartOfSpeech();* }- * </pre>+ * </code></pre>** <p>Now we also need to write the implementing class. The name of that class is important here: By* default, Lucene checks if there is a class with the name of the Attribute with the suffix 'Impl'.@@ -805,7 +805,7 @@* <p>Now here is the actual class that implements our new Attribute. Notice that the class has to* extend {@link org.apache.lucene.util.AttributeImpl}:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public final class PartOfSpeechAttributeImpl extends AttributeImpl* implements PartOfSpeechAttribute {*@@ -829,7 +829,7 @@* ((PartOfSpeechAttribute) target).setPartOfSpeech(pos);* }* }- * </pre>+ * </code></pre>** <p>This is a simple Attribute implementation has only a single variable that stores the* part-of-speech of a token. It extends the <code>AttributeImpl</code> class and therefore@@ -838,7 +838,7 @@* very naive filter that tags every word with a leading upper-case letter as a 'Noun' and all other* words as 'Unknown'.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public static class PartOfSpeechTaggingFilter extends TokenFilter {* PartOfSpeechAttribute posAtt = addAttribute(PartOfSpeechAttribute.class);* CharTermAttribute termAtt = addAttribute(CharTermAttribute.class);@@ -862,7 +862,7 @@* return PartOfSpeech.Unknown;* }* }- * </pre>+ * </code></pre>** <p>Just like the LengthFilter, this new filter stores references to the attributes it needs in* instance variables. Notice how you only need to pass in the interface of the new Attribute and@@ -870,7 +870,7 @@** <p>Now we need to add the filter to the chain in MyAnalyzer:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* {@literal @Override}* protected TokenStreamComponents createComponents(String fieldName) {* final Tokenizer source = new WhitespaceTokenizer(matchVersion);@@ -878,7 +878,7 @@* result = new PartOfSpeechTaggingFilter(result);* return new TokenStreamComponents(source, result);* }- * </pre>+ * </code></pre>** Now let's look at the output:*@@ -895,7 +895,7 @@* chain does not affect any existing consumers, simply because they don't know the new Attribute.* Now let's change the consumer to make use of the new PartOfSpeechAttribute and print it out:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public static void main(String[] args) throws IOException {* // text to tokenize* final String text = "This is a demo of the TokenStream API";@@ -922,7 +922,7 @@* stream.close();* }* }- * </pre>+ * </code></pre>** The change that was made is to get the PartOfSpeechAttribute from the TokenStream and print out* its contents in the while loop that consumes the stream. Here is the new output:@@ -945,7 +945,7 @@* nouns if not the first word of a sentence (we know, this is still not a correct behavior, but* hey, it's a good exercise). As a small hint, this is how the new Attribute class could begin:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public class FirstTokenOfSentenceAttributeImpl extends AttributeImpl* implements FirstTokenOfSentenceAttribute {*@@ -965,7 +965,7 @@* }** ...- * </pre>+ * </code></pre>** <h4>Adding a CharFilter chain</h4>*@@ -980,7 +980,7 @@** <p>Example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public class MyAnalyzer extends Analyzer {** {@literal @Override}@@ -994,6 +994,6 @@* return new SecondCharFilter(new FirstCharFilter(reader));* }* }- * </pre>+ * </code></pre>*/package org.apache.lucene.analysis;diff --git a/lucene/core/src/java/org/apache/lucene/analysis/standard/StandardTokenizerFactory.java b/lucene/core/src/java/org/apache/lucene/analysis/standard/StandardTokenizerFactory.javaindex ea8273a2758..97f60a424c0 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/standard/StandardTokenizerFactory.java+++ b/lucene/core/src/java/org/apache/lucene/analysis/standard/StandardTokenizerFactory.java@@ -23,12 +23,12 @@ import org.apache.lucene.util.AttributeFactory;/*** Factory for {@link StandardTokenizer}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="text_stndrd" class="solr.TextField" positionIncrementGap="100">* <analyzer>* <tokenizer class="solr.StandardTokenizerFactory" maxTokenLength="255"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** @since 3.1* @lucene.spi {@value #NAME}diff --git a/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/TermToBytesRefAttribute.java b/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/TermToBytesRefAttribute.javaindex 19b0b9fb7ef..72cd82489d5 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/TermToBytesRefAttribute.java+++ b/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/TermToBytesRefAttribute.java@@ -25,7 +25,7 @@ import org.apache.lucene.util.BytesRef;** <p>Consumers of this attribute call {@link #getBytesRef()} for each term. Example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* final TermToBytesRefAttribute termAtt = tokenStream.getAttribute(TermToBytesRefAttribute.class);** while (tokenStream.incrementToken() {@@ -41,7 +41,7 @@ import org.apache.lucene.util.BytesRef;* }* }* ...- * </pre>+ * </code></pre>** @lucene.internal This is a very expert and internal API, please use {@link CharTermAttribute} and* its implementation for UTF-8 terms; to index binary terms, use {@link BytesTermAttribute} anddiff --git a/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java b/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.javaindex bdfa78af87f..91c1c045247 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/CodecUtil.java@@ -454,7 +454,7 @@ public final class CodecUtil {** <p>Example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* try (ChecksumIndexInput input = ...) {* Throwable priorE = null;* try {@@ -465,7 +465,7 @@ public final class CodecUtil {* CodecUtil.checkFooter(input, priorE);* }* }- * </pre>+ * </code></pre>*/public static void checkFooter(ChecksumIndexInput in, Throwable priorException)throws IOException {diff --git a/lucene/core/src/java/org/apache/lucene/codecs/FilterCodec.java b/lucene/core/src/java/org/apache/lucene/codecs/FilterCodec.javaindex e3e83e588de..4da7610343e 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/FilterCodec.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/FilterCodec.java@@ -22,7 +22,7 @@ package org.apache.lucene.codecs;* <p>Extend this class when you need to reuse the functionality of an existing codec. For example,* if you want to build a codec that redefines LuceneMN's {@link LiveDocsFormat}:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public final class CustomCodec extends FilterCodec {** public CustomCodec() {@@ -34,7 +34,7 @@ package org.apache.lucene.codecs;* }** }- * </pre>+ * </code></pre>** <p><em>Please note:</em> Don't call {@link Codec#forName} from the no-arg constructor of your own* codec. When the SPI framework loads your own Codec as SPI component, SPI has not yet fullydiff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90StoredFieldsFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90StoredFieldsFormat.javaindex 9e367a3d9d8..e8f328a5ca3 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90StoredFieldsFormat.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90StoredFieldsFormat.java@@ -47,12 +47,12 @@ import org.apache.lucene.util.packed.DirectMonotonicWriter;* dictionaries for a better ratio at the expense of slower performance. These two options can be* configured like this:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // the default: for high performance* indexWriterConfig.setCodec(new Lucene100Codec(Mode.BEST_SPEED));* // instead for higher performance (but slower):* // indexWriterConfig.setCodec(new Lucene100Codec(Mode.BEST_COMPRESSION));- * </pre>+ * </code></pre>** <p><b>File formats</b>*diff --git a/lucene/core/src/java/org/apache/lucene/codecs/package-info.java b/lucene/core/src/java/org/apache/lucene/codecs/package-info.javaindex e0cdd23ba72..ce585593c1f 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/package-info.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/package-info.java@@ -41,7 +41,7 @@* codec, extend {@link org.apache.lucene.codecs.Codec} and pass the new codec's name to the super()* constructor:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public class MyCodec extends Codec {** public MyCodec() {@@ -50,7 +50,7 @@** ...* }- * </pre>+ * </code></pre>** You will need to register the Codec class so that the {@link java.util.ServiceLoader* ServiceLoader} can find it, by including a META-INF/services/org.apache.lucene.codecs.Codec filediff --git a/lucene/core/src/java/org/apache/lucene/document/BinaryDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/BinaryDocValuesField.javaindex ffebe97bcb0..2f83f6b1cc5 100644--- a/lucene/core/src/java/org/apache/lucene/document/BinaryDocValuesField.java+++ b/lucene/core/src/java/org/apache/lucene/document/BinaryDocValuesField.java@@ -27,9 +27,9 @@ import org.apache.lucene.util.BytesRef;* share (many) values, such as a title field. If values may be shared and sorted it's better to use* {@link SortedDocValuesField}. Here's an example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* document.add(new BinaryDocValuesField(name, new BytesRef("hello")));- * </pre>+ * </code></pre>** <p>If you also need to store the value, you should add a separate {@link StoredField} instance.*diff --git a/lucene/core/src/java/org/apache/lucene/document/NumericDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/NumericDocValuesField.javaindex 6f1fb78e70c..052ecc56e12 100644--- a/lucene/core/src/java/org/apache/lucene/document/NumericDocValuesField.java+++ b/lucene/core/src/java/org/apache/lucene/document/NumericDocValuesField.java@@ -25,9 +25,9 @@ import org.apache.lucene.search.Query;* Field that stores a per-document <code>long</code> value for scoring, sorting or value retrieval.* Here's an example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* document.add(new NumericDocValuesField(name, 22L));- * </pre>+ * </code></pre>** <p>If you also need to store the value, you should add a separate {@link StoredField} instance.*/diff --git a/lucene/core/src/java/org/apache/lucene/document/SortedDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/SortedDocValuesField.javaindex 746f65ae564..e8e18cdd1e5 100644--- a/lucene/core/src/java/org/apache/lucene/document/SortedDocValuesField.java+++ b/lucene/core/src/java/org/apache/lucene/document/SortedDocValuesField.java@@ -29,9 +29,9 @@ import org.apache.lucene.util.BytesRef;* Field that stores a per-document {@link BytesRef} value, indexed for sorting. Here's an example* usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* document.add(new SortedDocValuesField(name, new BytesRef("hello")));- * </pre>+ * </code></pre>** <p>If you also need to store the value, you should add a separate {@link StoredField} instance.*diff --git a/lucene/core/src/java/org/apache/lucene/document/SortedNumericDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/SortedNumericDocValuesField.javaindex 0efb6f46393..d9db2a65595 100644--- a/lucene/core/src/java/org/apache/lucene/document/SortedNumericDocValuesField.java+++ b/lucene/core/src/java/org/apache/lucene/document/SortedNumericDocValuesField.java@@ -25,17 +25,17 @@ import org.apache.lucene.search.Query;* Field that stores a per-document <code>long</code> values for scoring, sorting or value* retrieval. Here's an example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* document.add(new SortedNumericDocValuesField(name, 5L));* document.add(new SortedNumericDocValuesField(name, 14L));- * </pre>+ * </code></pre>** <p>Note that if you want to encode doubles or floats with proper sort order, you will need to* encode them with {@link org.apache.lucene.util.NumericUtils}:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* document.add(new SortedNumericDocValuesField(name, NumericUtils.floatToSortableInt(-5.3f)));- * </pre>+ * </code></pre>** <p>If you also need to store the value, you should add a separate {@link StoredField} instance.*/diff --git a/lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesField.javaindex 02e5a82d6a6..014ca27416f 100644--- a/lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesField.java+++ b/lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesField.java@@ -29,10 +29,10 @@ import org.apache.lucene.util.BytesRef;* Field that stores a set of per-document {@link BytesRef} values, indexed for* faceting,grouping,joining. Here's an example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* document.add(new SortedSetDocValuesField(name, new BytesRef("hello")));* document.add(new SortedSetDocValuesField(name, new BytesRef("world")));- * </pre>+ * </code></pre>** <p>If you also need to store the value, you should add a separate {@link StoredField} instance.*diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexReader.java b/lucene/core/src/java/org/apache/lucene/index/IndexReader.javaindex f14b36ac89a..676d2db0ee3 100644--- a/lucene/core/src/java/org/apache/lucene/index/IndexReader.java+++ b/lucene/core/src/java/org/apache/lucene/index/IndexReader.java@@ -74,7 +74,7 @@ public abstract sealed class IndexReader implements Closeable permits CompositeR** <p>Example: cache the number of documents that match a query per reader.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public class QueryCountCache {** private final Query query;@@ -105,7 +105,7 @@ public abstract sealed class IndexReader implements Closeable permits CompositeR* }** }- * </pre>+ * </code></pre>** @lucene.experimental*/@@ -275,13 +275,13 @@ public abstract sealed class IndexReader implements Closeable permits CompositeR** <p>Example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* TopDocs hits = searcher.search(query, 10);* TermVectors termVectors = reader.termVectors();* for (ScoreDoc hit : hits.scoreDocs) {* Fields vector = termVectors.get(hit.doc);* }- * </pre>+ * </code></pre>** @throws IOException If there is a low-level IO error*/@@ -319,13 +319,13 @@ public abstract sealed class IndexReader implements Closeable permits CompositeR** <p>Example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* TopDocs hits = searcher.search(query, 10);* StoredFields storedFields = reader.storedFields();* for (ScoreDoc hit : hits.scoreDocs) {* Document doc = storedFields.document(hit.doc);* }- * </pre>+ * </code></pre>** @throws IOException If there is a low-level IO error*/diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.javaindex 7c1a9cb9286..a1e1b7eaad9 100644--- a/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java+++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriterConfig.java@@ -43,10 +43,10 @@ import org.apache.lucene.util.Version;* <p>All setter methods return {@link IndexWriterConfig} to allow chaining settings conveniently,* for example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* IndexWriterConfig conf = new IndexWriterConfig(analyzer);* conf.setter1().setter2();- * </pre>+ * </code></pre>** @see IndexWriter#getConfig()* @since 3.1diff --git a/lucene/core/src/java/org/apache/lucene/index/MergeScheduler.java b/lucene/core/src/java/org/apache/lucene/index/MergeScheduler.javaindex fb8286b31bd..c426c94fadd 100644--- a/lucene/core/src/java/org/apache/lucene/index/MergeScheduler.java+++ b/lucene/core/src/java/org/apache/lucene/index/MergeScheduler.java@@ -84,11 +84,11 @@ public abstract class MergeScheduler implements Closeable {* Returns true if infoStream messages are enabled. This method is usually used in conjunction* with {@link #message(String)}:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* if (verbose()) {* message("your message");* }- * </pre>+ * </code></pre>*/protected boolean verbose() {return infoStream != null && infoStream.isEnabled("MS");diff --git a/lucene/core/src/java/org/apache/lucene/index/NumericDocValues.java b/lucene/core/src/java/org/apache/lucene/index/NumericDocValues.javaindex 4e89f3b3d80..250860fcebb 100644--- a/lucene/core/src/java/org/apache/lucene/index/NumericDocValues.java+++ b/lucene/core/src/java/org/apache/lucene/index/NumericDocValues.java@@ -41,7 +41,7 @@ public abstract class NumericDocValues extends DocValuesIterator {** <p>This API behaves as if implemented as below, which is the default implementation:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public void longValues(int size, int[] docs, long[] values, long defaultValue) throws IOException {* for (int i = 0; i < size; ++i) {* int doc = docs[i];@@ -54,7 +54,7 @@ public abstract class NumericDocValues extends DocValuesIterator {* values[i] = value;* }* }- * </pre>+ * </code></pre>** <p><b>NOTE</b>: The {@code docs} array is required to be sorted in ascending order with no* duplicates.@@ -65,13 +65,13 @@ public abstract class NumericDocValues extends DocValuesIterator {* using {@link #advanceExact} and {@link #longValue()} on ranges of doc IDs that may not be* dense, e.g.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* if (size > 0 && values.advannceExact(docs[0]) && values.docIDRunEnd() > docs[size - 1]) {* // use values#longValues to retrieve values* } else {* // some docs may not have a value, use #advanceExact and #longValue* }- * </pre>+ * </code></pre>** @param size the number of values to retrieve* @param docs the buffer of doc IDs whose values should be looked updiff --git a/lucene/core/src/java/org/apache/lucene/index/PointValues.java b/lucene/core/src/java/org/apache/lucene/index/PointValues.javaindex c77eec0e5ff..328bdedb057 100644--- a/lucene/core/src/java/org/apache/lucene/index/PointValues.java+++ b/lucene/core/src/java/org/apache/lucene/index/PointValues.java@@ -65,7 +65,7 @@ import org.apache.lucene.util.bkd.BKDConfig;* addition to indexing support, point classes also contain static methods (such as {@link* IntPoint#newRangeQuery(String, int, int)}) for creating common queries. For example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // add year 1970 to document* document.add(new IntPoint("year", 1970));* // index document@@ -74,7 +74,7 @@ import org.apache.lucene.util.bkd.BKDConfig;* // issue range query of 1960-1980* Query query = IntPoint.newRangeQuery("year", 1960, 1980);* TopDocs docs = searcher.search(query, ...);- * </pre>+ * </code></pre>** <h2>Geospatial Point Types</h2>*diff --git a/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.java b/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.javaindex 8fd9d8c9a37..0b09186e7f2 100644--- a/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.java+++ b/lucene/core/src/java/org/apache/lucene/index/PostingsEnum.java@@ -114,7 +114,7 @@ public abstract class PostingsEnum extends DocIdSetIterator {** <p>The default implementation is provided below:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int batchSize = 16; // arbitrary* buffer.growNoCopy(batchSize);* int size = 0;@@ -124,7 +124,7 @@ public abstract class PostingsEnum extends DocIdSetIterator {* ++size;* }* buffer.size = size;- * </pre>+ * </code></pre>** <p><b>NOTE</b>: The provided {@link DocAndFloatFeatureBuffer} should not hold references to* internal data structures.diff --git a/lucene/core/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java b/lucene/core/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.javaindex 944fd780d8c..836b62be8a0 100644--- a/lucene/core/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java+++ b/lucene/core/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java@@ -33,13 +33,13 @@ import org.apache.lucene.util.Version;* <p>In general one would use {@link IndexUpgrader}, but for a fully customizeable upgrade, you can* use this like any other {@code MergePolicy} and call {@link IndexWriter#forceMerge(int)}:*- * <pre class="prettyprint lang-java">+ * <pre><code class="language-java">* IndexWriterConfig iwc = new IndexWriterConfig(Version.LUCENE_XX, new KeywordAnalyzer());* iwc.setMergePolicy(new UpgradeIndexMergePolicy(iwc.getMergePolicy()));* IndexWriter w = new IndexWriter(dir, iwc);* w.forceMerge(1);* w.close();- * </pre>+ * </code></pre>** <p><b>Warning:</b> This merge policy may reorder documents if the index was partially upgraded* before calling forceMerge (e.g., documents were added). If your application relies ondiff --git a/lucene/core/src/java/org/apache/lucene/index/package-info.java b/lucene/core/src/java/org/apache/lucene/index/package-info.javaindex c554e081af7..4a1684ebaf1 100644--- a/lucene/core/src/java/org/apache/lucene/index/package-info.java+++ b/lucene/core/src/java/org/apache/lucene/index/package-info.java@@ -155,7 +155,7 @@* <p>{@link org.apache.lucene.index.Terms} represents the collection of terms within a field,* exposes some metadata and <a href="#fieldstats">statistics</a>, and an API for enumeration.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Terms terms = leafReader.terms("body");* // metadata about the field* System.out.println("positions? " + terms.hasPositions());@@ -167,13 +167,13 @@* while ((term = termsEnum.next()) != null) {* doSomethingWith(term);* }- * </pre>+ * </code></pre>** {@link org.apache.lucene.index.TermsEnum} provides an iterator over the list of terms within a* field, some <a href="#termstats">statistics</a> about the term, and methods to access the term's* <a href="#documents">documents</a> and <a href="#positions">positions</a>.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // seek to a specific term* boolean found = termsEnum.seekExact(new BytesRef("foobar"));* if (found) {@@ -184,7 +184,7 @@* // enumerate through documents and positions* PostingsEnum docsAndPositions = termsEnum.postings(null, PostingsEnum.POSITIONS);* }- * </pre>+ * </code></pre>** <a id="documents"></a>*@@ -194,13 +194,13 @@* org.apache.lucene.search.DocIdSetIterator} that iterates over the list of documents for a term,* along with the term frequency within that document.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int docid;* while ((docid = docsEnum.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS) {* System.out.println(docid);* System.out.println(docsEnum.freq());* }- * </pre>+ * </code></pre>** <a id="positions"></a>*@@ -210,7 +210,7 @@* any additional per-position information (offsets and payload). The information available is* controlled by flags passed to TermsEnum#postings*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int docid;* PostingsEnum postings = termsEnum.postings(null, PostingsEnum.PAYLOADS | PostingsEnum.OFFSETS);* while ((docid = postings.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS) {@@ -223,7 +223,7 @@* System.out.println(postings.getPayload());* }* }- * </pre>+ * </code></pre>** <h3>Impacts</h3>*@@ -233,7 +233,7 @@* these blocks of postings, so that they can be skipped if they cannot possibly produce a* competitive hit.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int docid;* ImpactsEnum impactsEnum = termsEnum.impacts(PostingsEnum.FREQS);* int targetDocID = 420;@@ -245,7 +245,7 @@* // List of pareto-optimal (termFreq, lengthNorm) tuples between targetDocID inclusive and docIdUpTo inclusive.* List<Impact> perLevelImpacts = impacts.getImpacts(level);* }- * </pre>+ * </code></pre>** <a id="stats"></a>*diff --git a/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java b/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.javaindex 3ab0bf72038..ae5b159c1d5 100644--- a/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java@@ -203,7 +203,7 @@ public class BooleanQuery extends Query implements Iterable<BooleanClause> {* Returns an iterator on the clauses in this query. It implements the {@link Iterable} interface* to make it possible to do:*- * <pre class="prettyprint">for (BooleanClause clause : booleanQuery) {}</pre>+ * <pre><code class="language-java">for (BooleanClause clause : booleanQuery) {}</code></pre>*/@Overridepublic final Iterator<BooleanClause> iterator() {diff --git a/lucene/core/src/java/org/apache/lucene/search/BulkScorer.java b/lucene/core/src/java/org/apache/lucene/search/BulkScorer.javaindex eecf0164a0f..29234921bc4 100644--- a/lucene/core/src/java/org/apache/lucene/search/BulkScorer.java+++ b/lucene/core/src/java/org/apache/lucene/search/BulkScorer.java@@ -47,7 +47,7 @@ public abstract class BulkScorer {** <p>For instance, a {@link Scorer}-based implementation could look like below:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* private final Scorer scorer; // set via constructor** public int score(LeafCollector collector, Bits acceptDocs, int min, int max) throws IOException {@@ -64,7 +64,7 @@ public abstract class BulkScorer {* }* return doc;* }- * </pre>+ * </code></pre>** @param collector The collector to which all matching documents are passed.* @param acceptDocs {@link Bits} that represents the allowed documents to match, or {@code null}diff --git a/lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.java b/lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.javaindex cfed223d165..9443985c20f 100644--- a/lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.java+++ b/lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.java@@ -143,14 +143,14 @@ public abstract class DocIdSetIterator {** <p>When <code> target > current</code> it behaves as if written:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int advance(int target) {* int doc;* while ((doc = nextDoc()) < target) {* }* return doc;* }- * </pre>+ * </code></pre>** Some implementations are considerably more efficient than that.*@@ -187,11 +187,11 @@ public abstract class DocIdSetIterator {* Load doc IDs into a {@link FixedBitSet}. This should behave exactly as if implemented as below,* which is the default implementation:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* for (int doc = docID(); doc < upTo; doc = nextDoc()) {* bitSet.set(doc - offset);* }- * </pre>+ * </code></pre>** <p><b>Note</b>: {@code offset} must be less than or equal to the {@link #docID() current doc* ID}. Behaviour is undefined if this iterator is unpositioned.diff --git a/lucene/core/src/java/org/apache/lucene/search/HitQueue.java b/lucene/core/src/java/org/apache/lucene/search/HitQueue.javaindex a2032991f4b..e77c756b3b6 100644--- a/lucene/core/src/java/org/apache/lucene/search/HitQueue.java+++ b/lucene/core/src/java/org/apache/lucene/search/HitQueue.java@@ -33,7 +33,7 @@ public final class HitQueue extends PriorityQueue<ScoreDoc> {* <b>NOTE:</b> in case <code>prePopulate</code> is true, you should pop elements from the queue* using the following code example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* PriorityQueue<ScoreDoc> pq = new HitQueue(10, true); // pre-populate.* ScoreDoc top = pq.top();*@@ -52,7 +52,7 @@ public final class HitQueue extends PriorityQueue<ScoreDoc> {* for (int i = totalHits - 1; i >= 0; i--) {* results[i] = (ScoreDoc) pq.pop();* }- * </pre>+ * </code></pre>** <p><b>NOTE</b>: This class pre-allocate a full array of length <code>size</code>.*diff --git a/lucene/core/src/java/org/apache/lucene/search/IndexOrDocValuesQuery.java b/lucene/core/src/java/org/apache/lucene/search/IndexOrDocValuesQuery.javaindex a26b07967c5..57b9af2289a 100644--- a/lucene/core/src/java/org/apache/lucene/search/IndexOrDocValuesQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/IndexOrDocValuesQuery.java@@ -29,13 +29,13 @@ import org.apache.lucene.index.LeafReaderContext;* SortedNumericDocValuesField}s with the same values, an efficient range query could be created by* doing:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* String field;* long minValue, maxValue;* Query pointQuery = LongPoint.newRangeQuery(field, minValue, maxValue);* Query dvQuery = SortedNumericDocValuesField.newSlowRangeQuery(field, minValue, maxValue);* Query query = new IndexOrDocValuesQuery(pointQuery, dvQuery);- * </pre>+ * </code></pre>** The above query will be efficient as it will use points in the case that they perform better, ie.* when we need a good lead iterator that will be almost entirely consumed; and doc valuesdiff --git a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.javaindex d1079b69089..ed595af30f4 100644--- a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java+++ b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java@@ -458,13 +458,13 @@ public class IndexSearcher {** <p>Example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* TopDocs hits = searcher.search(query, 10);* StoredFields storedFields = searcher.storedFields();* for (ScoreDoc hit : hits.scoreDocs) {* Document doc = storedFields.document(hit.doc);* }- * </pre>+ * </code></pre>** @throws IOException If there is a low-level IO error* @see IndexReader#storedFields()diff --git a/lucene/core/src/java/org/apache/lucene/search/IndexSortSortedNumericDocValuesRangeQuery.java b/lucene/core/src/java/org/apache/lucene/search/IndexSortSortedNumericDocValuesRangeQuery.javaindex ac85f306882..0f781a1a512 100644--- a/lucene/core/src/java/org/apache/lucene/search/IndexSortSortedNumericDocValuesRangeQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/IndexSortSortedNumericDocValuesRangeQuery.java@@ -56,13 +56,13 @@ import org.apache.lucene.util.ArrayUtil.ByteArrayComparator;* give constant scores. As an example, an {@link IndexSortSortedNumericDocValuesRangeQuery} might* be constructed as follows:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* String field = "field";* long lowerValue = 0, long upperValue = 10;* Query fallbackQuery = LongPoint.newRangeQuery(field, lowerValue, upperValue);* Query rangeQuery = new IndexSortSortedNumericDocValuesRangeQuery(* field, lowerValue, upperValue, fallbackQuery);- * </pre>+ * </code></pre>** @lucene.experimental*/diff --git a/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java b/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.javaindex bab2be62577..dd9b91ba139 100644--- a/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java+++ b/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java@@ -59,7 +59,7 @@ import org.apache.lucene.util.RoaringDocIdSet;* <p>A default query cache and policy instance is used in IndexSearcher. If you want to replace* those defaults it is typically done like this:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* final int maxNumberOfCachedQueries = 256;* final long maxRamBytesUsed = 50 * 1024L * 1024L; // 50MB* // these cache and policy instances can be shared across several queries and readers@@ -68,7 +68,7 @@ import org.apache.lucene.util.RoaringDocIdSet;* final QueryCachingPolicy defaultCachingPolicy = new UsageTrackingQueryCachingPolicy();* indexSearcher.setQueryCache(queryCache);* indexSearcher.setQueryCachingPolicy(defaultCachingPolicy);- * </pre>+ * </code></pre>** This cache exposes some global statistics ({@link #getHitCount() hit count}, {@link* #getMissCount() miss count}, {@link #getCacheSize() number of cache entries}, {@linkdiff --git a/lucene/core/src/java/org/apache/lucene/search/LeafCollector.java b/lucene/core/src/java/org/apache/lucene/search/LeafCollector.javaindex f8765c18372..7e4ee528da5 100644--- a/lucene/core/src/java/org/apache/lucene/search/LeafCollector.java+++ b/lucene/core/src/java/org/apache/lucene/search/LeafCollector.java@@ -32,7 +32,7 @@ import org.apache.lucene.index.StoredFields;* it by recording the docBase from the most recent setNextReader call. Here's a simple example* showing how to collect docIDs into a BitSet:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* IndexSearcher searcher = new IndexSearcher(indexReader);* final BitSet bits = new BitSet(indexReader.maxDoc());* searcher.search(query, new Collector() {@@ -54,7 +54,7 @@ import org.apache.lucene.index.StoredFields;* }** });- * </pre>+ * </code></pre>** <p>Not all collectors will need to rebase the docID. For example, a collector that simply counts* the total number of hits would skip it.diff --git a/lucene/core/src/java/org/apache/lucene/search/PhraseQuery.java b/lucene/core/src/java/org/apache/lucene/search/PhraseQuery.javaindex 12255474739..16fc86610c3 100644--- a/lucene/core/src/java/org/apache/lucene/search/PhraseQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/PhraseQuery.java@@ -52,21 +52,21 @@ import org.apache.lucene.util.IOSupplier;* Also, Leading holes don't have any particular meaning for this query and will be ignored. For* instance this query:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* PhraseQuery.Builder builder = new PhraseQuery.Builder();* builder.add(new Term("body", "one"), 4);* builder.add(new Term("body", "two"), 5);* PhraseQuery pq = builder.build();- * </pre>+ * </code></pre>** is equivalent to the below query:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* PhraseQuery.Builder builder = new PhraseQuery.Builder();* builder.add(new Term("body", "one"), 0);* builder.add(new Term("body", "two"), 1);* PhraseQuery pq = builder.build();- * </pre>+ * </code></pre>*/public class PhraseQuery extends Query {diff --git a/lucene/core/src/java/org/apache/lucene/search/Scorer.java b/lucene/core/src/java/org/apache/lucene/search/Scorer.javaindex fc540c30cc4..0fc5b61ff50 100644--- a/lucene/core/src/java/org/apache/lucene/search/Scorer.java+++ b/lucene/core/src/java/org/apache/lucene/search/Scorer.java@@ -92,7 +92,7 @@ public abstract class Scorer extends Scorable {** <p>The default implementation is provided below:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int batchSize = 64; // arbitrary* buffer.growNoCopy(batchSize);* int size = 0;@@ -105,7 +105,7 @@ public abstract class Scorer extends Scorable {* }* }* buffer.size = size;- * </pre>+ * </code></pre>** <p><b>NOTE</b>: The provided {@link DocAndFloatFeatureBuffer} should not hold references to* internal data structures.diff --git a/lucene/core/src/java/org/apache/lucene/search/SearcherFactory.java b/lucene/core/src/java/org/apache/lucene/search/SearcherFactory.javaindex 325c15fe37a..5d164cda55f 100644--- a/lucene/core/src/java/org/apache/lucene/search/SearcherFactory.java+++ b/lucene/core/src/java/org/apache/lucene/search/SearcherFactory.java@@ -27,11 +27,11 @@ import org.apache.lucene.search.similarities.Similarity; // javadocs* Factory class used by {@link SearcherManager} to create new IndexSearchers. The default* implementation just creates an IndexSearcher with no custom behavior:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public IndexSearcher newSearcher(IndexReader r) throws IOException {* return new IndexSearcher(r);* }- * </pre>+ * </code></pre>** You can pass your own factory instead if you want custom behavior, such as:*diff --git a/lucene/core/src/java/org/apache/lucene/search/SearcherLifetimeManager.java b/lucene/core/src/java/org/apache/lucene/search/SearcherLifetimeManager.javaindex 08978a1293e..b0bd73acfaa 100644--- a/lucene/core/src/java/org/apache/lucene/search/SearcherLifetimeManager.java+++ b/lucene/core/src/java/org/apache/lucene/search/SearcherLifetimeManager.java@@ -31,24 +31,24 @@ import org.apache.lucene.util.IOUtils;** <p>Use it like this:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* SearcherLifetimeManager mgr = new SearcherLifetimeManager();- * </pre>+ * </code></pre>** Per search-request, if it's a "new" search request, then obtain the latest searcher you have (for* example, by using {@link SearcherManager}), and then record this searcher:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // Record the current searcher, and save the returend* // token into user's search results (eg as a hidden* // HTML form field):* long token = mgr.record(searcher);- * </pre>+ * </code></pre>** When a follow-up search arrives, for example the user clicks next page, drills down/up, etc.,* take the token that you saved from the previous search and:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // If possible, obtain the same searcher as the last* // search:* IndexSearcher searcher = mgr.acquire(token);@@ -65,14 +65,14 @@ import org.apache.lucene.util.IOUtils;* // Searcher was pruned -- notify user session timed* // out, or, pull fresh searcher again* }- * </pre>+ * </code></pre>** Finally, in a separate thread, ideally the same thread that's periodically reopening your* searchers, you should periodically prune old searchers:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* mgr.prune(new PruneByAge(600.0));- * </pre>+ * </code></pre>** <p><b>NOTE</b>: keeping many searchers around means you'll use more resources (open files, RAM)* than a single searcher. However, as long as you are using {@linkdiff --git a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.javaindex 862e62a8c5b..3a84fef4d74 100644--- a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java+++ b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java@@ -31,7 +31,7 @@ import org.apache.lucene.store.Directory;* <p>Use {@link #acquire} to obtain the current searcher, and {@link #release} to release it, like* this:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* IndexSearcher s = manager.acquire();* try {* // Do searching, doc retrieval, etc. with s@@ -40,7 +40,7 @@ import org.apache.lucene.store.Directory;* }* // Do not use s after this!* s = null;- * </pre>+ * </code></pre>** <p>In addition you should periodically call {@link #maybeRefresh}. While it's possible to call* this just before running each query, this is discouraged since it penalizes the unlucky queriesdiff --git a/lucene/core/src/java/org/apache/lucene/search/TermInSetQuery.java b/lucene/core/src/java/org/apache/lucene/search/TermInSetQuery.javaindex 9c80972d3d7..1c1a633f44a 100644--- a/lucene/core/src/java/org/apache/lucene/search/TermInSetQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/TermInSetQuery.java@@ -47,14 +47,14 @@ import org.apache.lucene.util.automaton.ByteRunAutomaton;* <p>For instance in the following example, both {@code q1} and {@code q2} would yield the same* scores:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Query q1 = new TermInSetQuery("field", new BytesRef("foo"), new BytesRef("bar"));** BooleanQuery bq = new BooleanQuery();* bq.add(new TermQuery(new Term("field", "foo")), Occur.SHOULD);* bq.add(new TermQuery(new Term("field", "bar")), Occur.SHOULD);* Query q2 = new ConstantScoreQuery(bq);- * </pre>+ * </code></pre>** <p>Unless a custom {@link MultiTermQuery.RewriteMethod} is provided, this query executes like a* regular disjunction where there are few terms. However, when there are many terms, instead ofdiff --git a/lucene/core/src/java/org/apache/lucene/search/Weight.java b/lucene/core/src/java/org/apache/lucene/search/Weight.javaindex 341dd3cadf6..c0add319ac5 100644--- a/lucene/core/src/java/org/apache/lucene/search/Weight.java+++ b/lucene/core/src/java/org/apache/lucene/search/Weight.java@@ -153,7 +153,7 @@ public abstract class Weight implements SegmentCacheable {* Helper method that delegates to {@link #scorerSupplier(LeafReaderContext)}. It is implemented* as*- * <pre class="prettyprint">+ * <pre><code class="language-java">* ScorerSupplier scorerSupplier = scorerSupplier(context);* if (scorerSupplier == null) {* // No docs match@@ -162,7 +162,7 @@ public abstract class Weight implements SegmentCacheable {** scorerSupplier.setTopLevelScoringClause();* return scorerSupplier.bulkScorer();- * </pre>+ * </code></pre>** A bulk scorer for the same {@link LeafReaderContext} instance may be requested multiple times* as part of a single search call.diff --git a/lucene/core/src/java/org/apache/lucene/search/package-info.java b/lucene/core/src/java/org/apache/lucene/search/package-info.javaindex b01de702cc1..d974a31dd9a 100644--- a/lucene/core/src/java/org/apache/lucene/search/package-info.java+++ b/lucene/core/src/java/org/apache/lucene/search/package-info.java@@ -74,9 +74,9 @@* org.apache.lucene.document.Field Field} with the specified string in it. Constructing a {@link* org.apache.lucene.search.TermQuery TermQuery} is as simple as:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* TermQuery tq = new TermQuery(new Term("fieldName", "term"));- * </pre>+ * </code></pre>** In this example, the {@link org.apache.lucene.search.Query Query} identifies all {@link* org.apache.lucene.document.Document Document}s that have the {@link@@ -290,7 +290,7 @@* <p>Here is an example that constructs a query on "apache OR lucene" on fields "title" with a* boost of 10, and "body" with a boost of 1:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* BooleanQuery.Builder builder = new BooleanQuery.Builder();* for (String term : new String[] { "apache", "lucene" }) {* Query query = new CombinedFieldQuery(term)@@ -300,7 +300,7 @@* builder.add(query, Occur.SHOULD);* }* Query query = builder.build();- * </pre>+ * </code></pre>** <h3>Integrating field values into the score</h3>*@@ -311,7 +311,7 @@* linear combination. For instance the below query matches the same documents as {@code* originalQuery} and computes scores as {@code similarityScore + 0.7 * featureScore}:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Query originalQuery = new BooleanQuery.Builder()* .add(new TermQuery(new Term("body", "apache")), Occur.SHOULD)* .add(new TermQuery(new Term("body", "lucene")), Occur.SHOULD)@@ -321,7 +321,7 @@* .add(originalQuery, Occur.MUST)* .add(new BoostQuery(featureQuery, 0.7f), Occur.SHOULD)* .build();- * </pre>+ * </code></pre>** <p>A less efficient yet more flexible way of modifying scores is to index scoring features into* doc-value fields and then combine them with the similarity score using a <a@@ -332,7 +332,7 @@* assuming that values for the {@code popularity} field have been set in a {@link* org.apache.lucene.document.NumericDocValuesField NumericDocValuesField} at index time:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // compile an expression:* Expression expr = JavascriptCompiler.compile("_score * ln(popularity)");*@@ -346,7 +346,7 @@* Query query = new FunctionScoreQuery(* originalQuery,* expr.getDoubleValuesSource(bindings));- * </pre>+ * </code></pre>** <a id="customQueriesExpert"></a>*diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/BM25Similarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/BM25Similarity.javaindex 78e89f51516..5c5d85d665e 100644--- a/lucene/core/src/java/org/apache/lucene/search/similarities/BM25Similarity.java+++ b/lucene/core/src/java/org/apache/lucene/search/similarities/BM25Similarity.java@@ -122,9 +122,9 @@ public class BM25Similarity extends Similarity {** <p>The default implementation uses:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* idf(docFreq, docCount);- * </pre>+ * </code></pre>** Note that {@link CollectionStatistics#docCount()} is used instead of {@link* org.apache.lucene.index.IndexReader#numDocs() IndexReader#numDocs()} because also {@linkdiff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/IndriDirichletSimilarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/IndriDirichletSimilarity.javaindex b3994c5dc46..91fb1395cb1 100644--- a/lucene/core/src/java/org/apache/lucene/search/similarities/IndriDirichletSimilarity.java+++ b/lucene/core/src/java/org/apache/lucene/search/similarities/IndriDirichletSimilarity.java@@ -24,10 +24,10 @@ import org.apache.lucene.search.Explanation;* Bayesian smoothing using Dirichlet priors as implemented in the Indri Search engine* (http://www.lemurproject.org/indri.php). Indri Dirichelet Smoothing!*- * <pre class="prettyprint">+ * <pre><code class="language-java">* tf_E + mu*P(t|D) P(t|E)= documentLength + documentMu* mu*P(t|C) + tf_D where P(t|D)= doclen + mu- * </pre>+ * </code></pre>** <p>A larger value for mu, produces more smoothing. Smoothing is most important for short* documents where the probabilities are more granular.diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.javaindex 721ce2a7311..d7f73975b15 100644--- a/lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java+++ b/lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java@@ -242,11 +242,11 @@ public abstract class Similarity {* Bulk computation of scores. For each index {@code i} in [0, size), scores[i] is computed as* score(freqs[i], norms[i]). The default implementation does the following:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* for (int i = 0; i < size; ++i) {* scores[i] = score(freqs[i], norms[i]);* }- * </pre>+ * </code></pre>** <p><b>NOTE</b>: It is legal to pass the same {@code freqs} and {@code scores} arrays.*/diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.javaindex 9af5b4877c3..47385de6583 100644--- a/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java+++ b/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java@@ -353,9 +353,9 @@ public abstract class TFIDFSimilarity extends Similarity {** <p>The default implementation uses:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* idf(docFreq, docCount);- * </pre>+ * </code></pre>** Note that {@link CollectionStatistics#docCount()} is used instead of {@link* org.apache.lucene.index.IndexReader#numDocs() IndexReader#numDocs()} because also {@linkdiff --git a/lucene/core/src/java/org/apache/lucene/store/Lock.java b/lucene/core/src/java/org/apache/lucene/store/Lock.javaindex cdacdb5c555..504043b15ec 100644--- a/lucene/core/src/java/org/apache/lucene/store/Lock.java+++ b/lucene/core/src/java/org/apache/lucene/store/Lock.java@@ -24,11 +24,11 @@ import java.io.IOException;** <p>Typical use might look like:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* try (final Lock lock = directory.obtainLock("my.lock")) {* // ... code to execute while locked ...* }- * </pre>+ * </code></pre>** @see Directory#obtainLock(String)* @lucene.internaldiff --git a/lucene/core/src/java/org/apache/lucene/store/NRTCachingDirectory.java b/lucene/core/src/java/org/apache/lucene/store/NRTCachingDirectory.javaindex 8bbb4564285..22010024fd8 100644--- a/lucene/core/src/java/org/apache/lucene/store/NRTCachingDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/NRTCachingDirectory.java@@ -49,12 +49,12 @@ import org.apache.lucene.util.IOUtils;** <p>Here's a simple example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Directory fsDir = FSDirectory.open(new File("/path/to/index").toPath());* NRTCachingDirectory cachedFSDir = new NRTCachingDirectory(fsDir, 5.0, 60.0);* IndexWriterConfig conf = new IndexWriterConfig(analyzer);* IndexWriter writer = new IndexWriter(cachedFSDir, conf);- * </pre>+ * </code></pre>** <p>This will cache all newly flushed segments, all merges whose expected segment size is {@code* <= 5 MB}, unless the net cached bytes exceed 60 MB at which point all writes will not be cacheddiff --git a/lucene/core/src/java/org/apache/lucene/util/AttributeImpl.java b/lucene/core/src/java/org/apache/lucene/util/AttributeImpl.javaindex 3a34c55b72b..b2beaefee2a 100644--- a/lucene/core/src/java/org/apache/lucene/util/AttributeImpl.java+++ b/lucene/core/src/java/org/apache/lucene/util/AttributeImpl.java@@ -76,12 +76,12 @@ public abstract class AttributeImpl implements Cloneable, Attribute {** <p>Implementations look like this (e.g. for a combined attribute implementation):*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public void reflectWith(AttributeReflector reflector) {* reflector.reflect(CharTermAttribute.class, "term", term());* reflector.reflect(PositionIncrementAttribute.class, "positionIncrement", getPositionIncrement());* }- * </pre>+ * </code></pre>** <p>If you implement this method, make sure that for each invocation, the same set of {@link* Attribute} interfaces and keys are passed to {@link AttributeReflector#reflect} in the samediff --git a/lucene/core/src/java/org/apache/lucene/util/Bits.java b/lucene/core/src/java/org/apache/lucene/util/Bits.javaindex 61757a1a34e..a312a0fd457 100644--- a/lucene/core/src/java/org/apache/lucene/util/Bits.java+++ b/lucene/core/src/java/org/apache/lucene/util/Bits.java@@ -42,7 +42,7 @@ public interface Bits {** <p>This should behave the same way as the default implementation, which does the following:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* for (int i = bitSet.nextSetBit(0);* i != DocIdSetIterator.NO_MORE_DOCS;* i = i + 1 >= bitSet.length() ? DocIdSetIterator.NO_MORE_DOCS : bitSet.nextSetBit(i + 1)) {@@ -50,7 +50,7 @@ public interface Bits {* bitSet.clear(i);* }* }- * </pre>+ * </code></pre>*/default void applyMask(FixedBitSet bitSet, int offset) {for (int i = bitSet.nextSetBit(0);diff --git a/lucene/core/src/java/org/apache/lucene/util/LongHeap.java b/lucene/core/src/java/org/apache/lucene/util/LongHeap.javaindex 3f1115e0907..9d467ed35bd 100644--- a/lucene/core/src/java/org/apache/lucene/util/LongHeap.java+++ b/lucene/core/src/java/org/apache/lucene/util/LongHeap.java@@ -132,16 +132,16 @@ public final class LongHeap {* Replace the top of the pq with {@code newTop}. Should be called when the top value changes.* Still log(n) worst case, but it's at least twice as fast to*- * <pre class="prettyprint">+ * <pre><code class="language-java">* pq.updateTop(value);- * </pre>+ * </code></pre>** instead of*- * <pre class="prettyprint">+ * <pre><code class="language-java">* pq.pop();* pq.push(value);- * </pre>+ * </code></pre>** Calling this method on an empty LongHeap has no visible effect.*diff --git a/lucene/core/src/java/org/apache/lucene/util/PriorityQueue.java b/lucene/core/src/java/org/apache/lucene/util/PriorityQueue.javaindex 799db0700f4..ec89bb1b269 100644--- a/lucene/core/src/java/org/apache/lucene/util/PriorityQueue.java+++ b/lucene/core/src/java/org/apache/lucene/util/PriorityQueue.java@@ -91,7 +91,7 @@ public class PriorityQueue<T> implements Iterable<T> {* <p>If this method is extended to return a non-null value, then the following usage pattern is* recommended:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* PriorityQueue<MyObject> pq = new PriorityQueue<MyObject>(numHits, lessThan);* // save the 'top' element, which is guaranteed to not be null.* MyObject pqTop = pq.top();@@ -100,7 +100,7 @@ public class PriorityQueue<T> implements Iterable<T> {* // you've verified it is better), it is as simple as:* pqTop.change().* pqTop = pq.updateTop();- * </pre>+ * </code></pre>** <b>NOTE:</b> the given supplier will be called {@code maxSize} times, relying on a new object* to be returned and will not check if it's null again. Therefore you should ensure any call to@@ -236,18 +236,18 @@ public class PriorityQueue<T> implements Iterable<T> {* Should be called when the Object at top changes values. Still log(n) worst case, but it's at* least twice as fast to*- * <pre class="prettyprint">+ * <pre><code class="language-java">* pq.top().change();* pq.updateTop();- * </pre>+ * </code></pre>** instead of*- * <pre class="prettyprint">+ * <pre><code class="language-java">* o = pq.pop();* o.change();* pq.push(o);- * </pre>+ * </code></pre>** @return the new 'top' element.*/diff --git a/lucene/core/src/java/org/apache/lucene/util/QueryBuilder.java b/lucene/core/src/java/org/apache/lucene/util/QueryBuilder.javaindex b95ba73f449..b7805df5f07 100644--- a/lucene/core/src/java/org/apache/lucene/util/QueryBuilder.java+++ b/lucene/core/src/java/org/apache/lucene/util/QueryBuilder.java@@ -45,12 +45,12 @@ import org.apache.lucene.util.graph.GraphTokenStreamFiniteStrings;** <p>Example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* QueryBuilder builder = new QueryBuilder(analyzer);* Query a = builder.createBooleanQuery("body", "just a test");* Query b = builder.createPhraseQuery("body", "another test");* Query c = builder.createMinShouldMatchQuery("body", "another test", 0.5f);- * </pre>+ * </code></pre>** <p>This can also be used as a subclass for query parsers to make it easier to interact with the* analysis chain. Factory methods such as {@code newTermQuery} are provided so that the generateddiff --git a/lucene/core/src/java/org/apache/lucene/util/SentinelIntSet.java b/lucene/core/src/java/org/apache/lucene/util/SentinelIntSet.javaindex 29a214752e1..a765c50f2ab 100644--- a/lucene/core/src/java/org/apache/lucene/util/SentinelIntSet.java+++ b/lucene/core/src/java/org/apache/lucene/util/SentinelIntSet.java@@ -28,13 +28,13 @@ import java.util.Arrays;** <p>To iterate over the integers held in this set, simply use code like this:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* SentinelIntSet set = ...* for (int v : set.keys) {* if (v == set.emptyVal)* continue;* //use v...- * }</pre>+ * }</code></pre>** @lucene.internal*/diff --git a/lucene/core/src/java/org/apache/lucene/util/TernaryLongHeap.java b/lucene/core/src/java/org/apache/lucene/util/TernaryLongHeap.javaindex e10bfaecb8a..75c3e7f0d11 100644--- a/lucene/core/src/java/org/apache/lucene/util/TernaryLongHeap.java+++ b/lucene/core/src/java/org/apache/lucene/util/TernaryLongHeap.java@@ -132,16 +132,16 @@ public final class TernaryLongHeap {* Replace the top of the pq with {@code newTop}. Should be called when the top value changes.* Still log(n) worst case, but it's at least twice as fast to*- * <pre class="prettyprint">+ * <pre><code class="language-java">* pq.updateTop(value);- * </pre>+ * </code></pre>** <p>instead of*- * <pre class="prettyprint">+ * <pre><code class="language-java">* pq.pop();* pq.push(value);- * </pre>+ * </code></pre>** <p>Calling this method on an empty TernaryLongHeap has no visible effect.*diff --git a/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java b/lucene/core/src/java/org/apache/lucene/util/VectorUtil.javaindex 3428899bb25..061e253bde9 100644--- a/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java+++ b/lucene/core/src/java/org/apache/lucene/util/VectorUtil.java@@ -245,12 +245,12 @@ public final class VectorUtil {* Dot product computed over uint4 (values between [0,15]) bytes. The second vector is considered* "packed" (i.e. every byte representing two values). The following packing is assumed:*- * <pre class="prettyprint lang-java">+ * <pre><code class="language-java">* packed[0] = (raw[0] * 16) | raw[packed.length];* packed[1] = (raw[1] * 16) | raw[packed.length + 1];* ...* packed[packed.length - 1] = (raw[packed.length - 1] * 16) | raw[2 * packed.length - 1];- * </pre>+ * </code></pre>** @param unpacked the unpacked vector, of even length* @param packed the packed vector, of length {@code (unpacked.length + 1) / 2}diff --git a/lucene/core/src/java/org/apache/lucene/util/VirtualMethod.java b/lucene/core/src/java/org/apache/lucene/util/VirtualMethod.javaindex 7c6c357862e..32ee94a2299 100644--- a/lucene/core/src/java/org/apache/lucene/util/VirtualMethod.java+++ b/lucene/core/src/java/org/apache/lucene/util/VirtualMethod.java@@ -33,12 +33,12 @@ import java.util.Set;* <p>Define <strong>static final</strong> fields in the base class ({@code BaseClass}), where the* old and new method are declared:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* static final VirtualMethod<BaseClass> newMethod =* new VirtualMethod<BaseClass>(BaseClass.class, "newName", parameters...);* static final VirtualMethod<BaseClass> oldMethod =* new VirtualMethod<BaseClass>(BaseClass.class, "oldName", parameters...);- * </pre>+ * </code></pre>** <p>This enforces the singleton status of these objects, as the maintenance of the cache would be* too costly else. If you try to create a second instance of for the same method/{@code baseClass}@@ -47,7 +47,7 @@ import java.util.Set;* <p>To detect if e.g. the old method was overridden by a more far subclass on the inheritance path* to the current instance's class, use a <strong>non-static</strong> field:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* final boolean isDeprecatedMethodOverridden =* AccessController.doPrivileged((PrivilegedAction<Boolean>) () ->* (oldMethod.getImplementationDistance(this.getClass()) > newMethod.getImplementationDistance(this.getClass())));@@ -56,7 +56,7 @@ import java.util.Set;* final boolean isDeprecatedMethodOverridden =* AccessController.doPrivileged((PrivilegedAction<Boolean>) () ->* VirtualMethod.compareImplementationDistance(this.getClass(), oldMethod, newMethod) > 0);- * </pre>+ * </code></pre>** <p>{@link #getImplementationDistance} returns the distance of the subclass that overrides this* method. The one with the larger distance should be used preferable. This way also morediff --git a/lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java b/lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.javaindex 43a3bfc6263..8c9b2ad0c80 100644--- a/lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java+++ b/lucene/core/src/java/org/apache/lucene/util/fst/FSTCompiler.java@@ -978,20 +978,20 @@ public class FSTCompiler<T> {* <p>- If a FSTReader DataOutput was used, such as the one returned by {@link* #getOnHeapReaderWriter(int)}*- * <pre class="prettyprint">+ * <pre><code class="language-java">* fstMetadata = fstCompiler.compile();* fst = FST.fromFSTReader(fstMetadata, fstCompiler.getFSTReader());- * </pre>+ * </code></pre>** <p>- If a non-FSTReader DataOutput was used, such as {@link* org.apache.lucene.store.IndexOutput}, you need to first create the corresponding {@link* org.apache.lucene.store.DataInput}, such as {@link org.apache.lucene.store.IndexInput} then* pass it to the FST construct*- * <pre class="prettyprint">+ * <pre><code class="language-java">* fstMetadata = fstCompiler.compile();* fst = new FST<>(fstMetadata, dataInput, new OffHeapFSTStore());- * </pre>+ * </code></pre>*/public FST.FSTMetadata<T> compile() throws IOException {diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/Util.java b/lucene/core/src/java/org/apache/lucene/util/fst/Util.javaindex c0f4bfeb572..70ae6703be6 100644--- a/lucene/core/src/java/org/apache/lucene/util/fst/Util.java+++ b/lucene/core/src/java/org/apache/lucene/util/fst/Util.java@@ -476,11 +476,11 @@ public final class Util {* Dumps an {@link FST} to a GraphViz's <code>dot</code> language description for visualization.* Example of use:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* PrintWriter pw = new PrintWriter("out.dot");* Util.toDot(fst, pw, true, true);* pw.close();- * </pre>+ * </code></pre>** and then, from command line:*diff --git a/lucene/core/src/java/org/apache/lucene/util/fst/package-info.java b/lucene/core/src/java/org/apache/lucene/util/fst/package-info.javaindex 1f80869f699..f75a6084de9 100644--- a/lucene/core/src/java/org/apache/lucene/util/fst/package-info.java+++ b/lucene/core/src/java/org/apache/lucene/util/fst/package-info.java@@ -34,7 +34,7 @@** <p>FST Construction example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // Input values (keys). These must be provided to Builder in Unicode code point (UTF8 or UTF32) sorted order.* // Note that sorting by Java's String.compareTo, which is UTF16 sorted order, is not correct and can lead to* // exceptions while building the FST:@@ -50,26 +50,26 @@* fstCompiler.add(Util.toIntsRef(scratchBytes.toBytesRef(), scratchInts), outputValues[i]);* }* FST<Long> fst = FST.fromFSTReader(fstCompiler.compile(), fstCompiler.getFSTReader());- * </pre>+ * </code></pre>** Retrieval by key:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Long value = Util.get(fst, new BytesRef("dog"));* System.out.println(value); // 7- * </pre>+ * </code></pre>** Retrieval by value:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // Only works because outputs are also in sorted order* IntsRef key = Util.getByOutput(fst, 12);* System.out.println(Util.toBytesRef(key, scratchBytes).utf8ToString()); // dogs- * </pre>+ * </code></pre>** Iterate over key-value pairs in sorted order:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // Like TermsEnum, this also supports seeking (advance)* BytesRefFSTEnum<Long> iterator = new BytesRefFSTEnum<Long>(fst);* while (iterator.next() != null) {@@ -77,11 +77,11 @@* System.out.println(mapEntry.input.utf8ToString());* System.out.println(mapEntry.output);* }- * </pre>+ * </code></pre>** N-shortest paths by weight:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Comparator<Long> comparator = new Comparator<Long>() {* public int compare(Long left, Long right) {* return left.compareTo(right);@@ -93,6 +93,6 @@* System.out.println(paths.topN.get(0).output); // 5* System.out.println(Util.toBytesRef(paths.topN.get(1).input, scratchBytes).utf8ToString()); // dog* System.out.println(paths.topN.get(1).output); // 7- * </pre>+ * </code></pre>*/package org.apache.lucene.util.fst;diff --git a/lucene/core/src/java/org/apache/lucene/util/packed/DirectReader.java b/lucene/core/src/java/org/apache/lucene/util/packed/DirectReader.javaindex c4390e4d969..6fede3a35f4 100644--- a/lucene/core/src/java/org/apache/lucene/util/packed/DirectReader.java+++ b/lucene/core/src/java/org/apache/lucene/util/packed/DirectReader.java@@ -26,14 +26,14 @@ import org.apache.lucene.util.LongValues;** <p>Example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int bitsPerValue = DirectWriter.bitsRequired(100);* IndexInput in = dir.openInput("packed", IOContext.DEFAULT);* LongValues values = DirectReader.getInstance(in.randomAccessSlice(start, end), bitsPerValue);* for (int i = 0; i < numValues; i++) {* long value = values.get(i);* }- * </pre>+ * </code></pre>** @see DirectWriter*/diff --git a/lucene/core/src/java/org/apache/lucene/util/packed/DirectWriter.java b/lucene/core/src/java/org/apache/lucene/util/packed/DirectWriter.javaindex c9d2cbe52db..d2a2e1ab234 100644--- a/lucene/core/src/java/org/apache/lucene/util/packed/DirectWriter.java+++ b/lucene/core/src/java/org/apache/lucene/util/packed/DirectWriter.java@@ -29,7 +29,7 @@ import org.apache.lucene.util.BitUtil;* <p>Unlike PackedInts, it optimizes for read i/o operations and supports > 2B values. Example* usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* int bitsPerValue = DirectWriter.bitsRequired(100); // values up to and including 100* IndexOutput output = dir.createOutput("packed", IOContext.DEFAULT);* DirectWriter writer = DirectWriter.getInstance(output, numberOfValues, bitsPerValue);@@ -38,7 +38,7 @@ import org.apache.lucene.util.BitUtil;* }* writer.finish();* output.close();- * </pre>+ * </code></pre>** @see DirectReader*/diff --git a/lucene/core/src/java/org/apache/lucene/util/quantization/OptimizedScalarQuantizer.java b/lucene/core/src/java/org/apache/lucene/util/quantization/OptimizedScalarQuantizer.javaindex 23e2e7ab19f..179799ff83a 100644--- a/lucene/core/src/java/org/apache/lucene/util/quantization/OptimizedScalarQuantizer.java+++ b/lucene/core/src/java/org/apache/lucene/util/quantization/OptimizedScalarQuantizer.java@@ -370,11 +370,11 @@ public class OptimizedScalarQuantizer {** <p>This bit decomposition for fast bitwise SIMD operations was first proposed in:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Gao, Jianyang, and Cheng Long. "RaBitQ: Quantizing High-* Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Search."* Proceedings of the ACM on Management of Data 2, no. 3 (2024): 1-27.- * </pre>+ * </code></pre>** @param q the query vector, assumed to be half-byte quantized with values between 0 and 15* @param quantQueryByte the byte array to store the transposed query vectordiff --git a/lucene/core/src/java/org/apache/lucene/util/quantization/ScalarQuantizer.java b/lucene/core/src/java/org/apache/lucene/util/quantization/ScalarQuantizer.javaindex cacc86e2ef1..c4eb6bf2c77 100644--- a/lucene/core/src/java/org/apache/lucene/util/quantization/ScalarQuantizer.java+++ b/lucene/core/src/java/org/apache/lucene/util/quantization/ScalarQuantizer.java@@ -46,30 +46,30 @@ import org.apache.lucene.util.VectorUtil;* normalization. Given a float vector `v` and a confidenceInterval `q` we can calculate the* quantiles of the vector values [minQuantile, maxQuantile].*- * <pre class="prettyprint">+ * <pre><code class="language-java">* byte = (float - minQuantile) * 127/(maxQuantile - minQuantile)* float = (maxQuantile - minQuantile)/127 * byte + minQuantile- * </pre>+ * </code></pre>** <p>This then means to multiply two float values together (e.g. dot_product) we can do the* following:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* float1 * float2 ~= (byte1 * (maxQuantile - minQuantile)/127 + minQuantile) * (byte2 * (maxQuantile - minQuantile)/127 + minQuantile)* float1 * float2 ~= (byte1 * byte2 * (maxQuantile - minQuantile)^2)/(127^2) + (byte1 * minQuantile * (maxQuantile - minQuantile)/127) + (byte2 * minQuantile * (maxQuantile - minQuantile)/127) + minQuantile^2* let alpha = (maxQuantile - minQuantile)/127* float1 * float2 ~= (byte1 * byte2 * alpha^2) + (byte1 * minQuantile * alpha) + (byte2 * minQuantile * alpha) + minQuantile^2- * </pre>+ * </code></pre>** <p>The expansion for square distance is much simpler:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* square_distance = (float1 - float2)^2* (float1 - float2)^2 ~= (byte1 * alpha + minQuantile - byte2 * alpha - minQuantile)^2* = (alpha*byte1 + minQuantile)^2 + (alpha*byte2 + minQuantile)^2 - 2*(alpha*byte1 + minQuantile)(alpha*byte2 + minQuantile)* this can be simplified to:* = alpha^2 (byte1 - byte2)^2- * </pre>+ * </code></pre>*/public class ScalarQuantizer {diff --git a/lucene/expressions/src/java/org/apache/lucene/expressions/Expression.java b/lucene/expressions/src/java/org/apache/lucene/expressions/Expression.javaindex c7710305f33..e32e58d4304 100644--- a/lucene/expressions/src/java/org/apache/lucene/expressions/Expression.java+++ b/lucene/expressions/src/java/org/apache/lucene/expressions/Expression.java@@ -28,7 +28,7 @@ import org.apache.lucene.search.SortField;** <p>Example that sorts based on an expression:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // compile an expression:* Expression expr = JavascriptCompiler.compile("sqrt(_score) + ln(popularity)");*@@ -41,11 +41,11 @@ import org.apache.lucene.search.SortField;* Sort sort = new Sort(expr.getSortField(bindings, true));* Query query = new TermQuery(new Term("body", "contents"));* searcher.search(query, 10, sort);- * </pre>+ * </code></pre>** <p>Example that modifies the scores produced by the query:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // compile an expression:* Expression expr = JavascriptCompiler.compile("sqrt(_score) + ln(popularity)");*@@ -60,7 +60,7 @@ import org.apache.lucene.search.SortField;* new TermQuery(new Term("body", "contents")),* expr.getDoubleValuesSource(bindings));* searcher.search(query, 10);- * </pre>+ * </code></pre>** @see JavascriptCompiler#compile* @lucene.experimentaldiff --git a/lucene/expressions/src/java/org/apache/lucene/expressions/SimpleBindings.java b/lucene/expressions/src/java/org/apache/lucene/expressions/SimpleBindings.javaindex dd24285e662..42947dfe9f5 100644--- a/lucene/expressions/src/java/org/apache/lucene/expressions/SimpleBindings.java+++ b/lucene/expressions/src/java/org/apache/lucene/expressions/SimpleBindings.java@@ -29,7 +29,7 @@ import org.apache.lucene.search.DoubleValuesSource;** <p>Example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* SimpleBindings bindings = new SimpleBindings();* // document's text relevance score* bindings.add("_score", DoubleValuesSource.SCORES);@@ -40,7 +40,7 @@ import org.apache.lucene.search.DoubleValuesSource;** // create a sort field in reverse order* Sort sort = new Sort(expr.getSortField(bindings, true));- * </pre>+ * </code></pre>** @lucene.experimental*/diff --git a/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java b/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.javaindex dfd53f0caa6..d8c1c6a663e 100644--- a/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java+++ b/lucene/expressions/src/java/org/apache/lucene/expressions/js/JavascriptCompiler.java@@ -73,9 +73,9 @@ import org.apache.lucene.util.SuppressForbidden;** <p>Example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Expression foo = JavascriptCompiler.compile("((0.3*popularity)/10.0)+(0.7*score)");- * </pre>+ * </code></pre>** <p>See the {@link org.apache.lucene.expressions.js package documentation} for the supported* syntax and default functions.@@ -83,7 +83,7 @@ import org.apache.lucene.util.SuppressForbidden;* <p>You can compile with an alternate set of functions via {@link #compile(String, Map)}. For* example:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Map<String,MethodHandle> functions = new HashMap<>();* // add all the default functions* functions.putAll(JavascriptCompiler.DEFAULT_FUNCTIONS);@@ -93,7 +93,7 @@ import org.apache.lucene.util.SuppressForbidden;* // call compile with customized function map* Expression foo = JavascriptCompiler.compile("cbrt(score)+ln(popularity)",* functions);- * </pre>+ * </code></pre>** <p>It is possible to pass any {@link MethodHandle} as function that only takes {@code double}* parameters and returns a {@code double}. The method does not need to be public, it just needs todiff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/OrdinalMappingLeafReader.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/OrdinalMappingLeafReader.javaindex 13be6953577..80edfaf12dc 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/OrdinalMappingLeafReader.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/OrdinalMappingLeafReader.java@@ -39,7 +39,7 @@ import org.apache.lucene.search.DocIdSetIterator;** <p>For re-mapping the ordinals during index merge, do the following:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // merge the old taxonomy with the new one.* OrdinalMap map = new MemoryOrdinalMap();* DirectoryTaxonomyWriter.addTaxonomy(srcTaxoDir, map);@@ -56,7 +56,7 @@ import org.apache.lucene.search.DocIdSetIterator;* }* writer.addIndexes(new MultiReader(wrappedLeaves));* writer.commit();- * </pre>+ * </code></pre>** @lucene.experimental*/diff --git a/lucene/grouping/src/java/org/apache/lucene/search/grouping/package-info.java b/lucene/grouping/src/java/org/apache/lucene/search/grouping/package-info.javaindex 5c1b1247e0a..72bdc9dcc5e 100644--- a/lucene/grouping/src/java/org/apache/lucene/search/grouping/package-info.java+++ b/lucene/grouping/src/java/org/apache/lucene/search/grouping/package-info.java@@ -78,7 +78,7 @@* <p>Typical usage for the generic two-pass grouping search looks like this using the grouping* convenience utility (optionally using caching for the second pass search):*- * <pre class="prettyprint">+ * <pre><code class="language-java">* GroupingSearch groupingSearch = new GroupingSearch("author");* groupingSearch.setGroupSort(groupSort);* groupingSearch.setFillSortFields(fillFields);@@ -99,13 +99,13 @@* if (requiredTotalGroupCount) {* int totalGroupCount = result.totalGroupCount;* }- * </pre>+ * </code></pre>** <p>To use the single-pass <code>BlockGroupingCollector</code>, first, at indexing time, you must* ensure all docs in each group are added as a block, and you have some way to find the last* document of each group. One simple way to do this is to add a marker binary field:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // Create Documents from your source:* List<Document> oneGroup = ...;*@@ -119,22 +119,22 @@* // example, each group could have a "groupID" field, with the same* // value for all docs in this group:* writer.addDocuments(oneGroup);- * </pre>+ * </code></pre>** Then, at search time:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Query groupEndDocs = new TermQuery(new Term("groupEnd", "x"));* BlockGroupingCollector c = new BlockGroupingCollector(groupSort, groupOffset+topNGroups, needsScores, groupEndDocs);* s.search(new TermQuery(new Term("content", searchTerm)), c);* TopGroups groupsResult = c.getTopGroups(withinGroupSort, groupOffset, docOffset, docOffset+docsPerGroup, fillFields);** // Render groupsResult...- * </pre>+ * </code></pre>** Or alternatively use the <code>GroupingSearch</code> convenience utility:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* // Per search:* GroupingSearch groupingSearch = new GroupingSearch(groupEndDocs);* groupingSearch.setGroupSort(groupSort);@@ -143,7 +143,7 @@* TopGroups groupsResult = groupingSearch.search(indexSearcher, query, groupOffset, groupLimit);** // Render groupsResult...- * </pre>+ * </code></pre>** Note that the <code>groupValue</code> of each <code>GroupDocs</code> will be <code>null</code>,* so if you need to present this value you'll have to separately retrieve it (for example using@@ -156,7 +156,7 @@* the <code>GroupingSearch</code> convenience utility, but when if one only wants to compute the* most relevant documents per group it is better to just use the collector as done here below.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* TermGroupSelector grouper = new TermGroupSelector(groupField);* AllGroupHeadsCollector c = AllGroupHeadsCollector.newCollector(grouper, sortWithinGroup);* s.search(new TermQuery(new Term("content", searchTerm)), c);@@ -165,6 +165,6 @@* // Return all group heads as FixedBitSet.* int maxDoc = s.maxDoc();* FixedBitSet groupHeadsBitSet = c.retrieveGroupHeads(maxDoc)- * </pre>+ * </code></pre>*/package org.apache.lucene.search.grouping;diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/package-info.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/package-info.javaindex a9ab1cafcbd..4ba005164a7 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/package-info.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/package-info.java@@ -25,7 +25,7 @@** <h2>Example Usage</h2>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* //... Above, create documents with two fields, one with term vectors (tv) and one without (notv)* IndexSearcher searcher = new IndexSearcher(directory);* QueryParser parser = new QueryParser("notv", analyzer);@@ -57,7 +57,7 @@* }* System.out.println("-------------");* }- * </pre>+ * </code></pre>** <h2>New features 06/02/2005</h2>*diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java b/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.javaindex 0e24931b4bd..2abfaceccda 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java@@ -775,13 +775,13 @@ public class UnifiedHighlighter {** <p>Conceptually, this behaves as a more efficient form of:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Map m = new HashMap();* for (String field : fields) {* m.put(field, highlight(field, query, topDocs));* }* return m;- * </pre>+ * </code></pre>** @param fields field names to highlight. Must have a stored string value.* @param query query to highlight.@@ -805,13 +805,13 @@ public class UnifiedHighlighter {** <p>Conceptually, this behaves as a more efficient form of:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Map m = new HashMap();* for (String field : fields) {* m.put(field, highlight(field, query, topDocs, maxPassages));* }* return m;- * </pre>+ * </code></pre>** @param fields field names to highlight. Must have a stored string value.* @param query query to highlight.diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/SingleFragListBuilder.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/SingleFragListBuilder.javaindex 06ae1ee7775..10436504a80 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/SingleFragListBuilder.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/SingleFragListBuilder.java@@ -27,10 +27,10 @@ import org.apache.lucene.search.vectorhighlight.FieldPhraseList.WeightedPhraseIn* object. Typical use case of this class is that you can get an entire field contents by using both* of this class and {@link SimpleFragmentsBuilder}.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* FastVectorHighlighter h = new FastVectorHighlighter( true, true,* new SingleFragListBuilder(), new SimpleFragmentsBuilder() );- * </pre>+ * </code></pre>*/public class SingleFragListBuilder implements FragListBuilder {diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/package-info.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/package-info.javaindex fa659b5d6fd..95d63ee6113 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/package-info.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/package-info.java@@ -71,14 +71,14 @@* org.apache.lucene.search.vectorhighlight.FieldQuery.QueryPhraseMap} from the user query. <code>* QueryPhraseMap</code> consists of the following members:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public class QueryPhraseMap {* boolean terminal;* int slop; // valid if terminal == true and phraseHighlight == true* float boost; // valid if terminal == true* Map<String, QueryPhraseMap> subMap;* }- * </pre>+ * </code></pre>** <p><code>QueryPhraseMap</code> has subMap. The key of the subMap is a term text in the user query* and the value is a subsequent <code>QueryPhraseMap</code>. If the query is a term (not phrase),@@ -157,7 +157,7 @@* <p>The calculation for each <code>FieldFragList.WeightedFragInfo.totalBoost</code> (weight)* depends on the implementation of <code>FieldFragList.add( ... )</code>:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public void add( int startOffset, int endOffset, List<WeightedPhraseInfo> phraseInfoList ) {* float totalBoost = 0;* List<SubInfo> subInfos = new ArrayList<SubInfo>();@@ -168,16 +168,16 @@* getFragInfos().add( new WeightedFragInfo( startOffset, endOffset, subInfos, totalBoost ) );* }*- * </pre>+ * </code></pre>** The used implementation of <code>FieldFragList</code> is noted in <code>* BaseFragListBuilder.createFieldFragList( ... )</code>:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public FieldFragList createFieldFragList( FieldPhraseList fieldPhraseList, int fragCharSize ){* return createFieldFragList( fieldPhraseList, new SimpleFieldFragList( fragCharSize ), fragCharSize );* }- * </pre>+ * </code></pre>** <p>Currently there are basically to approaches available:*diff --git a/lucene/join/src/java/org/apache/lucene/search/join/DiversifyingChildrenByteKnnVectorQuery.java b/lucene/join/src/java/org/apache/lucene/search/join/DiversifyingChildrenByteKnnVectorQuery.javaindex b77cf14bb73..877d004d5c7 100644--- a/lucene/join/src/java/org/apache/lucene/search/join/DiversifyingChildrenByteKnnVectorQuery.java+++ b/lucene/join/src/java/org/apache/lucene/search/join/DiversifyingChildrenByteKnnVectorQuery.java@@ -45,13 +45,13 @@ import org.apache.lucene.util.BitSet;* top documents returned are the child document ids and the calculated scores. Here is how to use* this in conjunction with {@link ToParentBlockJoinQuery}.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Query knnQuery = new DiversifyingChildrenByteKnnVectorQuery(fieldName, queryVector, ...);* // Rewrite executes kNN search and collects nearest children docIds and their scores* Query rewrittenKnnQuery = searcher.rewrite(knnQuery);* // Join the scored children docs with their parents and score the parents* Query childrenToParents = new ToParentBlockJoinQuery(rewrittenKnnQuery, parentsFilter, ScoreMode.MAX);- * </pre>+ * </code></pre>*/public class DiversifyingChildrenByteKnnVectorQuery extends KnnByteVectorQuery {private static final TopDocs NO_RESULTS = TopDocsCollector.EMPTY_TOPDOCS;diff --git a/lucene/join/src/java/org/apache/lucene/search/join/DiversifyingChildrenFloatKnnVectorQuery.java b/lucene/join/src/java/org/apache/lucene/search/join/DiversifyingChildrenFloatKnnVectorQuery.javaindex 22f5333102e..e2d6179ec42 100644--- a/lucene/join/src/java/org/apache/lucene/search/join/DiversifyingChildrenFloatKnnVectorQuery.java+++ b/lucene/join/src/java/org/apache/lucene/search/join/DiversifyingChildrenFloatKnnVectorQuery.java@@ -45,13 +45,13 @@ import org.apache.lucene.util.BitSet;* The top documents returned are the child document ids and the calculated scores. Here is how to* use this in conjunction with {@link ToParentBlockJoinQuery}.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Query knnQuery = new DiversifyingChildrenFloatKnnVectorQuery(fieldName, queryVector, ...);* // Rewrite executes kNN search and collects nearest children docIds and their scores* Query rewrittenKnnQuery = searcher.rewrite(knnQuery);* // Join the scored children docs with their parents and score the parents* Query childrenToParents = new ToParentBlockJoinQuery(rewrittenKnnQuery, parentsFilter, ScoreMode.MAX);- * </pre>+ * </code></pre>*/public class DiversifyingChildrenFloatKnnVectorQuery extends KnnFloatVectorQuery {private static final TopDocs NO_RESULTS = TopDocsCollector.EMPTY_TOPDOCS;diff --git a/lucene/join/src/java/org/apache/lucene/search/join/package-info.java b/lucene/join/src/java/org/apache/lucene/search/join/package-info.javaindex 949ca19a58a..72a5c03838b 100644--- a/lucene/join/src/java/org/apache/lucene/search/join/package-info.java+++ b/lucene/join/src/java/org/apache/lucene/search/join/package-info.java@@ -43,7 +43,7 @@* should be used after your main query has been executed. For each hit execute the {@link* org.apache.lucene.search.join.ParentChildrenBlockJoinQuery} query*- * <pre class="prettyprint">+ * <pre><code class="language-java">* TopDocs results = searcher.search(mainQuery, 10);* for (int i = 0; i < results.scoreDocs.length; i++) {* ScoreDoc scoreDoc = results.scoreDocs[i];@@ -54,7 +54,7 @@* TopDocs topChildResults = searcher.search(parentChildrenBlockJoinQuery, 3);* // Process top child hits...* }- * </pre>+ * </code></pre>** <p>To map/join in the opposite direction, use {@link* org.apache.lucene.search.join.ToChildBlockJoinQuery}. This wraps any query matching parent@@ -89,7 +89,7 @@* org.apache.lucene.search.Query, org.apache.lucene.search.IndexSearcher,* org.apache.lucene.search.join.ScoreMode) JoinUtil.createJoinQuery()} :*- * <pre class="prettyprint">+ * <pre><code class="language-java">* String fromField = "from"; // Name of the from field* boolean multipleValuesPerDocument = false; // Set only to true in the case when your fromField has multiple values per document in your index* String toField = "to"; // Name of the to field@@ -99,6 +99,6 @@* Query joinQuery = JoinUtil.createJoinQuery(fromField, multipleValuesPerDocument, toField, fromQuery, fromSearcher, scoreMode);* TopDocs topDocs = toSearcher.search(joinQuery, 10); // Note: toSearcher can be the same as the fromSearcher* // Render topDocs...- * </pre>+ * </code></pre>*/package org.apache.lucene.search.join;diff --git a/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java b/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.javaindex 145a6c8ce6f..62548cb6ca1 100644--- a/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java+++ b/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java@@ -110,9 +110,9 @@ import org.apache.lucene.util.Version;* search), this class targets fulltext search of huge numbers of queries over comparatively small* transient realtime data (prospective search). For example as in*- * <pre class="prettyprint">+ * <pre><code class="language-java">* float score = search(String text, Query query)- * </pre>+ * </code></pre>** <p>Each instance can hold at most one Lucene "document", with a document containing zero or more* "fields", each field having a name and a fulltext value. The fulltext value is tokenized (split@@ -141,7 +141,7 @@ import org.apache.lucene.util.Version;** <p><b>Example Usage</b> <br>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Analyzer analyzer = new SimpleAnalyzer(version);* MemoryIndex index = new MemoryIndex();* index.addField("content", "Readings about Salmons and other select Alaska fishing Manuals", analyzer);@@ -154,11 +154,11 @@ import org.apache.lucene.util.Version;* System.out.println("no match found");* }* System.out.println("indexData=" + index.toString());- * </pre>+ * </code></pre>** <p><b>Example XQuery Usage</b>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* (: An XQuery that finds all books authored by James that have something to do with "salmon fishing manuals", sorted by relevance :)* declare namespace lucene = "java:nux.xom.pool.FullTextUtil";* declare variable $query := "+salmon~ +fish* manual~"; (: any arbitrary Lucene query can go here :)@@ -167,7 +167,7 @@ import org.apache.lucene.util.Version;* let $score := lucene:match($book/abstract, $query)* order by $score descending* return $book- * </pre>+ * </code></pre>** <p><b>Thread safety guarantees</b>*diff --git a/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java b/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.javaindex 4d2bab216b9..773391ccd7d 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java@@ -72,7 +72,7 @@ import org.apache.lucene.util.packed.PackedInts;** <p>Typical usage would look like this:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* LeafReader reader; // reader to reorder* Directory targetDir; // Directory where to write the reordered index*@@ -87,7 +87,7 @@ import org.apache.lucene.util.packed.PackedInts;* w.addIndexes(reorderedReaderView);* }* DirectoryReader reorderedReader = DirectoryReader.open(targetDir);- * </pre>+ * </code></pre>** <p>Note: This is a slow operation that consumes O(maxDoc + numTerms * numThreads) memory.*/diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/ConcurrentQueryLoader.java b/lucene/monitor/src/java/org/apache/lucene/monitor/ConcurrentQueryLoader.javaindex 1a2f8bcce3e..e3101bc8380 100644--- a/lucene/monitor/src/java/org/apache/lucene/monitor/ConcurrentQueryLoader.java+++ b/lucene/monitor/src/java/org/apache/lucene/monitor/ConcurrentQueryLoader.java@@ -39,14 +39,14 @@ import org.apache.lucene.util.NamedThreadFactory;** <p>Use as follows:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* List<QueryError> errors = new ArrayList<>();* try (ConcurrentQueryLoader loader = new ConcurrentQueryLoader(monitor, errors)) {* for (MonitorQuery mq : getQueries()) {* loader.add(mq);* }* }- * </pre>+ * </code></pre>** <p>The Monitor's MonitorQueryParser must be thread-safe for this to work correctly.*/diff --git a/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java b/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.javaindex f6d9cce7567..6fea095939b 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java@@ -87,7 +87,7 @@ import org.apache.lucene.util.PriorityQueue;* <p>This class has lots of options to try to make it efficient and flexible. The simplest possible* usage is as follows. The bold fragment is specific to this class. <br>*- * <pre class="prettyprint">+ * <pre><code class="language-java">* IndexReader ir = ...* IndexSearcher is = ...*@@ -99,7 +99,7 @@ import org.apache.lucene.util.PriorityQueue;* // now the usual iteration thru 'topDocs' - the only thing to watch for is to make sure* // you ignore the doc if it matches your 'target' document, as it should be similar to itself*- * </pre>+ * </code></pre>** <p>Thus you:*diff --git a/lucene/queries/src/java/org/apache/lucene/queries/spans/FieldMaskingSpanQuery.java b/lucene/queries/src/java/org/apache/lucene/queries/spans/FieldMaskingSpanQuery.javaindex 038a2e3742d..554a3669fc1 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/spans/FieldMaskingSpanQuery.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/spans/FieldMaskingSpanQuery.java@@ -50,12 +50,12 @@ import org.apache.lucene.search.ScoreMode;* <p>a SpanNearQuery with a slop of 0 can be applied across two {@link SpanTermQuery} objects as* follows:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* SpanQuery q1 = new SpanTermQuery(new Term("studentfirstname", "james"));* SpanQuery q2 = new SpanTermQuery(new Term("studentsurname", "jones"));* SpanQuery q2m = new FieldMaskingSpanQuery(q2, "studentfirstname");* Query q = new SpanNearQuery(new SpanQuery[]{q1, q2m}, -1, false);- * </pre>+ * </code></pre>** to search for 'studentfirstname:james studentsurname:jones' and find teacherid 1 without matching* teacherid 2 (which has a 'james' in position 0 and 'jones' in position 1).diff --git a/lucene/queries/src/java/org/apache/lucene/queries/spans/SpanMultiTermQueryWrapper.java b/lucene/queries/src/java/org/apache/lucene/queries/spans/SpanMultiTermQueryWrapper.javaindex b4f4b88dc5c..3cb2c640596 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/spans/SpanMultiTermQueryWrapper.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/spans/SpanMultiTermQueryWrapper.java@@ -42,11 +42,11 @@ import org.apache.lucene.search.TopTermsRewrite;** <blockquote>*- * <pre class="prettyprint">{@code+ * <pre><code class="language-java">* WildcardQuery wildcard = new WildcardQuery(new Term("field", "bro?n"));- * SpanQuery spanWildcard = new SpanMultiTermQueryWrapper<WildcardQuery>(wildcard);+ * SpanQuery spanWildcard = new SpanMultiTermQueryWrapper<WildcardQuery>(wildcard);* // do something with spanWildcard, such as use it in a SpanFirstQuery- * }</pre>+ * </code></pre>** </blockquote>*/diff --git a/lucene/queries/src/java/org/apache/lucene/queries/spans/package-info.java b/lucene/queries/src/java/org/apache/lucene/queries/spans/package-info.javaindex 1039b1b72ce..96f554c98d0 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/spans/package-info.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/spans/package-info.java@@ -55,7 +55,7 @@* <p>For example, a span query which matches "John Kerry" within ten words of "George Bush" within* the first 100 words of the document could be constructed with:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* SpanQuery john = new SpanTermQuery(new Term("content", "john"));* SpanQuery kerry = new SpanTermQuery(new Term("content", "kerry"));* SpanQuery george = new SpanTermQuery(new Term("content", "george"));@@ -72,15 +72,15 @@** SpanQuery johnKerryNearGeorgeBushAtStart =* new SpanFirstQuery(johnKerryNearGeorgeBush, 100);- * </pre>+ * </code></pre>** <p>Span queries may be freely intermixed with other Lucene queries. So, for example, the above* query can be restricted to documents which also use the word "iraq" with:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Query query = new BooleanQuery();* query.add(johnKerryNearGeorgeBushAtStart, true, false);* query.add(new TermQuery("content", "iraq"), true, false);- * </pre>+ * </code></pre>*/package org.apache.lucene.queries.spans;diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/MultiFieldQueryParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/MultiFieldQueryParser.javaindex 7e5db828c6d..2a75dfedefa 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/MultiFieldQueryParser.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/MultiFieldQueryParser.java@@ -325,15 +325,13 @@ public class MultiFieldQueryParser extends QueryParser {** <p>Usage:*- * <pre class="prettyprint">- * <code>+ * <pre><code class="language-java">* String[] fields = {"filename", "contents", "description"};* BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,* BooleanClause.Occur.MUST,* BooleanClause.Occur.MUST_NOT};* MultiFieldQueryParser.parse("query", fields, flags, analyzer);- * </code>- * </pre>+ * </code></pre>** <p>The code above would construct a query:*@@ -375,16 +373,14 @@ public class MultiFieldQueryParser extends QueryParser {** <p>Usage:*- * <pre class="prettyprint">- * <code>+ * <pre><code class="language-java">* String[] query = {"query1", "query2", "query3"};* String[] fields = {"filename", "contents", "description"};* BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,* BooleanClause.Occur.MUST,* BooleanClause.Occur.MUST_NOT};* MultiFieldQueryParser.parse(query, fields, flags, analyzer);- * </code>- * </pre>+ * </code></pre>** <p>The code above would construct a query:*diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PathQueryNode.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PathQueryNode.javaindex 620f0d2d680..08dcb924d34 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PathQueryNode.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PathQueryNode.java@@ -29,13 +29,13 @@ import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax.Type** <p>Example how the text parser creates these objects:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* List values = ArrayList();* values.add(new PathQueryNode.QueryText("company", 1, 7));* values.add(new PathQueryNode.QueryText("USA", 9, 12));* values.add(new PathQueryNode.QueryText("California", 14, 23));* QueryNode q = new PathQueryNode(values);- * </pre>+ * </code></pre>*/public class PathQueryNode extends QueryNodeImpl {diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/messages/package-info.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/messages/package-info.javaindex 066e55c1a6a..9f855c7f8fa 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/messages/package-info.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/messages/package-info.java@@ -39,7 +39,7 @@** <p>Lazy loading of Message Strings*- * <pre class="prettyprint">+ * <pre><code class="language-java">* public class MessagesTestBundle extends NLS {** private static final String BUNDLE_NAME = MessagesTestBundle.class.getName();@@ -71,17 +71,17 @@** String message1 = invalidSyntax.getLocalizedMessage();* String message2 = invalidSyntax.getLocalizedMessage(Locale.JAPANESE);- * </pre>+ * </code></pre>** <br>* <br>** <p>Normal loading of Message Strings*- * <pre class="prettyprint">+ * <pre><code class="language-java">* String message1 = NLS.getLocalizedMessage(MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION);* String message2 = NLS.getLocalizedMessage(MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION, Locale.JAPANESE);- * </pre>+ * </code></pre>** <p>The org.apache.lucene.messages.TestNLS junit contains several other examples. The TestNLS java* code is available from the Apache Lucene code repository.diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/QueryParserUtil.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/QueryParserUtil.javaindex de1c814924a..c3d7ac01946 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/QueryParserUtil.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/QueryParserUtil.java@@ -67,15 +67,13 @@ public final class QueryParserUtil {** <p>Usage:*- * <pre class="prettyprint">- * <code>+ * <pre><code class="language-java">* String[] fields = {"filename", "contents", "description"};* BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,* BooleanClause.Occur.MUST,* BooleanClause.Occur.MUST_NOT};* MultiFieldQueryParser.parse("query", fields, flags, analyzer);- * </code>- * </pre>+ * </code></pre>** <p>The code above would construct a query:*@@ -118,16 +116,14 @@ public final class QueryParserUtil {** <p>Usage:*- * <pre class="prettyprint">- * <code>+ * <pre><code class="language-java">* String[] query = {"query1", "query2", "query3"};* String[] fields = {"filename", "contents", "description"};* BooleanClause.Occur[] flags = {BooleanClause.Occur.SHOULD,* BooleanClause.Occur.MUST,* BooleanClause.Occur.MUST_NOT};* MultiFieldQueryParser.parse(query, fields, flags, analyzer);- * </code>- * </pre>+ * </code></pre>** <p>The code above would construct a query:*diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.javaindex f72ba10f4cd..431a7b1a0ca 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.java@@ -50,13 +50,13 @@ import org.apache.lucene.search.Query;** <p>Typical usage, including configuration tweaks:*- * <pre class="prettyprint">{@code+ * <pre><code class="language-java">* StandardQueryParser qpHelper = new StandardQueryParser();* StandardQueryConfigHandler config = qpHelper.getQueryConfigHandler();* config.setAllowLeadingWildcard(true);* config.setAnalyzer(new WhitespaceAnalyzer());* Query query = qpHelper.parse("apache AND lucene", "defaultField");- * }</pre>+ * </code></pre>** <h2>Supported query syntax</h2>*@@ -245,10 +245,10 @@ public class StandardQueryParser extends QueryParserHelper* Constructs a {@link StandardQueryParser} object and sets an {@link Analyzer} to it. The same* as:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* StandardQueryParser qp = new StandardQueryParser();* qp.getQueryConfigHandler().setAnalyzer(analyzer);- * </pre>+ * </code></pre>** @param analyzer the analyzer to be used by this query parser helper*/diff --git a/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java b/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.javaindex 60202bcb10a..643b7469b7e 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java@@ -53,14 +53,14 @@ import org.apache.lucene.util.BytesRefIterator;** <p>Example Usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* SpellChecker spellchecker = new SpellChecker(spellIndexDirectory);* // To index a field of a user index:* spellchecker.indexDictionary(new LuceneDictionary(my_lucene_reader, a_field));* // To index a file containing words:* spellchecker.indexDictionary(new PlainTextDictionary(new File("myfile.txt")));* String[] suggestions = spellchecker.suggestSimilar("misspelt", 5);- * </pre>+ * </code></pre>*/public class SpellChecker implements java.io.Closeable {diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.javaindex 9d8f6c189b6..eb9a6a9059b 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/SuggestStopFilterFactory.java@@ -29,7 +29,7 @@ import org.apache.lucene.util.ResourceLoaderAware;/*** Factory for {@link SuggestStopFilter}.*- * <pre class="prettyprint">+ * <pre><code class="language-xml">* <fieldType name="autosuggest" class="solr.TextField"* positionIncrementGap="100" autoGeneratePhraseQueries="true">* <analyzer>@@ -38,7 +38,7 @@ import org.apache.lucene.util.ResourceLoaderAware;* <filter class="solr.SuggestStopFilterFactory" ignoreCase="true"* words="stopwords.txt" format="wordset"/>* </analyzer>- * </fieldType></pre>+ * </fieldType></code></pre>** <p>All attributes are optional:*diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/CompletionQuery.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/CompletionQuery.javaindex 4a63ad7e794..ebf76a84fb5 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/CompletionQuery.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/CompletionQuery.java@@ -37,10 +37,10 @@ import org.apache.lucene.search.suggest.BitsProducer;* that provides a concrete implementation of this query. Example below shows using this query to* retrieve the top 5 documents.*- * <pre class="prettyprint">+ * <pre><code class="language-java">* SuggestIndexSearcher searcher = new SuggestIndexSearcher(reader);* TopSuggestDocs suggestDocs = searcher.suggest(query, 5);- * </pre>+ * </code></pre>** This query rewrites to an appropriate {@link CompletionQuery} depending on the type ({@link* SuggestField} or {@link ContextSuggestField}) of the field the query is run against.diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/ContextQuery.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/ContextQuery.javaindex b9e8d6213fe..953534c6dea 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/ContextQuery.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/ContextQuery.java@@ -47,12 +47,12 @@ import org.apache.lucene.util.fst.Util;** <p>Example of using a {@link CompletionQuery} with boosted contexts:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* CompletionQuery completionQuery = ...;* ContextQuery query = new ContextQuery(completionQuery);* query.addContext("context1", 2);* query.addContext("context2", 1);- * </pre>+ * </code></pre>** <p>NOTE:*diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/ContextSuggestField.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/ContextSuggestField.javaindex bd25d3ef3af..6f9a9209f50 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/ContextSuggestField.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/ContextSuggestField.java@@ -32,10 +32,10 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;* {@link SuggestField} which additionally takes in a set of contexts. Example usage of adding a* suggestion with contexts is as follows:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* document.add(* new ContextSuggestField(name, "suggestion", Arrays.asList("context1", "context2"), 4));- * </pre>+ * </code></pre>** Use {@link ContextQuery} to boost and/or filter suggestions at query-time. Use {@link* PrefixCompletionQuery}, {@link RegexCompletionQuery} or {@link FuzzyCompletionQuery} if contextdiff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/FuzzyCompletionQuery.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/FuzzyCompletionQuery.javaindex 91bbe98f885..d20db335356 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/FuzzyCompletionQuery.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/FuzzyCompletionQuery.java@@ -46,9 +46,9 @@ import org.apache.lucene.util.automaton.UTF32ToUTF8;* <p>Example usage of querying an analyzed prefix within an edit distance of 1 of 'subg' against a* field 'suggest_field' is as follows:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* CompletionQuery query = new FuzzyCompletionQuery(analyzer, new Term("suggest_field", "subg"));- * </pre>+ * </code></pre>** @lucene.experimental*/diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/PrefixCompletionQuery.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/PrefixCompletionQuery.javaindex 09b1f0b19cd..a66d4cf4120 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/PrefixCompletionQuery.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/PrefixCompletionQuery.java@@ -32,9 +32,9 @@ import org.apache.lucene.search.suggest.BitsProducer;* <p>Example usage of querying an analyzed prefix 'sugg' against a field 'suggest_field' is as* follows:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* CompletionQuery query = new PrefixCompletionQuery(analyzer, new Term("suggest_field", "sugg"));- * </pre>+ * </code></pre>** @lucene.experimental*/diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/RegexCompletionQuery.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/RegexCompletionQuery.javaindex d3cc80623a7..89bcd258f30 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/RegexCompletionQuery.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/RegexCompletionQuery.java@@ -34,9 +34,9 @@ import org.apache.lucene.util.automaton.RegExp;* <p>Example usage of querying a prefix of 'sug' and 'sub' as a regular expression against a* suggest field 'suggest_field':*- * <pre class="prettyprint">+ * <pre><code class="language-java">* CompletionQuery query = new RegexCompletionQuery(new Term("suggest_field", "su[g|b]"));- * </pre>+ * </code></pre>** <p>See {@link RegExp} for the supported regular expression syntax*diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.javaindex a595197ca79..664f1a4c224 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/document/SuggestField.java@@ -38,9 +38,9 @@ import org.apache.lucene.util.BytesRef;** <p>Example indexing usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* document.add(new SuggestField(name, "suggestion", 4));- * </pre>+ * </code></pre>** To perform document suggestions based on the field, use {@link* SuggestIndexSearcher#suggest(CompletionQuery, int, boolean)}diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamFactoryTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamFactoryTestCase.javaindex 5013b1ac895..f9f6b4ab9e3 100644--- a/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamFactoryTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/analysis/BaseTokenStreamFactoryTestCase.java@@ -33,14 +33,14 @@ import org.apache.lucene.util.Version;** <p>Example usage:*- * <pre class="prettyprint">+ * <pre><code class="language-java">* Reader reader = new StringReader("Some Text to Analyze");* reader = charFilterFactory("htmlstrip").create(reader);* TokenStream stream = tokenizerFactory("standard").create(reader);* stream = tokenFilterFactory("lowercase").create(stream);* stream = tokenFilterFactory("asciifolding").create(stream);* assertTokenStreamContents(stream, new String[] { "some", "text", "to", "analyze" });- * </pre>+ * </code></pre>*/public abstract class BaseTokenStreamFactoryTestCase extends BaseTokenStreamTestCase {