Updated test program.

master
Nekojimi 3 years ago
parent b3d06669f7
commit 5f301b1f2b
  1. 4
      src/main/java/moe/nekojimi/musicsearcher/Main.java

@ -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);

Loading…
Cancel
Save