public static void parse(Vector<FileIndex> fileIndex, Vector<String> pages){
		//parse a page and insert into Postings;
		for(int i = 0; i<pages.size(); i++)
		{
			StringBuilder strbuilder=new StringBuilder();
			Parser.parseDoc(fileIndex.elementAt(i).url,pages.elementAt(i),strbuilder);
			//write parse result into files
			if(strbuilder.length() == 0)
			{
				continue;
			}
			String[] lines=strbuilder.toString().split("\n");
			for (String line:lines){
				String[] word=line.split(" ");
				if(word.length == 2)
				{
					index.inSertIntoPostingMap(word[0], document_ID,WordMap.contextWeight(word[1]));//insert into 
				}
				//add to lexicon fileIndex and Inverted fileIndex
			}
			
			//add url and document length to url index, every document once
			index.urlDocMap.put(document_ID, new UrlDocLen(fileIndex.elementAt(i).url, fileIndex.elementAt(i).doc_length));
			document_ID++;
		}//end for pages
	}