public static void createForwardIndex(Integer docId, String text) {
		
		++totalDocs;
		Map<String, ArrayList<Integer> > wordMap = null;
		
		ArrayList<String> wordList = new ArrayList<String>();
		
		//Map<String, ArrayList<Integer> > newWordMap = new HashMap<String, ArrayList<Integer>>();
		try{
			wordMap = WordSegmentation.segmentation(text);
		}
		catch(Exception e) {
			System.out.println("segmentation failure!");
			e.printStackTrace();
		}
		
		int wordCount = 0;
		List<String> stopList = new ArrayList<String>();
		for(Map.Entry<String, ArrayList<Integer>> entry: wordMap.entrySet()) {
    		String key = entry.getKey();
    		ArrayList<Integer> offsetList = entry.getValue();
    		
    		if(stopWordSet.contains(key)) {
    			stopList.add(key);
    		}
    		else {
    			wordCount += offsetList.size();
    			wordList.add(key);
    		}
    	}
		
		globalForwordIndex.put(docId, wordList);
		
		for(String stopWord: stopList) {
			wordMap.remove(stopWord);
		}
		
		IndexDAO.addForwardIndex(docId, wordMap, wordCount);
		
	}