anchor.diff:         query = net.ontopia.utils.StringUtils.transcodeUTF8(query);
        }
        String tmid = request.getParameter("tm");
  -     String fullpath = application.getRealPath("/") + "WEB-INF/indexes/" + tmid;
  -
  -     TopicMapRepositoryIF rep = NavigatorUtils.getTopicMapRepository(pageContext);
  -     TopicMapReferenceIF ref = rep.getReferenceByKey(tmid);
  -     if (ref instanceof AbstractOntopolyURLReference) {
  -       AbstractOntopolyURLReference oref = (AbstractOntopolyURLReference) ref;
  -       if (oref.getIndexDirectory() != null) {
  -         fullpath = oref.getIndexDirectory() + File.separator + tmid;
  -	   }
  -     }
  -
        TopicMapIF topicmap = (TopicMapIF)ContextUtils.getSingleValue("topicmap", pageContext);
        StringifierIF topic_stringifier = TopicStringifiers.getTopicNameStringifier(Collections.EMPTY_SET);
       %>
  
positive.code:     net.ontopia.topicmaps.nav2.utils.ContextUtils,
      net.ontopia.topicmaps.nav2.utils.NavigatorUtils,
      net.ontopia.infoset.fulltext.core.*,
      net.ontopia.topicmaps.nav2.plugins.PluginIF,
      net.ontopia.infoset.fulltext.impl.lucene.*"
  %>
  
  <%@ taglib uri='http://psi.ontopia.net/jsp/taglib/template'  prefix='template'  %>
  
negative.code: 
    <template:put name="content" body="true">
    <%
      if (!query.equals("")) {
        SearcherIF sengine = (SearcherIF) topicmap.getIndex(SearcherIF.class.getName());
        try {
          SearchResultIF result = null;
          String errmsg = null;
          try {
            result = sengine.search(query);
          } catch (Exception e1) {
            // Note: this error shouldn't really be thrown. It might be
            // fixed in upcoming Lucene releases.
            errmsg = e1.getMessage();
          }
  
          if (errmsg != null) {
  