From: pkramer@unlinfo.unl.edu (Paul Kramer)
Newsgroups: comp.infosystems.gopher
Subject: Questions about WAIS searching
Date: 7 Jan 1993 03:51:31 GMT
Organization: University of Nebraska--Lincoln	
Distribution: world
NNTP-Posting-Host: unlinfo.unl.edu
Keywords: WAIS, Gopher, Searching


Hello,

I have a problem.  I do a search for an item.  I get a document that has a
line that I don't want in it.  Why is this?  I follow this procedure.

On the menu, I select a search item:

==============================================================================
                    Internet Gopher Information Client v1.1

                            UNLINFO Reference Guide

 -->  1.  Search for a section in the Guide <?>
      2.  .
      3.  First Page.
      4.  Table of Contents.
==============================================================================

I enter my string:

==============================================================================
      4.  Table of Contents.
 +---------------------Search for a section in the Guide----------------------+
 |                                                                            |
 | Words to search for  upload                                                |
 |                                                                            |
 |                                       [Cancel ^G] [Accept - Enter]         |
 |                                                                            |
 +----------------------------------------------------------------------------+
      12. Chapter 6: N)etwork News (Submenu)/
==============================================================================

I view the results:

==============================================================================
                    Internet Gopher Information Client v1.1

                   Search for a section in the Guide: upload

 -->  1.          7.7.1 To upload a file to a PC: (File).
      2.      7.7 To upload files to your microcomputer: (File).
==============================================================================

I read the item:

==============================================================================
This section is from the document '/12direct/03direct/direct_13/file_21'.

     7.7.1 To upload a file to a PC:
               In the following scenario, you are running a communication
               program called Kermit on your PC.  Before you precede with the
               first step, make sure you have selected U)nix from the Session
==============================================================================

My first question, why do I get this line in there:

==============================================================================
This section is from the document '/12direct/03direct/direct_13/file_21'.
==============================================================================

It serves to confuse the reader.  I made the waisindex of these documents
writing the invocation statement like this

     waisindex -d Guide -t text -r "$Data"/[a-z]*

My directory I am indexing simply has text files in it.

On to the next question.  I go ahead and save the found document.  Then I go to
read it using a regular text editor:

==============================================================================
This section is from the document '/12direct/03direct/direct_13/file_21'.

     7.7.1 To ^[[7mupload^[[m a file to a PC:
               In the following scenario, you are running a communication
               program called Kermit on your PC.  Before you precede with the
               first step, make sure you have selected U)nix from the Session
==============================================================================

Why are the escape codes in it?  I know those to be the ones that highlight the
entered search strings.

Sorry for the long letter.  Any help is greatly appreciated.  If you want to
gopher to this site, the name is:

          unlhelp.unl.edu
--
Paul H Kramer					Computing Resource Center
(402) 472-5427     				Room 120, 501 Building
pkramer@unl.edu					University of Nebraska-Lincoln
Newsgroups: comp.infosystems.gopher