public ArrayList<Integer> foundInChapters(String term) {
		ArrayList<Integer> foundIn = new ArrayList<>();
		PageRange pagesFoundOn = index.query(term).getExtendedRange();
		ArrayList<Integer> pages = pagesFoundOn.getRanges();
		System.out.println(pages.toString());
		for(int i = 0;i < toc.getChapters().size();i++){
			int start = getChapter(i).getStart();
			int end = getChapter(i).getEnd();
			for(int j = 0;j < pages.size();j++){
				if(pages.get(j) >= start && pages.get(j) <= end){
					foundIn.add(i);
					break;
				}
			}
		}
		System.out.println(foundIn);
		return foundIn;
	}