home *** CD-ROM | disk | FTP | other *** search
/ A Beginner's Guide to the Internet / INTERNET.ISO / text / faqs / how-to-q.txt < prev    next >
Encoding:
Text File  |  1996-05-06  |  11.7 KB  |  281 lines

  1.  
  2. HOW TO COMPOSE VERONICA QUERIES - June 23, 1994: Steven Foster 
  3. This document is an introduction to using veronica.  278 lines.
  4. Copyright (C) Steven Foster 1994.
  5. gopher://veronica.scs.unr.edu:70/00/veronica/how-to-query-veronica
  6.  
  7. veronica:  very easy rodent-oriented net-wide index of computerized archives.
  8.  
  9. Contents:
  10.  
  11.     Introduction.
  12.     Types of Searches.
  13.     Multiple Servers.
  14.     Pre-defined Search Types.
  15.     Entering a Query.
  16.     Default Maximum Items.
  17.     Query Logic, Boolean Searching, and Wildcards.
  18.     Finding Resources of a Certain Gopher "Type".
  19.     Summary of Options.
  20.     Examples.
  21.  
  22. INTRODUCTION
  23.  veronica is an index and retrieval system which can locate items on 
  24.  most of the gopher servers in the Internet.  The veronica index contains
  25.  about 10 million items from approximately 5500 gopher servers (June 1994).
  26.  
  27.  veronica finds resources by searching for WORDS in TITLES.  It does not do a
  28.  full-text search of the contents of the resources; it finds resources 
  29.  whose titles contain your specified search word(s).  The "title" is the title
  30.  of the resource as it appears on the menu of its HOME gopher server.
  31.  
  32.  veronica is used with a gopher client.  You will choose "veronica" from the
  33.  menu of some gopher server, and enter a set of query words or special 
  34.  directives.  When the search is finished, the results will be presented as 
  35.  a normal gopher menu.  You may browse the discovered resources in this menu, 
  36.  as you would use any other gopher menu.
  37.  
  38. TYPES OF SEARCHES 
  39.  Most veronica-access menus offer several types of searches.  In addition to
  40.  these pre-defined types, you can compose veronica queries using a number of
  41.  special options to focus your search more precisely.  You should use these 
  42.  options when appropriate, as they will make it much easier to locate resources.
  43.  (See sections below for PRE-DEFINED SEARCH TYPES and FINDING RESOURCES OF A
  44.  CERTAIN GOPHER TYPE )
  45.  
  46. MULTIPLE SERVERS
  47.  Many veronica-access menus offer a list of various veronica server sites; 
  48.  in this case you will have to choose a server site to use.  Ideally, it
  49.  does not matter which server you use, as all servers will give the same 
  50.  answers.  In practice, the servers do not all update the index at the same
  51.  time, so there will be some difference in the results.  Some servers will 
  52.  return an answer faster than others, depending on load and network traffic.
  53.  
  54.  Many other veronica-access menus offer a single entry rather than a list
  55.  of servers.  In this case, simply click on the search type desired, and 
  56.  submit your query in the dialog box.
  57.  
  58.  
  59. PRE-DEFINED SEARCH TYPES:
  60.   Most access menus offer two predefined search types:
  61.  
  62.  > Search GopherSpace by keywords in Titles
  63.  
  64.     This search will find ALL TYPES of resources whose titles contain your 
  65.     specified search words.  The resources may be of any Gopher data TYPE;
  66.     e.g. ascii documents, gopher directories, image files, binary files, etc.
  67.  
  68.  > Search Gopher DIRECTORIES ONLY for keywords in Titles.
  69.  
  70.     This search will find only Gopher DIRECTORIES whose titles contain the
  71.     specified words.  This search can be very useful to find only major 
  72.     holdings of information which relate to your query.  After veronica finds
  73.     the gopher directories, you can open any of them to see the contents in 
  74.     more detail.  This is especially useful to avoid being overwhelmed by 
  75.     too many results if you are searching with a common word such as
  76.     "women" or "internet"!
  77.  
  78.  You can define your own query, specifying only certain TYPES of gopher
  79.  resources, by using the -t option.  For instance, you could search for ONLY
  80.  image files by including the phrase "-tI" in your query.  See below
  81.  for more about the -t option.
  82.  
  83. ENTERING A QUERY
  84.  When you select a query type, your gopher client will present a dialog
  85.  box.  Enter your query words.  The search is NOT case-sensitive.  
  86.  
  87.  You may get better results by entering a multi-word query rather than a single
  88.  word.  Multiple word queries will find only those items whose titles contain 
  89.  ALL of the specified words.  For instance, "women" will find 5223 items;  but 
  90.  "league women voters" will find 126 items.  Be as specific as you can.
  91.  
  92.  It also helps to be imaginative. Think about how gophers are organized; 
  93.  the information you want may not be found under "league of women voters", 
  94.  but under the more general heading of "politics".
  95.  
  96.  A multiple-word query does not require that the words be adjacent in the
  97.  title, nor that they appear in any particular order.  So, "marx brothers" 
  98.  will locate the same items as "brothers marx".
  99.  
  100.  There is more information on composing queries below.
  101.  
  102. DEFAULT MAXIMUM ITEMS and the "-m" option.
  103.  By default, the veronica servers will deliver only the first 200 items which
  104.  match your query.  You can request any number of items by including the
  105.  "-mX" command phrase in your query.  X is the number of items you wish.
  106.  If X is omitted ( "-m" ), there is no limit to the number of items delivered.
  107.  For instance:
  108.  
  109.     "women"  will provide 200 items.
  110.     "women -m1000" will provide 1000 items.
  111.     "women -m" will provide all available matching items.
  112.  
  113.  You may find a message at the end of your veronica results menu, like
  114.  "*** There are  576 more items matching your query".  If you are not 
  115.  satisfied with the 200 items you got, you can resubmit the query, requesting 
  116.  more items with "-m".
  117.  
  118.  Note that some veronica servers will provide more than 200 items by default.
  119.  
  120.  
  121. QUERY LOGIC, BOOLEAN SEARCHING, and WILDCARDS.
  122.  The search understands the logical operators AND, NOT, OR, (, and ).
  123.  
  124.  If you use a simple multiple-word query, it is the same as using AND between
  125.  the words.  For instance "acid rain" is the same query as "rain and acid".
  126.  "League women voters" is the same as "league and women and voters".
  127.  
  128.  As noted above, we recommend using AND to create a tightly-focused query.
  129.  
  130.  We recommend that the word "OR" be used VERY RARELY.  Usually, OR will
  131.  just produce thousands of hit-or-miss results.  OR is best used in conjunction
  132.  with other operators, as "rice and (fried or curr*) ".
  133.   
  134.  An asterisk ("*") at the TRAILING END of a query word will match anything.
  135.  Use it as a limited form of wildcard search.  The asterisk character may
  136.  be used ONLY at the end of words; the search will fail if a "*" is placed
  137.  within a word or at the beginning of a word.
  138.  
  139.  Search words must be at least two characters long.  Shorter words will be
  140.  ignored.
  141.  
  142.  Interpretation of the query starts from the right-hand, interpreting operators
  143.  as encountered.  If in doubt about order of interpretation, USE PARENTHESES!
  144.  The veronica server at University of Koeln ( june94 ) interprets the query
  145.  logic from left-to-right.
  146.  
  147. FINDING RESOURCES OF A CERTAIN GOPHER "TYPE": the "-t" flag.
  148.  You can use veronica to find resources of (only) a specified gopher type.
  149.  You specify the type(s) of interest by adding the "-tX" option phrase to
  150.  your query.
  151.  
  152.  The -t flag may appear anywhere in the search specification.  For example:
  153.  
  154.     "women -t1" 
  155.     "-t1 women" 
  156.  Either of these search phrases will find resources with the word "women" in
  157.  the title.  All the resources will be gopher DIRECTORY items ( type 1 ).
  158.  
  159.  There must NOT be any spaces between the -t and the type specifier.
  160.  
  161.  You may specify MORE THAN ONE type in the query.  DO NOT use separate -t
  162.  options to do this; simply put all the types together (with no spaces) 
  163.  after the -t.  For example:
  164.  
  165.     "-tgs  mac"  returns a menu of GIF images or SOUNDS with the word
  166.                  "mac" in titles.
  167.  
  168.  Official gopher types, from the Gopher Protocol Document, are:
  169.  
  170.           0  -- Text File
  171.           1  -- Directory
  172.           2  -- CSO name server
  173.           4  -- Mac HQX file.
  174.           5  -- PC binary
  175.           7  -- Full Text Index (Gopher menu)
  176.           8  -- Telnet Session
  177.           9  -- Binary File
  178.           s  -- Sound
  179.           e  -- Event    (not in 2.06)
  180.           I  -- Image (other than GIF)
  181.           M  -- MIME multipart/mixed message
  182.           T  -- TN3270 Session
  183.           c  -- Calendar (not in 2.06)
  184.           g  -- GIF image
  185.           h  -- HTML, HyperText Markup Language
  186.  
  187. SUMMARY OF THE OPTIONS
  188.  
  189.     -t    limit the search to items of specified data type(s).
  190.     -m    specify maximum number of items to find.
  191.     -l  create a file of links for the discovered resources.  The file
  192.      will be displayed as the first item on the veronica results menu.
  193.      You can then retrieve that file and include the links in menus 
  194.      which you may be building.  Not all veronica servers support the
  195.      "-l" option.
  196.  
  197.  Just include the options in the search query.  They will work
  198.  with any gopher client.  You can put options before the query words,
  199.  after the query words, or even between query words.
  200.  
  201.  DO NOT cluster more than one option behind a single hyphen; instead,
  202.  use a separate hyphen for each separate option.  For example:  
  203.  
  204.          gopher -t1s  -m400
  205.  
  206.  This example requests 400 items containing the word "gopher", and
  207.  specifies that we want only items whose type is "directory" or
  208.  "sound".
  209.  
  210. EXAMPLES (from Fred Barrie):  
  211.  
  212.  Simple examples:
  213.  
  214.   >  Search on the word "internet".  This will return a menu list of
  215.      (at most) 200 records that have the word internet in the title field.  
  216.          Just type-
  217.                          internet
  218.  
  219.   >  Search on the word "internet", but specify 1000 items instead of
  220.      the default 200.
  221.          type-
  222.                          internet -m1000
  223.          or
  224.                          -m1000 internet
  225.  
  226.   >  Search on the words "chicken" and "wine".  This returns a menu 
  227.      list of (at most) 200 records that have _BOTH_ "chicken" and "wine".  
  228.          Type-
  229.                          chicken and wine
  230.  
  231.   >  Search for the keywords "chicken" or "wine", specifying directories only. 
  232.      This returns a menu list of resources that have _EITHER_ chicken or wine,
  233.      and which are GOPHER DIRECTORY entries.  Type-
  234.  
  235.                          chicken or wine -t1
  236.      or
  237.                          -t1 chicken or wine 
  238.  
  239.  
  240.   Examples for the operator "NOT":
  241.  
  242.   >  To use the operator "NOT" in a query:
  243.  
  244.              chicken not wine    (will search for all titles with the 
  245.                                   word chicken _BUT NOT_ the word
  246.                                   wine)
  247.  
  248.              chinese food not msg     (will search for our health nuts
  249.                                       all the titles with the words
  250.                                       chinese _AND_ food _BUT NOT_
  251.                                       msg.  Remember there is an
  252.                                       implied _AND_ between two words)
  253.  
  254.   Examples for parenthesis queries:
  255.  
  256.              chicken (wine or curry)  -m      (will list ALL titles with the
  257.                                                  words chicken _AND_ either
  258.                                                  wine _OR_ curry.  -m asks
  259.                                                  for ALL records.)
  260.  
  261.              (chicken or wine) not (msg or growing)
  262.                                      (will search for titles with the
  263.                                       words chicken _OR_ wine _BUT NOT_
  264.                                       msg _OR_ growing)
  265.  
  266.  Examples for word stemming:
  267.  
  268.      The metacharacter "*" matches anything at the TRAILING END of a 
  269.      search word.   
  270.  
  271.              chicken*            (will search for all titles with the
  272.                                   word chicken, chickens, ...)
  273.  
  274.              chicken* or wine*    (will search for all titles with the
  275.                                   word chicken, chickens, ... _OR_ 
  276.                                   wine, wines, wineries, ...)
  277.  
  278.  
  279.  
  280. .
  281.