Re: [WebDNA] OT: Indexing PDF on iTools / apache2
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100525
interpreted = N
texte = Finally I found out one way ...- creating a symbolic link in he webroot and pointing to the indexed folder on the hd did the search (I had an error in my code)But since I can't display a pice of text around the hits, I'm not so happy with the results. All it shows me is the documents name and a (wrong) link to it ...So I'm still looking for another solution.I had a look at http://www.freefind.com ...should it be possible to display the results in my own document using TCPConnect ?ThierryAm 12.08.2008 um 14:30 schrieb Thierry Almy:> This solution looks nice and it works ... as long as I turn on the > spotlight indexing for /Library>> Now I'm looking for a smart solution where I don't have to index the > whole Library, which holds gigabites of data and log file and and and!>>> - so I created a folder on / called "spotlight_indexed"> - I turned of indexing for all folders on / exept the above > mentioned one> - then I created a symlink in the users webhome, which is pointing > to the "spotlight_indexed" folder> - I put a few pdfs in that folder and searched them on the mac -> ok> - then I changed the pathes in the shell command to the symlink>> - searched over the web -> not ok>> - changed the path in the shell directly to "/spotlight_indexed/" -> > not ok>>> any ideas?>> Thierry>>>> Hi Theirry,>>>> Following Toby's comment here are the further details he promised...>>>> (1) You need to have spotlight indexing on the server turned on>>>> (2) The results page code is as follows...>>>> [text]result1=[shell]mdfind [keywords] -onlyin /Library/WebServer/ >> Site/docs/ [/shell][/text]>> [text]result2=[grep search=/Library/WebServer/Site/docs/ >> &replace=&ignorecase=T][result1][/grep][/text]>>>>
Search Results (in location/relevance order)
>>>> [showif [result1]=]
Zero documents match your search
[/showif]>>>> [hideif [keywords]=]>> [ListWords Words=[url][result2][/url]&Delimiters=%0A]>> [index]:
[word]>> [/ListWords]>> [/hideif]>>>> I hope this helps.>>>> Phil>>>> On 11 Aug 2008, at 12:25, Thierry Almy wrote:>>>>> Hi Toby>>>>>> Sounds interesting.>>>>>> It would be nice to get some more infos on it ...>>>>>> Thierry>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list
.>> To unsubscribe, E-mail to: >> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to:
Associated Messages, from the most recent to the oldest:
Finally I found out one way ...- creating a symbolic link in he webroot and pointing to the indexed folder on the hd did the search (I had an error in my code)But since I can't display a pice of text around the hits, I'm not so happy with the results. All it shows me is the documents name and a (wrong) link to it ...So I'm still looking for another solution.I had a look at http://www.freefind.com ...should it be possible to display the results in my own document using TCPConnect ?ThierryAm 12.08.2008 um 14:30 schrieb Thierry Almy:> This solution looks nice and it works ... as long as I turn on the > spotlight indexing for /Library>> Now I'm looking for a smart solution where I don't have to index the > whole Library, which holds gigabites of data and log file and and and!>>> - so I created a folder on / called "spotlight_indexed"> - I turned of indexing for all folders on / exept the above > mentioned one> - then I created a symlink in the users webhome, which is pointing > to the "spotlight_indexed" folder> - I put a few pdfs in that folder and searched them on the mac -> ok> - then I changed the pathes in the shell command to the symlink>> - searched over the web -> not ok>> - changed the path in the shell directly to "/spotlight_indexed/" -> > not ok>>> any ideas?>> Thierry>>>> Hi Theirry,>>>> Following Toby's comment here are the further details he promised...>>>> (1) You need to have spotlight indexing on the server turned on>>>> (2) The results page code is as follows...>>>> [text]result1=[shell]mdfind [keywords] -onlyin /Library/WebServer/ >> Site/docs/ [/shell][/text]>> [text]result2=[grep search=/Library/WebServer/Site/docs/ >> &replace=&ignorecase=T][result1][/grep][/text]>>>> Search Results (in location/relevance order)
>>>> [showif [result1]=]Zero documents match your search
[/showif]>>>> [hideif [keywords]=]>> [ListWords Words=[url][result2][/url]&Delimiters=%0A]>> [index]: [url][word][/url]>[word]
>> [/ListWords]>> [/hideif]>>>> I hope this helps.>>>> Phil>>>> On 11 Aug 2008, at 12:25, Thierry Almy wrote:>>>>> Hi Toby>>>>>> Sounds interesting.>>>>>> It would be nice to get some more infos on it ...>>>>>> Thierry>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to:
Thierry Almy
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
New (1998)
Running _every_ page through WebCat ? (1997)
WebCatalog Hosting (1996)
Re1000002: Setting up shop (1997)
WebCatalog for guestbook ? (1997)
FREE Stuff .. (2003)
Url encoded fun (1998)
Running _every_ page through WebCat ? (1997)
Redirect to anchor (2001)
WebCat2b15MacPlugin - showing [math] (1997)
[searchString] (1997)
Search in 2 or more catalogs (1997)
Changing the value assigned to a formvariable (2000)
Locking up with WebCatalog... (1997)
Multiple prices (1997)
Comments in db? (1997)
Which [index]? (1997)
BGcolor (1997)
Re1000001: Setting up shop (1997)
Ok here is a question? (1997)