public int searchModels(String family, String title){
    HashMap model_map = family_models_map.get(family);
    if (model_map==null) return -1;
    
    Iterator<Map.Entry<String,Integer>> it = model_map.entrySet().iterator();
    while(it.hasNext()){
        Map.Entry<String,Integer> entry = it.next();
        String model = entry.getKey();
        if(matchWord(model,title)){
          return entry.getValue();
        }        
    }
    return -1;
  }