提交 8a7312b8 authored 作者: Thomas Mueller's avatar Thomas Mueller

Build-in documentation search: improved results if searching for multiple words.

上级 b590f38e
......@@ -26,7 +26,7 @@ import org.h2.util.StringUtils;
public class Indexer {
private static final int MIN_WORD_SIZE = 3;
private static final int MAX_RELATIONS = 20;
private static final int MAX_RELATIONS = 30;
private static final String VERY_COMMON =
";the;be;to;of;and;a;in;that;have;i;it;for;not;on;with;he;as;you;do;at;" +
"this;but;his;by;from;they;we;say;her;she;or;an;will;my;one;all;would;" +
......@@ -72,7 +72,8 @@ public class Indexer {
}
}
File file = new File(dir);
setNoIndex("index.html", "html/header.html", "html/search.html", "html/frame.html",
setNoIndex("index.html", "html/header.html", "html/search.html",
"html/frame.html", "html/fragments.html",
"html/sourceError.html", "html/source.html", "html/mainWeb.html",
"javadoc/index.html", "javadoc/classes.html", "javadoc/allclasses-frame.html",
"javadoc/allclasses-noframe.html", "javadoc/constant-values.html", "javadoc/overview-frame.html",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论