r/AskProgramming • u/L_James • Aug 06 '20
Other Is personalized yet anonymous search engine possible?
So, there's a problem with DuckDuckGo. If you ever used it, you probably had a thought that it's a lot harder to find anything in it compared to Google that gives you results it knows that are more relevant to you. So, how do you think, is it possible to achieve anonymity while retaining personalized results according to recent searches? Maybe something like keeping data on previous searches locally
On top of that, another degree of complexity - is it possible to make it personalized, anonymous and distributed, because implications of single entity controlling the system terrify me. If thing is not on Google, it might as well not exist, so if search engine is big enough it can easily become a propaganda tool, for most obvious use case. No single person or corporation should have that amount of control over internet.
5
u/anamorphism Aug 06 '20
what does anonymous mean to you?
anonymous
a full local search engine. probably can't afford this.
mostly anonymous
the only real way i can see something like this having even a remote chance of working without storing search history server-side would be to just send you the entire result data set for your search. you would store all your history data locally and run the algorithm locally to filter and prioritize results.
this would have no real chance of being feasible. you'd be sending billions of results per query and have to process that. you're talking about downloading gigabytes worth of data for each search. not to mention adding the processing time on top of that. are you comfortable with a single search taking like an hour to finish assuming you have a gigabit internet connection and a decent desktop computer?
anonymous-ish
you can start improving the system by making various anonymity concessions.
start adding various query parameters that are based on your local history that can at least partially filter the result set. people start being able to associate abstract ideas about your search history to your ips and such.
store your history server-side related to a token that has no personal data associated to it. people can relate things to the token and build a profile for who you are and potentially what devices you use and such. this is basically what google does except you have an account with whatever additional information they store for you depending on what other google things you use (gmail, chrome, android devices, etc...).
2
u/vatselan Aug 07 '20
I don’t see the google lack of anonymity a problem to give the personalised results but it’s what they do with that. They sell you ads. And it is gruesome to be least.
If DuckDuckGo or any other search engine ask me to have an account to keep fine tuning my search preferences I will be perfectly ok if they keep my data on my machine and don’t track me across internet to sell me another fucking Nissan
0
u/K41eb Aug 06 '20
Host your own, Luke Smith video: https://youtu.be/oufXi3e-VuA
5
u/L_James Aug 06 '20
Not quite what I had in mind honestly. I'm thinking more about distributed network that uses some algorithms to adjust search results for you based on previous searches and maybe some more data, but still remains anonymous. That's why I'm asking if this even possible, these two ideas are kinda opposite to each other - it can't keep data on you but it has to keep data on you to control what it shows to you.
Maybe self-hosted search engine could be a solution - it does collect your data to show best results, but it collects it on your own storage completely controlled by you.
But it still needs to be a complete search engine, so it doesn't rely completely on other engines, especially on Google - it still gives them too much control over what users can see. But I don't think it's possible to run a complete stand-alone engine on an average machine. You just can't crawl enough sites on your own. Maybe here comes distributed network to get data - and also probably get some info from other search engines. I wonder if it's possible to pack it all into something easy to install - unlikely browser extension, but that would be neat, so we won't end up with like one hundred to one thousand stations
But in the end, I'm just an android developer, I have only bare bones understanding (barely touched at uni fiveish years ago) how search engines and distributed computations work, so maybe my ramblings are complete gibberish ¯_(ツ)_/¯
1
u/Yithar Aug 07 '20
I understand your point. I just think it would be difficult. What if you switched computers for example?
0
u/CartmansEvilTwin Aug 06 '20
Not anonymous, but pseudonymous.
You could (theoretically) have a user account or token to identify an identity, but not a person. So you would have maybe a personal token for private searches and a work token etc.
Problem is, you either have to store the actual data behind that token on some form of service or send the data on each query.
Another approach (which would be much less easy to use) could be a split between actual searching and weighting. So there would be a big index searching service, that simply retrieves more or less all results for a search and another (distributed/client side) service that weighs all the results and presents the most relevant for the user.
Both not ideal, I think.
1
u/Isvara Aug 06 '20
This doesn't work in practice. Some reasonably well known search engine released a lot of search queries, each associated with a token representing the user. Should have been pseudonymous in principle, but there was enough information across the various queries that researchers were able to tie them to real world identities.
-2
44
u/[deleted] Aug 06 '20
What you're looking for is under the research topic of Homomorphic Encryption. You provide inputs to an algorithm that are encrypted (your search terms) which is able to compute the result, and return an encrypted answer. At no point does the algorithm know what input data it received.
It's an active research topic and I'm not currently aware of a Fully Homomorphic encrypted search engine, nor am I aware if it has been proven impossible to do. I believe mathematically this would require a proof saying one is impossible to fully deem it impossible, much like the P vs NP argument. Until someone actually produces such a framework, it's an open question whether or not one can exist. Some nuances to keep in mind are whether a general framework exists like a turing complete general computer, or whether one can exist in extremely well defined languages (domain specific problems like search, machine learning training, graphics rendering, etc.).