Check-in [13d93e404a]
Not logged in

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

Overview
Comment:Add the "Rebuild Full-Text Index" button to the /srchsetup page. Only construct the full-text index for the documents types that are enabled.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 13d93e404a2d65c4da7a94de8f48e18ca3491774
User & Date: drh 2015-02-03 13:27:14.175
Context
2015-02-03
13:58
Do a better job of escaping stray HTML markup in snippet text. check-in: bc8075de5f user: drh tags: trunk
13:27
Add the "Rebuild Full-Text Index" button to the /srchsetup page. Only construct the full-text index for the documents types that are enabled. check-in: 13d93e404a user: drh tags: trunk
13:26
Adapt "makefile.wiki" to new requirement: availability of FTS4 check-in: 0b3464cf72 user: jan.nijtmans tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/setup.c.
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223

2224
2225
2226
2227
2228
2229
2230
  @ <hr/>
  if( P("fts0") ){
    search_drop_index();
  }else if( P("fts1") ){
    search_drop_index();
    search_create_index();
    search_fill_index();
    search_update_index(SRCH_ALL);
  }
  if( search_index_exists() ){
    @ <p>Currently using an SQLite FTS4 search index. This makes search
    @ run faster, especially on large repositories, but takes up space.</p>
    @ <p><input type="submit" name="fts0" value="Delete The Full-Text Index">

  }else{
    @ <p>The SQLite FTS4 search index is disabled.  All searching will be
    @ a full-text scan.  This usually works fine, but can be slow for
    @ larger repositories.</p>
    @ <p><input type="submit" name="fts1" value="Create A Full-Text Index">
  }
  @ </div></form>







|





>







2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
  @ <hr/>
  if( P("fts0") ){
    search_drop_index();
  }else if( P("fts1") ){
    search_drop_index();
    search_create_index();
    search_fill_index();
    search_update_index(search_restrict(SRCH_ALL));
  }
  if( search_index_exists() ){
    @ <p>Currently using an SQLite FTS4 search index. This makes search
    @ run faster, especially on large repositories, but takes up space.</p>
    @ <p><input type="submit" name="fts0" value="Delete The Full-Text Index">
    @ <input type="submit" name="fts1" value="Rebuild The Full-Text Index">
  }else{
    @ <p>The SQLite FTS4 search index is disabled.  All searching will be
    @ a full-text scan.  This usually works fine, but can be slow for
    @ larger repositories.</p>
    @ <p><input type="submit" name="fts1" value="Create A Full-Text Index">
  }
  @ </div></form>