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--271417913Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitfreefind allows you to embed the results in a "home-made" page. It might be possible to use TCPConnect too but i couldn't help.chrisOn 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--271417913Content-Disposition: attachment;filename=smime.p7sContent-Type: application/pkcs7-signature;name=smime.p7sContent-Transfer-Encoding: base64MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGdDCCAy0wggKWoAMCAQICEHwUL7Uyx2mBFQoavFLMdpMwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MDYxOTEzMzk1N1oXDTA5MDYxOTEzMzk1N1owczEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEgMB4GCSqGSIb3DQEJARYRY2hyaXNAemFyY3JvbS5jb20xLjAsBgkqhkiG9w0BCQEWH2NocmlzdG9waGUuYmlsbGlvdHRldEB3ZWJkbmEudXMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwA1c4NNclm+DlKmbtoBPGfkOxhixFXi2KjVzFehugBE7DdX4na6/GbqFGf5pN7iv8pAKUNoRvEEJIg1vh7+kbLjpprPdks3VahzQ330NSQoInlgpx0jXRWLVIdjbTIwh02zC3tLuUjizLKAIpwrqLRB5/TPQTE2CtON0UAlCkjT2NZDmPY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YwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAhB8FC+1MsdpgRUKGrxSzHaTMA0GCSqGSIb3DQEBAQUABIIBAEWcZD2unCF6tioJuZbo0XHqS7Jm04GEjWu1f4IcU2JVmmtxZioMQiBvczLkS/F37CFyAR7bHZfSE+BXSQJXcEMEY4ga1uV7ncBxLwArIuZ+F8sbBxh5SqbO1KXimoDalwvczAYhzGXPrjryADPqWQFKQRJSJ0mH3LiMCylQW5vZpsKOGdfokx0HW6+lGhRbDafCKTx4J6mNH4xBAZCNWn2vtHD23FRvFtvvaGFN1at0GZkmV0sJE83pvdCxQ1+RImPj0S0dZgHbV2kaIxWOjDx4E2dZTCQolsmBUNJBnqOVqHM8qGzI/mnWoxIdHrF5NFpTwQw8K3D02k/0mf/r3uoAAAAAAAA=--Apple-Mail-13--271417913--
Associated Messages, from the most recent to the oldest:
--Apple-Mail-13--271417913Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitfreefind allows you to embed the results in a "home-made" page. It might be possible to use TCPConnect too but i couldn't help.chrisOn 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--271417913Content-Disposition: attachment;filename=smime.p7sContent-Type: application/pkcs7-signature;name=smime.p7sContent-Transfer-Encoding: base64MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGdDCCAy0wggKWoAMCAQICEHwUL7Uyx2mBFQoavFLMdpMwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zd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OAD 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:
C is for cookie - that's good enough for me... (2001)
Range Comparisons (2000)
customizing the color of user's pages (1997)
Which GUI HTML editors work with WC ? (1997)
Problems searching from a FORM (1997)
Virtual hosting and webcatNT (1997)
WC 2.0 frames feature (1997)
RE: Formulas.db + Users.db (1997)
show all problem (1997)
Up and running ... at last !! (1997)
large database (2000)
NT Manual (1997)
Newbie Question (2003)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
Server Freeze (1998)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)
Nesting searches. (1998)
Is there a max number of fields? (1998)
auction site (2000)
Webmessage Hyperboard (1998)