Implement a "did you mean" feature. If any word in the query exists as a username in the DB, or looks like a URL / domain name, show a link to a query that fixes that.
Make sure to only do this for non-dictionary words and non-technical terms, or it will get annoying.
Create a new tsv_meta TSVECTOR field and put the domain and username in it.
Must disable stemming for this one.
Amend the DB query to check every word in the query against domain and username fields. Inefficient.
When searching for a domain name without specifying it via the
host:
prefix, hnapp should find items from that domain anyway. Same for username.Examples of unsatisfactory searches: http://hnapp.com/?q=type%3Astory+techcrunch.com (no stories from domain techcrunch.com) http://hnapp.com/?q=patio11 (no comments by patio11, only about him)
Possible ways to fix that:
tsv_meta
TSVECTOR field and put the domain and username in it.