Closed
Bug 411591
Opened 17 years ago
Closed 14 years ago
expose frecency as a sort order for place queries
Categories
(Firefox :: Bookmarks & History, defect, P2)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
People
(Reporter: moco, Unassigned)
References
Details
expose frecency as a sort order for place queries.
something along the lines nsINavHistoryQueryOptions.SORT_BY_FRECENCY_DESCENDING / ASCENDING.
this could be useful for extension authors or for people wanting to do interesting things with place: queries.
note:
in our search term builder (at some point) we want to have ui for all (or most) of our query options, but having "Frecency" in the UI is going to be tough to localize.
spun off from bug #411293
Comment 1•17 years ago
|
||
some bad software call it "relevance", IIRC.
Comment 2•17 years ago
|
||
We'll need this if we want a smartbookmark type thing that shows the top 10 most frecent pages.
The query would be something like..
SELECT url, title FROM moz_places ORDER BY frecency DESC LIMIT 10
But I see some existing super-optimized stuff for nsNavHistory::ConstructQueryString
And we would either need to return another column for frecency or just keep it internal and sort on it for the general non-optimized/frecency ASC query... ?
Comment 3•17 years ago
|
||
(In reply to comment #2)
> SELECT url, title FROM moz_places ORDER BY frecency DESC LIMIT 10
if you come to see those into the Library probably you will need more then those 2 columns. an optimized query should limit before selecting, nothing fancy here
Comment 4•17 years ago
|
||
So do something like..
SELECT <desired columns>
FROM moz_places
WHERE id IN (
SELECT id
FROM moz_places
...
LIMIT 10)
Comment 5•17 years ago
|
||
yes, similar to the actual most visited query or history menu query
<desired columns> should be the same as other queries (based on index definition in the file)
Comment 6•17 years ago
|
||
Ondrej: Would you be able to add a new sort order for frecency seeing that you're familiar with the results code from working on bug 385245?
Sorting would just use the frecency column in moz_places. Potentially we might want a "super-optimized" version as well.
Comment 7•17 years ago
|
||
This should be the same case as visit_count, so very easy to implement. No super-optimized version is needed.
Comment 8•17 years ago
|
||
(In reply to comment #7)
> No super-optimized version is needed.
it depends if we need to join with moz_historyvisits, in that case we should always limit in the inner select, this depends where we want to expose this frecency, if we create a smart frecency bookmark and the user will open that into the library we will need also history columns
Updated•17 years ago
|
Priority: -- → P2
Target Milestone: --- → Firefox 3.1
Comment 9•16 years ago
|
||
Any news here? It would be great to have it fixed for Firefox 3.1.
Flags: blocking-firefox3.1?
Comment 10•16 years ago
|
||
We probably don't want to actually call this "frecency" if we add the collumn, given that it will be hard to localize things that aren't actually words. Perhaps popularity?
Comment 11•16 years ago
|
||
what about "relevance" as Mano suggested in comment #1
Comment 12•16 years ago
|
||
yeah, relevance sounds ok
Comment 13•16 years ago
|
||
Approving blocking+ for the 3.1 release. This has been requested by extension authors, sync implementors, and will be needed internally for other 3.1 features.
Flags: blocking-firefox3.1? → blocking-firefox3.1+
Comment 14•16 years ago
|
||
Bug 455651 was cut from 3.1, so this doesn't need to block the release.
Flags: blocking-firefox3.1+ → blocking-firefox3.1-
Comment 15•16 years ago
|
||
would be great for extension developers and sync services, marking wanted+ and keeping on 3.1 radar.
Flags: wanted-firefox3.1+
Updated•16 years ago
|
Target Milestone: Firefox 3.1 → Firefox 3.2a1
Updated•16 years ago
|
Target Milestone: Firefox 3.6a1 → ---
Updated•16 years ago
|
Flags: wanted-firefox3.5+ → wanted-firefox3.6+
Comment 16•15 years ago
|
||
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".
In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body contains places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.
Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.
Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
Comment 17•14 years ago
|
||
was implemented in bug 630225.
You need to log in
before you can comment on or make changes to this bug.
Description
•