public static void main(String[] args) throws Exception {FSDirectory dir = null;String inputStr = null;String field = null;if (args.length == 3) {dir = FSDirectory.open(Paths.get(args[0]));field = args[1];inputStr = args[2];} else {usage();System.exit(1);}getTermInfo(dir,new Term(field, inputStr));}

public static void Main(string[] args){FSDirectory dir = null;string inputStr = null;string field = null;if (args.Length == 3){dir = FSDirectory.Open(new DirectoryInfo(args[0]));field = args[1];inputStr = args[2];}else{throw new ArgumentException();}TermInfo(dir, new Term(field, inputStr));}
