diff options
author | Florian Zschocke <fzs@users.noreply.github.com> | 2017-03-18 13:37:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-18 13:37:25 +0100 |
commit | 2f74123ca0deaa138609a2126e0fc897167dac48 (patch) | |
tree | 683607a1e3dab5d29e18b77d0c4705632b74e117 /src/main/java/com/gitblit/wicket/pages/LuceneSearchPage.java | |
parent | 71211a8cdfae8d528130cedf3e67d21e130ee8a0 (diff) | |
parent | 63dbdfda13daa78a26f1c2e77b0a4bfd5a35df8d (diff) | |
download | gitblit-2f74123ca0deaa138609a2126e0fc897167dac48.tar.gz gitblit-2f74123ca0deaa138609a2126e0fc897167dac48.zip |
Merge pull request #1168 from lucamilanesio/bump-to-lucene-5.5.2
Bump to Lucene 5.5.2
The new code will create Lucene indices in a new directory named after codec and index version.
This provides for easy and safe up- and downgrades. But it also means that the old indices will
stick around on disk. What this version is missing is a kind of "garbage collection" deleting old, unused
indices when they are no longer needed. That task needs to be done manually currently. We should
at leas at some point provide a script for it.
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/LuceneSearchPage.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/LuceneSearchPage.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/LuceneSearchPage.java b/src/main/java/com/gitblit/wicket/pages/LuceneSearchPage.java index 1d81061e..a97d37a8 100644 --- a/src/main/java/com/gitblit/wicket/pages/LuceneSearchPage.java +++ b/src/main/java/com/gitblit/wicket/pages/LuceneSearchPage.java @@ -27,6 +27,7 @@ import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.form.ListMultipleChoice;
import org.apache.wicket.markup.html.form.TextField;
+import org.apache.wicket.markup.html.link.ExternalLink;
import org.apache.wicket.markup.html.panel.Fragment;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.markup.repeater.data.DataView;
@@ -50,6 +51,8 @@ import com.gitblit.wicket.panels.PagerPanel; public class LuceneSearchPage extends RootPage {
+ private final static String LUCENE_QUERY_SYNTAX_LINK = "https://lucene.apache.org/core/5_5_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description";
+
public LuceneSearchPage() {
super();
setup(null);
@@ -167,6 +170,7 @@ public class LuceneSearchPage extends RootPage { form.add(selections.setEnabled(luceneEnabled));
form.add(new TextField<String>("query", queryModel).setEnabled(luceneEnabled));
form.add(new CheckBox("allrepos", allreposModel));
+ form.add(new ExternalLink("querySyntax", LUCENE_QUERY_SYNTAX_LINK));
add(form.setEnabled(luceneEnabled));
// execute search
|