public static void main(String[] args) 
	{
		// Validate that one argument is passed
		if (args.length == 0) {
			System.out.println("Please provide a search string to search.");
			System.exit(0);
		}
		else if (args.length > 1) {
			System.out.println("Only one argument should be passed.");
			System.exit(0);
		}
		
		// Search string
		String searchString = args[0];
		
		// Index Directory
		String indexStorageDirectory = LearchCommon.getIndexStorageDirectory();
		
		Directory dir;
		IndexSearcher is = null;
		
		try 
		{
			dir = FSDirectory.open(new File(indexStorageDirectory));
			is = new IndexSearcher(dir);
			QueryParser parser = new QueryParser(
					Version.LUCENE_34, 
					"contents", 
					new StandardAnalyzer(Version.LUCENE_34));
			Query query = parser.parse(searchString);
			TopDocs results = is.search(query, 3000);
			
			for (ScoreDoc scoreDoc : results.scoreDocs) {
				Document doc = is.doc(scoreDoc.doc);
				System.out.println(doc.get("fullpath"));
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ParseException e) {
			e.printStackTrace();
		}
		finally 
		{
			if (is != null) {
				try {
					is.close();
				} catch (IOException e) {}
			}
		}
		
	}