Closed Bug 572109 Opened 14 years ago Closed 14 years ago

Allow searching for parts of the URL.

Categories

(Input :: General, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: wenzel, Assigned: wenzel)

Details

From bug 570759 comment 2:

"A user should be able to search for part of a url and get search results if those results match either the URL, the message or both."
Probably need to urlparse() [1] the URL and only index netloc and path (or so), so that a search for "http" doesn't become useless.

[1] http://docs.python.org/library/urlparse.html
http://github.com/fwenzel/reporter/commit/df9272d

I am now indexing the url as well. However, due to the way the search engine works, I can only search for pieces that I split off from the URL properly.

Example: if the URL was http://www.example.co.uk/foo/bar.html, I am splitting it into:

example, co, uk, foo, bar.html and "example.co.uk" ("www" is pointless and omitted)

So you find the result if you search for any of these pieces, but not if you search for "www.example.co.uk" or "bar".

If we need it, we can further tweak this sometime.
Assignee: nobody → fwenzel
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Sounds good, I like that approach actually.
Status: RESOLVED → VERIFIED
Component: Input → General
Product: Webtools → Input
You need to log in before you can comment on or make changes to this bug.