⬆️ ⬇️

Google Desktop: Search for your local network

Good afternoon dear friends. Today I will continue the topic of using IT in organizations. Like last time , the main topic is optimization of the work of employees, maximum automation and, as a result, reduction of time spent. So…



Formulation of the problem



There is a computer network organization. If there are a lot of employees, various “storages” inevitably arise - documents, music, videos, distributions, etc. For example, people working with documents will store various reports, references, etc .; the computer department will probably acquire a repository of distributions and various useful pages downloaded from the Internet ...

')

If there are a lot of files in such storages, it becomes too difficult to search for the required document or file in them (especially if it is still sorted into dozens of folders with obscure names like “old”, “!!!”, “delete”, “personal” etc. :-) ). Thus, the task is to organize an effective search.







The first solution



If all the files were on the same computer, then the solution to the problem has existed for a long time - Google Desktop. The convenience of this program can not be described.



However, if you need to organize access within the local network, then you have to do a bit of “file work”. The first solution was found quite quickly - a bunch of Google Desktop + DNKA . However, its use has left not very positive impressions. First of all, there are no new versions for DNKA for a long time, and those that exist work with rather old versions of Google Desktop. Secondly, there are some problems with the Cyrillic alphabet and pdf-files (I don’t remember exactly now).



General conclusion: in general, it is possible to use it if the search goes through the usual txt, html, doc files. It installs and works without any problems.



Second solution



Further "excavations" suggested: why not use the scheme with a proxy server? .. Indeed, Google Desktop has its own web server, accessible via ip 127.0.0.1. Next on the same computer, we put the standard bundle apache + php as a proxy server, sitting, say, at 10.0.1.10. The result is this: from the local network, all search requests go to the proxy server, and the latter already redirects them to the internal server 127.0.0.1. After receiving the result, gives the page back to the local network with the replacement of all addresses in the body of the page from 127.0.0.1 to 10.0.1.10.



In general, the approach is good, but Google Desktop somehow checks where the requests come from, and swears dirty, if not from there. :-) All my attempts to emulate any browser on a proxy server ended unsuccessfully.



The general conclusion: complete freedom of action, if someone can do this.



The third way: use the API



A workable solution was found unexpectedly. Called Goolag (yes, I agree, rather peculiar name :-)). The model is the same - a proxy server, but instead of siphoning off the body of a page with search results, the Google Desktop API is used. For this opportunity, by the way, my special thanks to the programmers from Google. In this case, there is a request to a special page, and at the output we have an xml-file with search results. Next parsim and display as we like. As far as I could see, not all the functionality is available through the API, but what is there is more than enough.



results



A bunch of Google Desktop + Goolag (+ apache + php) is a handy tool for finding files on a dedicated "storage" in the local network.



Installation costs are minimal: Google Desktop is getting from the distribution, Apache and PHP are also from the distribution, in the Goolag source you need to fix a couple of lines (in the comments everything is indicated where to change).



The overall impression of the system: convenient! It even finds what is buried very deeply and incomprehensibly in which directories. We, for example, work on the repository of all distributions and e-books. It searches not only by file name, but also by content of html, doc, pdf, txt files.



Just thinking out loud



I believe that with Google Desktop it would be possible to organize a wiki system with a powerful search. Indeed, having found something useful on the net, we often save these pages to our computer. If you organize a common warehouse of such pages - soon there it will be impossible to find anything. With Google search this will not be a problem.

Source: https://habr.com/ru/post/68755/



All Articles