circle.ch weblog by Urs Gehrig

 Search
A weblog about libre software, law, technology, politics and the like.
2013-05-11T15:38:07
Academic, Android, Apache, Apple, Art, Best Of, Biotech, Civil Society, Content Management, Cooking, Copyright, Creative Commons, Crosspost, Culture, Database, Deutsch, DRM, Economy, Education, Event, Gadget, General, Geodata, Government, Health, Howto, Humor, Innovation, Intellectual Property, Java, Language, LaTeX, Law, Linux, Media, Moblog, Mozilla, Music, Office, Open Content, Open Source, P2P, PHP, Podcast, Politics, Privacy, Projects, Random Thought, Rant, Science, Search, Social Network, Software, Sport, Talks, Technology, Technology Transfer, Travelling, Weblog, Wiki, Wireless and Mobile, XML

15. September 2002

File indexing made with Swish-E
@ 12:00:00

File indexing is a comfortable thing. I used it to index a file repository of about 14'000 html files at a size of 370MB. I was looking for an indexing machine making its index available either through scripting language available on a webserver and as a simple commandline interface. Swish-E [1] seemed to be the right thing. Latest versions come with a self-installing archive. The indexing of a directory is as simple as:

c:\>set PATH=%PATH%;c:\programme\swish-e
c:\somedir>swish-e -i .
c:\somedir>swish-e -w "word" -f index.swish-e

That is it. The most simple search in PHP using Swish-E is probably something like

<?php
system('swish-e -w "word" -f index.swish-e' );
?>

A handy class written in PHP [2] interfaces the generated index file, which is in this case nearly 80MB, and outputs the search result to the browser.

[1] http://www.swish-e.org
[2] http://www.neokraft.net/articles/swish-e/

Comments (0) Permalink del.icio.us

The URL to TrackBack this entry is:
   http://circle.ch/blog/b2trackback.php/468

  1. Comment by Bitflux Blog :: Swish-E as search engine @ 2003-03-29 19:46:24:
    Bitflux Blog :: Swish-E as search engine’s Gravatar [...] 29.03.03, Swish-E as search engine [Bitflux CMS] Urs gave me the hint today to use Swish-E as a search-engine for Bitflux CMS. It looks indeed very nice and [...]

Comments closed.



Werbung:

Beiträge von Dritten:

Nachfolgende Titel verweisen auf von mir gelesene Weblogs.

Feeds:

Blog Content
Blog Comments

WikiAgenda:

Comments:

Good question, but...
Hi, thank you very...
Unter http://www.s...
Ich weiss mir nich...
ThanQ matthias. Th...
in case you just w...
ich liebe dir, urs...
hi there, sorry i...
Hoi Leo. I haven'...
Do you know the si...

Archives:

Blog stack:

Bill Humphries
monorom
Wendy M. Seltzer
Christian Stocker
Roger Fischer
Sandro Zic
Wez Furlong
Ben Hammersley
George Schlossnagle
Joichi Ito
Lawrence Lessig
Derek Slater
Karl-Friedrich Lenz
John Palfrey
Bernhard A.M. Seefeld
Gregor J. Rothfuss
Rainer Langenhan
Elke Engel
Sebastian Bergmann
Simon Willison
Jeremy Zwaodny
Udo Vetter
Axel A. Horns
Miguel de Icaza
Andreas Halter
Silvan Zurbrügg
Hannes Gassert
Markus Koller


$Date: 2005/11/05 11:14:30 $