private static void indexFile(IndexWriter writer, File f) {
		//³ԣǵ
		//ļпػ߲ɶд˳
		if (f.isHidden() || !f.exists() || !f.canRead()) {
			return;
		}
		//fileToDocument()
		Document doc = Process.fileToDocument(f);
		try {
			writer.addDocument(doc);
		} catch (CorruptIndexException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
	}