public void Search(String IndexFile){
		
		IndexReader ir;
		
		try {
			//Opens the file already indexed as FCTH
			ir = DirectoryReader.open(FSDirectory.open(new File(IndexFile)));
			ImageSearcher searcher = ImageSearcherFactory.createFCTHImageSearcher(10);
			//TODO this returns a sorted list of images that are 'similar' to the image
			//What exactly does similar mena in this regard. so some investigating with real data, count numbers etc
			//could be an actual issue
		    ImageSearchHits hits = searcher.search(compImg, ir);
		    //For each indexed image
		    for (int i = 0; i < hits.length(); i++) {
		    	//gets the distance to image from indexed images, 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) {
			e.printStackTrace();
		}
       
	}