/usr/share/doc/swish-e/html/swish-3.0.html is in swish-e 2.4.7-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
***** GENERATED FILE *** DO NOT EDIT DIRECTLY - any changes will be LOST ******
swish-e.org mockup based on http://www.oswd.org/design/1773/prosimii/index2.html
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="./swish.css" media="screen" title="swish css" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="Last" href="./filter.html" />
<link rel="Prev" href="./swish-bugs.html" />
<link rel="Up" href="./index.html" />
<link rel="Next" href="./swish-library.html" />
<link rel="Start" href="./index.html" />
<link rel="First" href="./readme.html" />
<title>Swish-e :: Proposed changes for Swish-e 3.0</title>
</head>
<body>
<!-- noindex -->
<!-- For non-visual user agents: -->
<div id="top"><a href="#main-copy" class="doNotDisplay doNotPrint">Skip to main content.</a></div>
<!-- ##### Header ##### -->
<div id="header">
<div class="superHeader">
<span>Related Sites:</span>
<a href="http://swishewiki.org/" title="swishe wiki">swish-e wiki</a> |
<a href="http://www.xmlsoft.org/" title="libxml2 home page">libxml2</a> |
<a href="http://www.zlib.net/" title="zlib home page">zlib</a> |
<a href="http://www.foolabs.com/xpdf/" title="xpdf home page">xpdf</a> |
<a href="http://dev.swish-e.org/browser" title="browse source code">Subversion</a>
</div>
<div class="midHeader">
<h1 class="headerTitle" lang="la">Swish-e</h1>
<div class="headerSubTitle">Simple Web Indexing System for Humans - Enhanced</div>
<br class="doNotDisplay doNotPrint" />
<div class="headerLinks">
<span class="doNotDisplay">Tools:</span>
<!-- don't know what platform, so link to download page -->
<a href="http://swish-e.org/download/index.html">download latest version</a>
</div>
</div>
</div>
<!-- index -->
<!-- noindex -->
<div class="subHeader">
<table width='100%'>
<tr>
<td align='left'>
<a href="http://swish-e.org/index.html">home</a> |
<a href="http://swish-e.org/support.html">support</a> |
<a href="http://swish-e.org/download/index.html">download</a>
</td>
<td align='right'>
<form method="get"
action="http://swish-e.org/search/index.html"
enctype="application/x-www-form-urlencoded"
class="srchform">
<label for="searchfield">Search for</label>
<input maxlength="200" value="" id="searchfield" size="30" name="query" type="text" alt="Search input field" />
<input value="search swish-e.org" name="submit" type="submit" class='button' />
</form>
</td>
</tr>
</table>
</div>
<!-- index -->
<div id="body-area" class="clearfix">
<div id="content-area">
<div id="main-copy">
<h1>Proposed changes for Swish-e 3.0</h1>
Swish-e version 2.4.7
<!-- noindex -->
<h2>Table of Contents</h2>
<div class="toc">
<ul class="toc">
<li>
<a href="#overview">OVERVIEW</a>
</li>
<li>
<a href="#utf_8_support">UTF-8 support</a>
</li>
<li>
<a href="#drop_expat_based_parsers_require_libxml2">drop expat-based parsers, require libxml2</a>
</li>
<li>
<a href="#support_incremental_indexing">Support Incremental Indexing</a>
</li>
<li>
<a href="#split_code_into_search_and_indexing_code">Split code into Search and Indexing code</a>
</li>
<li>
<a href="#switch_to_content_types">Switch to Content-Types</a>
</li>
<li>
<a href="#enhanced_the_propertynames_directive">Enhanced the PropertyNames directive</a>
</li>
<li>
<a href="#apache_xml_style_configuration">Apache/XML style configuration</a>
</li>
<li>
<a href="#document_info">Document Info</a>
</li>
</ul>
</div>
<!-- index -->
<hr />
<div class="sub-section">
<h1><a name="overview"></a>OVERVIEW</h1>
<p>This pages is intended to give users of Swish-e an idea of the changes
to come, to foster discussion of the direction of Swish-e, and a place
where developers can map out new ideas.</p>
<p>None of this is written in stone. Any of the developers can write their
ideas in this document, but that doesn't mean it will actually happen ;).</p>
</div>
<div class="sub-section">
<h1><a name="utf_8_support"></a>UTF-8 support</h1>
<p>Supporting Unicode basically requires a full re-write of all the code.</p>
</div>
<div class="sub-section">
<h1><a name="drop_expat_based_parsers_require_libxml2"></a>drop expat-based parsers, require libxml2</h1>
<p>This might simplify the code somewhat as well.</p>
</div>
<div class="sub-section">
<h1><a name="support_incremental_indexing"></a>Support Incremental Indexing</h1>
<p>The Swish-e index structure currently makes it difficult to do incremental
indexing, range limiting, and presents limits to indexing due to memory
requirements. A database may solve some of these issues, at possibly
a cost of performance.</p>
<p>Swish-e has been linked with Berkeley DB. Although much slower in
indexing, this may allow incremental indexing. Currently, the idea is
to offer both database backends.</p>
<p>UPDATE: Mon Nov 8 15:07:59 CST 2004 (karman@cray.com)</p>
<p>This feature is in the 2.5 branch already. What kind of requirements do we
have to label it 'stable'?</p>
</div>
<div class="sub-section">
<h1><a name="split_code_into_search_and_indexing_code"></a>Split code into Search and Indexing code</h1>
<p>There may be a small benefit from creating a smaller search-only program.
CGI scripts may be faster, and the code would be smaller for those that
want to embed Swish-e in to other applications.</p>
<p>Currently, linking libswish-e into a program adds about 720K. Not real
significant, but it could be if a number of processes are running with
Swish-e. Another option is to build libswish-e as a shared library.</p>
<p>UPDATE: Mon Nov 8 15:09:12 CST 2004 (karman@cray.com)</p>
<p>This seems done in the 2.4 release. Is that true?</p>
</div>
<div class="sub-section">
<h1><a name="switch_to_content_types"></a>Switch to Content-Types</h1>
<p>Moseley: Dec 28, 2000</p>
<p>I'm wondering if it might be smart to switch from the current "Document
Types" to Content-Types. Currently, Swish-e know how to parse three
types of documents TXT, HTML, and XML. There's currently two new
configuration directives DefaultContents and IndexContents that map
file extensions to one of the three types. This doesn't really work
when spidering since it's the content-type that describes the document
and not the file extension.</p>
<p>It's an issue that can wait, but I'm concerned about backward compatiblity
before people start using the IndexContents and DefaultContents config
directives and then we change to content-type in the future. There's
probably not that many people using those, but it might be work noting
in the documentation that it will change, if we agree.</p>
<p>The main reason to use content-type instead is for http processing where
you can't depend on the file extension to determine the document type,
so with http we have to use content-type to determine how to deal with
the file. This is somewhat moot, as mapping can now be done with -S prog.</p>
<p>I'd propose that Swish-e uses a mime.types file to map from extension
to content-type. You could add or override mappings in the config file:</p>
<pre class="pre-section"> AddType text/plain .doc .log
DefaultType text/html # like DefaultContents currently</pre>
<p>The file source "plug-in" (whatever that ends up being) would return a
content-type, but if not returned then Swish-e would map the type from
the file name using the mime.types file or any AddType directives.</p>
<p>Again, internally Swish-e only knows about text/[TXT|HTML|XML], so there
should be a way to map other types, otherwise Swish-e might ignore
the file. We could continue to use the three type names or switch
completely to content-types.</p>
<p>For example, if we continued to use [TXT|HTML|XML]</p>
<pre class="pre-section"> MapType TXT text/directory text/logfile
MapType HTML text/html</pre>
<p>Or maybe just extend the current directives</p>
<pre class="pre-section"> IndexContents HTML .htm .html text/html</pre>
<p>Where the content-type would have precedence over the file extensions. </p>
<p>This would tell Swish-e that those types are handled by those internal
handlers.</p>
<p>Then as I've mentioned before, you might specify filters as such</p>
<pre class="pre-section"> FilterDocument application/msword /path/to/word-to-text</pre>
<p>And word-to-text would convert to text and return one of the three
content-types that Swish-e knows how to parse, or a different content
type if were to chain filters.</p>
</div>
<div class="sub-section">
<h1><a name="enhanced_the_propertynames_directive"></a>Enhanced the PropertyNames directive</h1>
<p>Moseley: Updated Jan 13, 2001</p>
<p>If the PropertyNames directive was enhanced to be able to limit the number
of characters stored, optionally extract text from HTML, and was able
to define what type of docs (text, XML, HTML) it applied to, then the
existing PropertyNames feature would work like the new StoreDescription
feature but be useful for more than just one use.</p>
<p>I'm not clear how to enhance the syntax of Properties and/or Metanames,
but here's some ideas. Rainer suggested that an xml-type of format
might be best and commonly understood. That's a good idea. Below are
some older ideas that I had. But you will get the idea...</p>
<p>The metaname structure could have flags for properties:</p>
<pre class="pre-section"> 1 - limiting to a length
2 - stripping HTML
3 - encoding HTML entities on output</pre>
<p>Oct 9, 2001 - The code is now in Swish-e to limit a string property to
a length. The stripping of HTML is an issue for discussion. And encoding
entities on output should be a result_outpu.c issue.</p>
<p>UPDATE: Mon Nov 8 15:13:26 CST 2004 (karman@cray.com)</p>
<p>Is this fully supported in 2.4?</p>
</div>
<div class="sub-section">
<h1><a name="apache_xml_style_configuration"></a>Apache/XML style configuration</h1>
<p>This would be to allow some directives to be set per directory, or perl
file extenstion (or content-type).</p>
</div>
<div class="sub-section">
<h1><a name="document_info"></a>Document Info</h1>
<p>$Id: SWISH-3.0.pod 1613 2005-02-02 22:53:39Z whmoseley $</p>
<p>.</p>
</div>
</div><!-- /#main-copy -->
</div><!-- /#content-area -->
<div id="side-bar">
<!-- noindex -->
<ul class="menu"><li class="menuparent">
<a class="menu"
href="./index.html"
>Doc Overview</a>
<!-- noindex -->
<ul class="submenu"><li class="">
<a class="submenu"
href="./readme.html"
title="First time users">README</a>
</li><li class="">
<a class="submenu"
href="./install.html"
title="Installation and usage overview">Install</a>
</li><li class="">
<a class="submenu"
href="./changes.html"
title="Important changes from previous versions">Changes</a>
</li><li class="">
<a class="submenu"
href="./swish-config.html"
title="Directives that go in your Swish-e configuration file">Configuration</a>
</li><li class="">
<a class="submenu"
href="./swish-run.html"
title="Command line options for Swish-e binary">Running</a>
</li><li class="">
<a class="submenu"
href="./swish-search.html"
title="Swish-e's search language">Searching</a>
</li><li class="">
<a class="submenu"
href="./swish-faq.html"
>FAQ</a>
</li><li class="">
<a class="submenu"
href="./swish-bugs.html"
>Known issues</a>
</li><li class="">
<a class="thisfile"
href="./swish-3.0.html"
>The Future »</a>
</li><li class="">
<a class="submenu"
href="./swish-library.html"
title="Swish-e C API">C API</a>
</li><li class="">
<a class="submenu"
href="./api.html"
title="Perl interface to the Swish-e library">Perl API</a>
</li><li class="">
<a class="submenu"
href="./swish.cgi.html"
title="Example CGI/mod_perl script">Swish.cgi</a>
</li><li class="">
<a class="submenu"
href="./search.cgi.html"
title="Example Perl script using SWISH::API">Search.cgi</a>
</li><li class="">
<a class="submenu"
href="./spider.html"
title="The Swish-e HTTP spider">Spider.pl</a>
</li><li class="">
<a class="submenu"
href="./filter.html"
title="How to index non-text documents">Filters</a>
</li></ul>
<!-- index -->
</li></ul>
<!-- index -->
</div><!-- /#side-bar -->
</div><!-- /#body-area -->
<div id="footer">
<!-- noindex -->
<span class="doNotPrint">
Swish-e is distributed with <strong>no warranty</strong> under the terms of the <br />
<a href='http://swish-e.org/license.html'>Swish-e License</a>.<br />
Questions may be posted to the
<a href="http://swish-e.org/discuss.html" title="email list and list archive">Swish-e Discussion list</a>.
</span>
<p>
<strong>URI »</strong> http://swish-e.org/
•
<strong>Generated »</strong>Sun, 05 Apr 2009 02:02:29 UTC</p>
<!-- index -->
</div><!-- /#footer -->
</body>
</html>
|