generated from Nekojimi/JavaMavenTemplate
Updated test program.
This commit is contained in:
parent
b3d06669f7
commit
5f301b1f2b
|
@ -54,13 +54,13 @@ public class Main
|
|||
}
|
||||
|
||||
System.out.println(searchers);
|
||||
String query = "Test";
|
||||
String query = "everybodys circulation";
|
||||
for (Searcher searcher: searchers.values())
|
||||
{
|
||||
System.out.println("Searching " + searcher.getName() + " for " + query);
|
||||
try
|
||||
{
|
||||
List<Result> results = searcher.searchAndWait(query);
|
||||
List<Result> results = searcher.searchAndWait(Query.fullText(query));
|
||||
for (Result result: results)
|
||||
{
|
||||
System.out.println("\t" + result);
|
||||
|
|
Loading…
Reference in New Issue