private boolean hasSameIndices(ObjectRepresentation toRepresentation)
	{
		Set<String>fromIndices = getIndexNames();
		Set<String>toIndices = toRepresentation.getIndexNames();
		//check that no index has been removed
		for(String from:fromIndices)
		{
			if(!toIndices.contains(from))
			{
				return false;
			}
		}
		//check that no index has been added
		for(String to:toIndices)
		{
			if(!fromIndices.contains(to))
			{
				return false;
			}
		}
		//check that no index has had a field removed or added
		for(String from:fromIndices)
		{
			//get the from-fields
			List<String> fromFields = getFieldNamesInIndex(from);
			//get the to-fields
			List<String> toFields = toRepresentation.getFieldNamesInIndex(from);
			//check that no index has had a field removed
			for(String field:fromFields)
			{
				if(!toFields.contains(field))
				{
					return true;
				}
			}
			//check that no index has had a field added
			for(String field:toFields)
			{
				if(!fromFields.contains(field))
				{
					return true;
				}
			}
		}
		
		
		return true;
	}