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