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: 
    <template:put name="content" body="true">
    <%
      if (fullpath == null) {
    %>
        The fulltext index file '<%= fullpath %>' is not accessible.
    <%
      } else if (!query.equals("")) {
        SearcherIF sengine;
        if (topicmap.getStore().getProperty("net.ontopia.infoset.fulltext.impl.rdbms.RDBMSSearcher.type") != null)
          sengine = new net.ontopia.infoset.fulltext.impl.rdbms.RDBMSSearcher(topicmap);
        else
          sengine = new LuceneSearcher(fullpath);
        try {
          SearchResultIF result = null;
          String errmsg = null;
          try {
            result = sengine.search(query);
          } catch (org.apache.lucene.queryParser.TokenMgrError e1) {
            // Note: this error shouldn't really be thrown. It might be
            // fixed in upcoming Lucene releases.
            errmsg = e1.getMessage();
          } catch (IOException e2) {
            errmsg = e2.getMessage();
          }
  
          if (errmsg != null) {
  
negative.code:     net.ontopia.topicmaps.nav2.utils.ContextUtils,
      net.ontopia.topicmaps.nav2.utils.NavigatorUtils,
      net.ontopia.infoset.fulltext.core.*,
      net.ontopia.topicmaps.nav2.plugins.PluginIF"
  %>
  
  <%@ taglib uri='http://psi.ontopia.net/jsp/taglib/template'  prefix='template'  %>
  