public void Search(String indexLoc){
		
		IndexReader ir;
		
		try {
			//Opens the files already indexed as CEDD
			ir = DirectoryReader.open(FSDirectory.open(new File(indexLoc)));
			ImageSearcher searcher = ImageSearcherFactory.createCEDDImageSearcher(10);
		    ImageSearchHits hits = searcher.search(compImg, ir);
		    //For each indexed image
		    for (int i = 0; i < hits.length(); i++) {
		    	//gets distance to image lower is better 
	            String fileName = hits.doc(i).getValues(DocumentBuilder.FIELD_NAME_IDENTIFIER)[0];
	            System.out.println(hits.score(i) + ": \t" + fileName);
	        }
		} catch (IOException e) {
			System.err.println("Could not search CEDD descriptor");
		}
	}