Tags:
create new tag
view all tags

Question

There is a link tree. It is in TWiki-Format [[link/to/file.html][Description]] to stay dynamic. How can I search after the contents in the static linked html fiel tree.

With the HTML2TML cotribution From Frederic Ludeni I generated a TWiki tree:

#!/bin/bash for t in `find . -name \*.html
do ../htmltotwiki.sh $t > $t.new 
mv -f $t.new $t 
done

But this tree is only searched (search.pm) flat not traversed deep. The contrib module SearchEngineKinoSearchAddOn is installed too.

There is following idea: To get rid of flat search, insert some lines like these in %TWIKIHOME%/lib/TWiki/Search.pm @870:875:

system_call("find /home/elvira/twiki/ext -type f | egrep -v '(verything.net)' | perl -pe 's/..//' | sort > /home/elvira/extResult"); #<<<ADDED _moz-userdefined="" extresult,="" open="" ;="" .="\n" $extresult=""> /home/elvira/extResult" or die;  #<<<ADDED _moz-userdefined="" #="" $extresult;="" extresult="" print=""><<<ADDED _moz-userdefined="" #="" .="$extResult;" $searchresult=""><<<ADDED _moz-userdefined="" .="$beforeText;" $searchresult="" />

But this does not work. Why? There is no error in the apache errorlog.

Is there another way to search in extern located (not in web) files with traversing the directory structure?

Following is shown a directory with html files located in /var/www/htdocs/twiki/externhtml. This structure is only a part of a hughe 20MB html file tree.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: BatchUploadPlugin, CommentPlugin, EditTablePlugin, EmptyPlugin, InterwikiPlugin, PreferencesPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin, TreeBrowserPlugin, TwistyPlugin, WysiwygPlugin
Server OS: Linux/SUSE 10, kernel 2.6.16
Web server: Apache 2.2.3
Perl version: 5.8.8
Client OS: MS Windows 2000, service pack 4
Web Browser: Firefox 2.0.0.6, IE6
Categories: Search

-- ElviraMiller - 08 Mar 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed.

-- PeterThoeny - 01 May 2008

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-05-01 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.