Documentation Source Text

Check-in [78cbbe549b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:If the website keyword search fails, try again after lowercasing the input text. This avoids problems when users enter "OR" and "NEAR" as search terms rather than operators.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 78cbbe549ba5525852d0160a1e5b0f3afa7da925
User & Date: drh 2013-04-24 22:09:45.967
Context
2013-04-25
11:35
Update the FTS3 documentation to make it clearer that external content tables must be in the same database as the FTS virtual table. (check-in: 35441559aa user: drh tags: trunk)
2013-04-24
22:09
If the website keyword search fails, try again after lowercasing the input text. This avoids problems when users enter "OR" and "NEAR" as search terms rather than operators. (check-in: 78cbbe549b user: drh tags: trunk)
2013-04-22
15:35
Ignore the error if two hyperlink keywords differ only in case. (check-in: 55000f1b07 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to search/search.tcl.
303
304
305
306
307
308
309




310
311
312
313
314
315
316
317

proc main {} {
  global A
  sqlite3 db search.db
  cgi_parse_args

  db transaction {




    set t [ttime { set doc "[searchform] [searchresults] [footer]" }]
  }
  append doc "<p>Page generated in $t."
  return $doc

  # return [cgi_env_dump]
}








>
>
>
>
|







303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321

proc main {} {
  global A
  sqlite3 db search.db
  cgi_parse_args

  db transaction {
    if {[catch searchresults srchout]} {
      set A(q) [string tolower $A(q)]
      set srchout [searchresults]
    }
    set t [ttime { set doc "[searchform] $srchout [footer]" }]
  }
  append doc "<p>Page generated in $t."
  return $doc

  # return [cgi_env_dump]
}