Re: [WebDNA] OT: Indexing PDF on iTools / apache2

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 100526
interpreted = N
texte = --Apple-Mail-13--271417913 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit freefind allows you to embed the results in a "home-made" page. It might be possible to use TCPConnect too but i couldn't help. chris On Aug 12, 2008, at 11:31, Thierry Almy wrote: > 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: > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: --Apple-Mail-13--271417913 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGdDCCAy0w ggKWoAMCAQICEHwUL7Uyx2mBFQoavFLMdpMwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MDYxOTEzMzk1N1oXDTA5MDYxOTEzMzk1 N1owczEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEgMB4GCSqGSIb3DQEJARYRY2hy aXNAemFyY3JvbS5jb20xLjAsBgkqhkiG9w0BCQEWH2NocmlzdG9waGUuYmlsbGlvdHRldEB3ZWJk bmEudXMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwA1c4NNclm+DlKmbtoBPGfkOx hixFXi2KjVzFehugBE7DdX4na6/GbqFGf5pN7iv8pAKUNoRvEEJIg1vh7+kbLjpprPdks3VahzQ3 30NSQoInlgpx0jXRWLVIdjbTIwh02zC3tLuUjizLKAIpwrqLRB5/TPQTE2CtON0UAlCk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iG9w0BCRACCzF4oHYwYjELMAkGA1UE BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1Ro YXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAhB8FC+1MsdpgRUKGrxSzHaTMA0GCSqG SIb3DQEBAQUABIIBAEWcZD2unCF6tioJuZbo0XHqS7Jm04GEjWu1f4IcU2JVmmtxZioMQiBvczLk S/F37CFyAR7bHZfSE+BXSQJXcEMEY4ga1uV7ncBxLwArIuZ+F8sbBxh5SqbO1KXimoDalwvczAYh zGXPrjryADPqWQFKQRJSJ0mH3LiMCylQW5vZpsKOGdfokx0HW6+lGhRbDafCKTx4J6mNH4xBAZCN Wn2vtHD23FRvFtvvaGFN1at0GZkmV0sJE83pvdCxQ1+RImPj0S0dZgHbV2kaIxWOjDx4E2dZTCQo lsmBUNJBnqOVqHM8qGzI/mnWoxIdHrF5NFpTwQw8K3D02k/0mf/r3uoAAAAAAAA= --Apple-Mail-13--271417913-- 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)
--Apple-Mail-13--271417913 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit freefind allows you to embed the results in a "home-made" page. It might be possible to use TCPConnect too but i couldn't help. chris On Aug 12, 2008, at 11:31, Thierry Almy wrote: > 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: > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: --Apple-Mail-13--271417913 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGdDCCAy0w ggKWoAMCAQICEHwUL7Uyx2mBFQoavFLMdpMwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MDYxOTEzMzk1N1oXDTA5MDYxOTEzMzk1 N1owczEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEgMB4GCSqGSIb3DQEJARYRY2hy aXNAemFyY3JvbS5jb20xLjAsBgkqhkiG9w0BCQEWH2NocmlzdG9waGUuYmlsbGlvdHRldEB3ZWJk bmEudXMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwA1c4NNclm+DlKmbtoBPGfkOx hixFXi2KjVzFehugBE7DdX4na6/GbqFGf5pN7iv8pAKUNoRvEEJIg1vh7+kbLjpprPdks3VahzQ3 30NSQoInlgpx0jXRWLVIdjbTIwh02zC3tLuUjizLKAIpwrqLRB5/TPQTE2CtON0UAlCkjT2NZDmP YYaBUhcXQq8Dr6b2rfeG4m9bfBRJPp+6wWC2bEiqlLiS1bCGBn2Q/e5SwS2cplog0zefw9xxGfaE jc+V2iX0Pk+n5ys3KMGaKD2wUfHJiL3+aHaPbVLGzhcqUdI8EKWtskYQO5aKRF+TYWL/1WiVtMub 6dSz+mFTZ5y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MA0GCSqG SIb3DQEBAQUABIIBAEWcZD2unCF6tioJuZbo0XHqS7Jm04GEjWu1f4IcU2JVmmtxZioMQiBvczLk S/F37CFyAR7bHZfSE+BXSQJXcEMEY4ga1uV7ncBxLwArIuZ+F8sbBxh5SqbO1KXimoDalwvczAYh zGXPrjryADPqWQFKQRJSJ0mH3LiMCylQW5vZpsKOGdfokx0HW6+lGhRbDafCKTx4J6mNH4xBAZCN Wn2vtHD23FRvFtvvaGFN1at0GZkmV0sJE83pvdCxQ1+RImPj0S0dZgHbV2kaIxWOjDx4E2dZTCQo lsmBUNJBnqOVqHM8qGzI/mnWoxIdHrF5NFpTwQw8K3D02k/0mf/r3uoAAAAAAAA= --Apple-Mail-13--271417913-- Christophe Billiottet

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:

Re:2nd WebCatalog2 Feature Request (1996) My slower response (1997) WebCat2: Items xx to xx shown, etc. (1997) Open source store builder (Merchant Maker?) (2003) WebCatalog Serial Number (2003) Encryption of E-mail (1998) Country & Ship-to address & other fields ? (1997) [ot] html question (2000) 40,000+ items = mutiple dbs? (1999) Databases inside [SHOWIF] (1998) Search inside Include (1998) SKU (1997) SiteEdit NewFile.html ? (1997) HELP WITH DATES (1997) Copyright that puppy (1998) slightly OT: advertising schemes (2004) formula??? (2000) Multiple catalog databases and showcart (1997) A little syntax help (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)