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 ? Thierry Am 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:

    
  1. Re: [WebDNA] OT: Indexing PDF on iTools / apache2 (Chris 2008)
  2. Re: [WebDNA] OT: Indexing PDF on iTools / apache2 (Thierry Almy 2008)
  3. Re: [WebDNA] OT: Indexing PDF on iTools / apache2 (Thierry Almy 2008)
  4. Re: [WebDNA] OT: Indexing PDF on iTools / apache2 (Phil Ronchetti 2008)
  5. Re: [WebDNA] OT: Indexing PDF on iTools / apache2 (Chris 2008)
  6. Re: [WebDNA] OT: Indexing PDF on iTools / apache2 (Thierry Almy 2008)
  7. Re: [WebDNA] OT: Indexing PDF on iTools / apache2 (Toby Cox 2008)
  8. [WebDNA] OT: Indexing PDF on iTools / apache2 (Thierry Almy 2008)
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 ? Thierry Am 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:

Major Security Hole (1998) searching multiple databases in single search (1997) Multiply prices (1997) RSS parser (2002) PIXO support (1997) Order not created error (1997) Freeze (2003) [WebDNA] Chatroom with Webcatalog (2011) [WebDNA] WebDNA and MAMP/Apache (Mac) (2018) Problems passing [SKU] with $Replace in 2.0 (1997) Setting up shop (1997) # fields limited? (1997) [TCPSend] and whois? (1999) FYI: virus alert (1996) WebCat2 - storing unformatted date data? (1997) Exclude by date - multiple (1997) Ken's Data Manager (was dbQuickView 2.0) (2005) [OT] Form POSTing with LONG variable (2007) WC2.0 Memory Requirements (1997) UPDATE PROBLEM (1997)