using System;
using lucene.document;
using lucene.search;
namespace searchCS
{
///
/// Summary description for Class1.
///
class Class1
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
Console.Write("Enter index location: ");
String path = Console.ReadLine();
MIndexSearcher searcher = new MIndexSearcher(path);
while (true)
{
Console.WriteLine( "Enter query string: " );
String line = Console.ReadLine();
if ( line.Trim().Equals( "" ) )
break;
DateTime str = DateTime.Now;
MQuery query = MQueryParser.Parse(line,"contents");
Console.WriteLine( "Searching for: " + query.ToString("contents") );
MHits hits = searcher.search(query);
Console.WriteLine( "Returned " + hits.Length() + " hits." );
for ( int i=0;i