Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Omit the display of keywords in search results. Keywords are still used in the search, they are simply not shown to the user because they did not seem to add anything valuable but they did clutter the display. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
f304bbe41c266f669a56ec6d3fb97bf1 |
User & Date: | drh 2010-01-09 15:59:44.000 |
Context
2010-01-11
| ||
21:37 | Reword the documentation on the changes() SQL function to be more precise. (check-in: eb60d9c9d6 user: drh tags: trunk) | |
2010-01-09
| ||
15:59 | Omit the display of keywords in search results. Keywords are still used in the search, they are simply not shown to the user because they did not seem to add anything valuable but they did clutter the display. (check-in: f304bbe41c user: drh tags: trunk) | |
15:37 | Tweak the display of scoring on the search results page. (check-in: 3d2b460664 user: drh tags: trunk) | |
Changes
Changes to search/search.tcl.
︙ | ︙ | |||
236 237 238 239 240 241 242 | [expr $iStart+1]..[expr {($nRes < $iStart+10) ? $nRes : $iStart+10}] of $nRes for: <b>[htmlize $::A(q)]</b> }] db eval { SELECT result.rowid+$iStart AS resnum, COALESCE(title, 'No Title.') AS title, | < | > < | 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | [expr $iStart+1]..[expr {($nRes < $iStart+10) ? $nRes : $iStart+10}] of $nRes for: <b>[htmlize $::A(q)]</b> }] db eval { SELECT result.rowid+$iStart AS resnum, COALESCE(title, 'No Title.') AS title, snippet(page, $open, $close, $ellipsis, 2, 40) AS snippet, url, CASE WHEN $score THEN erank(matchinfo(page), nk, nt, nc) ELSE '' END AS report FROM page, ( SELECT page.docid AS docid, url, nk, nt, nc FROM page, pagedata WHERE page MATCH $::A(q) AND page.docid = pagedata.docid ORDER BY rank(matchinfo(page), nk, nt, nc) DESC LIMIT 10 OFFSET $iStart ) AS result WHERE page MATCH $::A(q) AND page.docid = result.docid ORDER BY resnum; } { append ret [subst -nocommands {<tr> <td valign=top>${resnum}.</td> <td valign=top> <div style="white-space:wrap"> <a href="$url">$title</a> </div> <div style="font-size:small;margin-left: 2ex"> <div style="width:80ex"> $snippet </div> <div style="margin-bottom:1em"><a href="$url">$url</a></div> </div> </td> |
︙ | ︙ |