Compare commits

...

2 Commits

Author SHA1 Message Date
Nekojimi 5f301b1f2b Updated test program. 2021-10-01 13:02:48 +01:00
Nekojimi b3d06669f7 Updated gitignore to ignore secrets file. 2021-10-01 13:02:07 +01:00
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -46,3 +46,5 @@ dist/
nbdist/ nbdist/
.nb-gradle/ .nb-gradle/
# Secrets!
secrets.yml

View File

@ -54,13 +54,13 @@ public class Main
} }
System.out.println(searchers); System.out.println(searchers);
String query = "Test"; String query = "everybodys circulation";
for (Searcher searcher: searchers.values()) for (Searcher searcher: searchers.values())
{ {
System.out.println("Searching " + searcher.getName() + " for " + query); System.out.println("Searching " + searcher.getName() + " for " + query);
try try
{ {
List<Result> results = searcher.searchAndWait(query); List<Result> results = searcher.searchAndWait(Query.fullText(query));
for (Result result: results) for (Result result: results)
{ {
System.out.println("\t" + result); System.out.println("\t" + result);