I first came across Google's interest in Star Trek back in the summer of 2010.
A company spokesman wanted to show me the firm's rapidly improving visual search and speech-recognition technology. At the time, those features were available only on Android phones, and, back then, Android was getting shellacked by the iPhone.
So when the spokesman told me that he regarded the latest Android devices as something like a combination of Star Trek's tricorder and the USS Enterprise's computer, I dismissed it as a gimmick to attract media attention for a struggling brand.
Not that he was totally wrong - in 2010, asking your phone to search for something, rather than typing in your query, was pretty cool. It just wasn't Star Trek-cool.
Since then, though, Star Trek has popped up again and again in my interviews with Googlers.
Last year, for a piece in which I praised Google's Voice Search for trouncing Apple's Siri, I spoke to Scott Huffman, one of the engineering directors on Google's search team.
When I asked him how he pictured voice search evolving, he too invoked the Star Trek computer.
"You would ask, 'Hey Google, where should I have dinner?' " he told me. "And it might say, 'Well, you seem to like Italian restaurants, so how about this one?' "
A few weeks ago, I was chatting with Tamar Yehoshua, director of product management on Google's search.
"Is there a roadmap for how search will look a few years from now?" I asked her.
"Our vision is the Star Trek computer," she shot back with a smile. "You can talk to it - it understands you, and it can have a conversation with you."
Still, I didn't really put much stock in these references.
After all, Google is very likely the nerdiest large company on earth; of course its employees like Star Trek.
Then, in March, Amit Singhal, who heads Google's search rankings team, gave a talk at the South by Southwest Interactive Festival - and Star Trek took centre stage. Singhal told the crowd that the original series was one of his favourite all-time shows, and he longed to one day meet William Shatner, "as long as he doesn't sell me a hotel room."
Then Singhal added: "The destiny of [Google's search engine] is to become that Star Trek computer, and that's what we are building."
OK, really? Despite all the interviews in which Star Trek had come up, I'd long assumed that Google's Star Trek chatter was meant as marketing - that Googlers kept talking about the Star Trek computer because it was an easy reference point, but that the company wasn't really trying to build a machine as encyclopaedic and humanistic as the all-knowing ship's computer.
But Singhal's talk got me wondering. What if Google's vision really is to build the Star Trek computer? What if the picture most of us have of search - type in a few keywords, get back links to other sites - is not the way Google thinks about search? What if, when Google's search engineers go about building the next iteration of the company's primary product, they really do look to Captain Kirk for inspiration?
So I went to Google to interview some of the people who are working on its search engine. And what I heard floored me.
"The Star Trek computer is not just a metaphor that we use to explain to others what we're building," Singhal told me.
"It is the ideal that we're aiming to build - the ideal version done realistically."
He added that the search team does refer to Star Trek internally when they're discussing how to improve the search engine. "It comes up often," Singhal said.
"For instance, we might say, 'Captain Kirk never pulled out a keyboard to ask a question.' So in that way it becomes one of the design principles - we see that because the Star Trek computer actively relies on speech, if we want to do that, we need to work to push the barrier of speech recognition and machine understanding.
"What does it mean that Google really is trying to build the Star Trek computer? I take it as a cue to stop thinking about Google as a "search engine".
That term conjures a staid image: a small box on a page in which you type keywords.
Asearch engine has several key problems.
First, most of the time it doesn't give you an answer - it gives you links to an answer.
Second, it doesn't understand natural language; when you search, you've got to adopt the search engine's curious, keyword-laden patois.
Third, and perhaps most importantly, a search engine needs for you to ask it questions - it doesn't pipe in with information when you need it, without your having to ask.
The Star Trek computer worked completely differently.
It understood language and was conversational, it gave you answers instead of references to answers, and it anticipated your needs.
"It was the perfect search engine," Singhal said.
"You could ask it a question and it would tell you exactly the right answer, one right answer - and sometimes it would tell you things you needed to know in advance, before you could ask it."
Google's transformation into the Star Trek computer will take years. But it has already made huge leaps toward building such a machine.
For lots of searches today, you'll notice Google giving you more and more direct answers. Type in "tom cruise height," for instance, and you'll see the diminutive star's digits at the top of the page (5 feet, 7 inches).
The Google search team is confident that it can realise its Star Trek dreams.
"You already see hints of the Star Trek computer in your phone," Singhal said.
"Now we're trying to get it to a point where it passes the 'toothbrush test' of you using it twice a day."
Singhal predicted that will happen in three years' time - by then, he says, Google's Star Trek machine will be so good that you'll ask it a question and expect a correct answer at least twice a day.
"And in five years you won't believe you ever lived without it. You'll look back at today's search engine and you'll say, 'Is that really how we searched?'" Singhal says.
He adds: "These are the best times we've ever had in search. I have done this for 22 years, and I've been at Google for 12 years, so I should know. This is the most exciting time - every morning I come into work more excited than ever. Strap in. It's all happening in our lifetimes."