void addToSearchIndex(String term){
  if (term != null) {
    String normalizedName=SearchIndexUtils.normalize(term);
    searchIndex.add(normalizedName,this);
    String words[]=normalizedName.split(" ");
    if (words.length > 1) {
      for (      String w : words) {
        searchIndex.add(w,this);
      }
    }
    if (po != null) {
      String normalizedTranslatedName=SearchIndexUtils.normalize(po.t(term));
      translatedSearchIndex.add(normalizedTranslatedName,this);
      String translastedWords[]=normalizedName.split(" ");
      if (translastedWords.length > 1) {
        for (        String w : translastedWords) {
          translatedSearchIndex.add(w,this);
        }
      }
    }
  }
}

void addToSearchIndex ( String term ) { if ( term != null ) { String normalizedName = SearchIndexUtils . normalize ( term ) ; searchIndex . add ( normalizedName , this ) ; String words [ ] = normalizedName . split ( " " ) ; if ( words . length > 1 ) { for ( String w : words ) { searchIndex . add ( w , this ) ; } } if ( po != null ) { String normalizedTranslatedName = SearchIndexUtils . normalize ( po . t ( term ) ) ; translatedSearchIndex . add ( normalizedTranslatedName , this ) ; String translastedWords [ ] = normalizedName . split ( " " ) ; if ( translastedWords . length > 1 ) { for ( String w : translastedWords ) { translatedSearchIndex . add ( w , this ) ; } } } } }
add a name , any translation and the individual words to the index . currently we assume that all words are significant
