File: field.html

package info (click to toggle)
wn 2.0.5-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,208 kB
  • ctags: 1,499
  • sloc: ansic: 14,439; sh: 2,430; perl: 1,360; makefile: 291
file content (121 lines) | stat: -rw-r--r-- 3,560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
  <head>
    <title>User Defined Fields on the WN server</title>

    <link rev="made" href="mailto:john@math.nwu.edu">

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <meta http-equiv="last-modified" content="Fri, 09 Oct 1998 18:18:09 GMT">
    <meta http-equiv="keywords" content="WN fields">
  </head>

  <body bgcolor="#FFFFFF">
    <p>
      <a href="http://hopf.math.nwu.edu/"><img
        src="images/powered.jpg"
        border="0"
        width="190"
        height="41"
        align="right"
        alt="WN home page"
      ></a>
    </p>

    <strong>Version 2.0.3</strong>

    <br>

    <!-- pnuts --> <a href="parse.html">[Previous]</a> <a href="filter.html">[Next]</a> <a href="manual.html">[Up]</a> <a href="manual.html">[Top]</a> <a href="dosearch.html">[Search]</a> <a href="docindex.html">[Index]</a>



    <br clear="right">

    <hr size="4">
    <!-- #start -->

    <h2 align="center">User Defined Fields on the <em>WN</em> Server</h2>
    <hr size="4">

    <p>
      The maintainer may associate an arbitrary field value to any document in
      the <em>WN</em> hierarchy.  It is then possible to do <a
      href="search.html#fielded">fielded searches</a>.
    </p>

    <p>
      A line like:
    </p>

    <blockquote>
      <code>
        <a href="appendixB.html#fdir.field">Field3=</a>any text here
      </code>
    </blockquote>

    <p>
      in the <a href="index_desc.html#index"><code>index</code></a> file
      associates the text "<code>any&nbsp;text&nbsp;here</code>" with user
      defined <code>Field3</code>.  The '<code>3</code>' in this example can be
      replaced with any number from 0 to 19.  A fielded search is invoked by a
      URL like:
    </p>

    <blockquote>
      <code>
        http://host/dir/search=field3
      </code>
    </blockquote>

    <p>
      In addition to fielded searches the user supplied fields can be inserted
      in documents.  This is done by including a field marker such as:
    </p>

    <blockquote>
      <code>
        &lt;!--&nbsp;#field3&nbsp;--&gt;
      </code>
    </blockquote>

    <p>
      in the file at the point where the value should be inserted.  If there is
      no <code><a href="appendixB.html#fdir.wrappers">Wrappers=</a></code> or
      <code><a href="appendixB.html#fdir.includes">Includes=</a></code> line in
      the <a href="index_desc.html#index"><code>index</code></a> file for this
      entry then there must be a line like:
    </p>

    <blockquote>
      <code>
        <a href="appendixB.html#fdir.attributes.parse">Attributes=parse</a>
      </code>
    </blockquote>

    <p>
      so the server knows it is to parse the file to look for the marker.  See
      the section "<a href="appendixB.html#fdir.attributes">Set File
      Attributes</a>" in this guide for more details.
    </p>



    <!-- #end -->
    <hr size="4">

    <address>
      <em>WN</em> version 2.0.3
      <br>
      Copyright &copy; 1998 <a href="mailto:john@math.nwu.edu">John Franks
      &lt;john@math.nwu.edu&gt;</a>
      <br>
      licensed under the <a href="http://www.opencontent.org/opl.html">
      OpenContent Public License</a>
      <br>
      last-modified: Fri, 09 Oct 1998 18:18:09 GMT
    </address>

    <!-- pnuts --> <a href="parse.html">[Previous]</a> <a href="filter.html">[Next]</a> <a href="manual.html">[Up]</a> <a href="manual.html">[Top]</a> <a href="dosearch.html">[Search]</a> <a href="docindex.html">[Index]</a>
  </body>
</html>