Initial revision
[beagle.git] / tools / Query.cs
bloba4332f6e622cc7a18043c007319f76d93affb511
2 using System;
4 using Dewey;
6 class QueryTool {
8 static void Main(String[] args) {
10 IndexDriver id = new IndexDriver();
12 String query = "";
13 foreach (String arg in args) {
14 query = String.Concat(query, " ", arg);
17 IndexItem[] hits = id.QueryBody(query);
19 foreach (IndexItem item in hits) {
20 Console.WriteLine(item.URI);
23 Console.WriteLine("Total hits: " + hits.Length);