database: match full import paths, don't split on periods.

For all projects we now index the full import path. So user can search
for example gddo/doc.

Handle urls and float numbers as one term, such as v.io, 0.8.

This fixes #366, and fixes #384.

Change-Id: Ia2c95ddcb64963590edc19d5fb4d4b06ea19e018
Reviewed-on: https://go-review.googlesource.com/20563
Reviewed-by: Andrew Gerrand <adg@golang.org>
2 files changed