History of src/search.c of bd559ff0d0db4e83
Not logged in

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

History of file src/search.c at check-in bd559ff0d0db4e83

2026-01-10
14:17
Sync with trunk. file: [ba33ce8aec] check-in: [ceee00be59] user: florian branch: standard-cli-colors, size: 91323
2025-12-23
16:06
Assorted fixes of typos and grammar in code comments. No functional changes. file: [c4bd56d863] check-in: [e2bdc10572] user: danield branch: trunk, size: 91504
2025-11-26
14:12
Sync with trunk. file: [779a9d927b] check-in: [b81b4c6c3c] user: florian branch: standard-cli-colors, size: 91322
2025-10-28
15:05
Cache the name of the main branch. file: [31d8c00940] check-in: [ca0d66b2e4] user: danield branch: trunk, size: 91503
2025-10-25
13:48
Remove some fossil_free() calls added by the previous check-in. file: [7ed9fe01e8] check-in: [6a617d004f] user: danield branch: softcoded-main-branch, size: 91507
2025-10-23
14:50
Replace hard-coded "trunk" with the value of 'main-branch' (defaulting to "trunk"). file: [2b74f1844c] check-in: [dd8995bbdd] user: danield branch: softcoded-main-branch, size: 91565
2025-10-21
13:49
Revert two small sections of [4c3e1728e1b1a9cb] for cases which are not compatible with fsl_strdup()'s passing-on of NULL values. Found while investigating a presumably unrelated crash. file: [cbfa399bdc] check-in: [20adff9572] user: stephan branch: trunk, size: 91399
2025-10-10
17:20
Make use of the improved /help/CMD syntax everywhere, in place of the legacy /help?cmd=CMD syntax. file: [e65778f849] check-in: [c64f28d26c] user: drh branch: trunk, size: 91404
2025-08-21
12:08
Sync with trunk. file: [1c0e1e8386] check-in: [286a900699] user: florian branch: standard-cli-colors, size: 91227
2025-07-23
15:58
Minor optimization: replace calls to mprintf("%s", X) with fossil_strdup(X). file: [82719ea2ad] check-in: [4c3e1728e1] user: danield branch: trunk, size: 91408
2025-04-18
07:20
Remove documentation of the --highlight option for the search command. The option was broken, anyway, and is now superseded by the global --color option and the FOSSIL_COLOR environment variable. file: [563bc181b7] check-in: [5331dfed41] user: florian branch: standard-cli-colors, size: 91226
2025-04-02
11:55
Enable the search in the built-in help text even without a repository. file: [4d22bea3e8] check-in: [21c54d5db0] user: tsbg branch: search-in-help, size: 91407
2025-03-22
13:08
Show formatting rules according to the current repository settings on the checkin comment prompt. Improvements to the html_to_plaintext() routine for improved handling of whitespace. file: [6820d9ea75] check-in: [d62ca2b85f] user: drh branch: trunk, size: 91285
2025-03-21
19:46
Enhancements to wiki_convert() that can optionally mark questionable text. file: [330023dada] check-in: [f0d9fe2b0c] user: drh branch: trunk, size: 91280
18:31
Enhance the html_to_plaintext() routine with a flags argument so that it can take over the job previously done by search_snippet_to_plaintext(). file: [78bde668b2] check-in: [fd59eb178b] user: drh branch: trunk, size: 91512
2025-03-19
11:31
Simplify the command property of "abbreviated-subcommands" to just "abbrv-subcom" and the setting property of "show-only-if-changed" to just "if-chng". file: [6d6ceb9be3] check-in: [3e7c7e2277] user: drh branch: trunk, size: 93538
2025-03-11
18:04
Update the change log to talk about all the latest enhancement. file: [99223dc1a4] check-in: [faf1982916] user: drh branch: trunk, size: 93549
2025-03-01
16:02
Improvements to rendering in the "fossil help" command, especially in combination with the -u/--usage and -o/--options command-line options. file: [d80406f29f] check-in: [62cb8ea785] user: drh branch: trunk, size: 93541
2025-02-28
20:22
Further help improvemens. Add the "fossil apropos" command for searching help. "fossil help options" and "fossil help COMMAND options" give sensible results. file: [0cbc56da5c] check-in: [90e564f213] user: drh branch: trunk, size: 93509
2025-02-27
16:29
Improvements to the "fossil search" help page. Document the --highlight option. Disable colorization if the NO_COLOR environment variable exists. file: [1be16a482d] check-in: [eeec6c894e] user: drh branch: trunk, size: 93232
2025-02-26
19:44
Honor the "y=h" query option on the /search page even if help-search is disabled, but otherwise do not advertise help-search when it is disabled. file: [58485d31dd] check-in: [2e9e3695ae] user: drh branch: trunk, size: 92439
17:38
For help-text search, include the name of the command or setting as part of the searchable text. Also: Fix a bug in HTML-to-text translation of snippets. file: [552b215e46] check-in: [55dd9896d7] user: drh branch: trunk, size: 92159
16:00
Improved error message from "fossil search" when attempt to search a document type for which search is disabled. file: [811cdd9cd4] check-in: [78263fe189] user: drh branch: help-search, size: 92095
15:48
Improvements to the "fossil fts-config" command so that "enable" and "disable" subcommands accept symbolic names for the search catagories, rather than cryptic code letters. Always allow help-search even if disabled; just don't advertise the capability. file: [7ce7085cb8] check-in: [7ea128dd51] user: drh branch: help-search, size: 91648
14:54
Revamp the "fossil search" command to always use full-text search (unless the undocumented --legacy option is added). Improve the output. Lots of new options to "fossil search". file: [f3f73fd005] check-in: [ef5292645d] user: drh branch: help-search, size: 90679
12:49
Add support for search built-in help text. file: [9e0c3a4cc4] check-in: [64040c7254] user: drh branch: help-search, size: 87612
2025-02-06
11:07
A search command help text typo fix. file: [0a0b9e06f5] check-in: [3bf6a8042f] user: stephan branch: trunk, size: 86617
10:58
Help text: update two fts4 references to fts5. file: [e8e188b782] check-in: [17eb363cd4] user: stephan branch: trunk, size: 86614
2024-10-22
23:42
Extend [b82749b94bd1db3f] to include the fts reindexing step. file: [6a9ae77e87] check-in: [3d76303a4f] user: stephan branch: doc-branch-multi, size: 86614
2024-10-20
14:49
Add support for multiple branch names in the doc-branch setting, as discussed in [forum:520d420d04e482b2 | forum post 520d420d04]. file: [bc044fd663] check-in: [b82749b94b] user: stephan branch: doc-branch-multi, size: 86219
2024-08-30
09:39
Proposed fix for the search branch bug reported in [forum:520d420d04e482b2|forum post 520d420d04]. This seems to work but could use more testing. To hit the affected query, first run (fossil fts-config index off) then (fossil search -fts ...terms...). file: [6f9bb956a5] check-in: [f4fdd7d385] user: stephan branch: search-branch-fix, size: 85862
2024-07-03
10:26
Apply the logic in/around [ec68aaf42536b4fb] to the chat search so that it does not abort, and generate an error log entry, when given characters which fts5 does not like. file: [e9e388269d] check-in: [b698ba9942] user: stephan branch: fts5-chat-search, size: 85804
2024-07-01
17:25
Teach /chat search to use the same tokenizer as the main search index, defaulting to porter if the main search index is off, and reindex chat if the tokenizer is changed. The search config should arguably be expanded to provide the option of disabling chat search altogether, but that is beyond today's ambitions. Minor search result layout tweaks but there are still some fixes to do there. file: [6d88d848da] check-in: [778efb30f7] user: stephan branch: fts5-chat-search, size: 85306
2024-06-24
06:09
Ensure that the pattern string for search is all lower-case, so that FTS5 keywords like NOT and AND cannot cause confusion and errors. file: [8929a6b880] check-in: [ec68aaf425] user: drh branch: trunk, size: 84919
2024-04-10
11:31
When preparing a pattern for FTS search, if the pattern is empty convert it into a double-quoted empty string, to avoid FTS5 errors. file: [b857d9fd42] check-in: [5bb323ff9e] user: drh branch: trunk, size: 84850
2024-03-20
19:06
Fix a potential NULL pointer dereference in search if the search index is not correct. file: [f9c5c20536] check-in: [11ffd84a9a] user: drh branch: trunk, size: 84742
2024-02-02
22:18
Remove trailing whitespace from non-external C files. file: [13c001fcda] check-in: [7db0a2d910] user: danield branch: fix-overlength-lines, size: 84732
2024-01-18
14:50
Fix several harmless compiler warnings (turned off in the standard build). file: [f9e3c52f12] check-in: [ab05475997] user: danield branch: trunk, size: 84735
2024-01-15
12:00
Remove a now-unused static const from search.c to squelch a compiler warning. file: [f97855119e] check-in: [17fe108ed4] user: stephan branch: trunk, size: 84715
2024-01-09
17:18
Remerge the Wiki title search enhancement, after fixing it so that it does not disrupt check-in comment search. file: [fca83b2051] check-in: [9d9bf1abfb] user: drh branch: trunk, size: 85162
17:05
Improvements the "fossil search --fts": Add the --scope and --debug options and improve output formatting. file: [238abcebf4] check-in: [b7ef90c716] user: drh branch: trunk, size: 84855
15:14
Add the --fts option to the "fossil search" command. This option uses the same search mechanism as web search. Useful for debugging web search. file: [283ecf1300] check-in: [2ddf62a320] user: drh branch: trunk, size: 83101
2023-11-14
20:17
Add search for help pages. file: [4a87e8a678] check-in: [f0b960898e] user: preben branch: search-help-pages, size: 83125
2023-09-26
10:20
Generate output at the end of get_stext_by_mimetype() instead of within conditional branches. file: [e29b047c1a] check-in: [3105a0c5c3] user: preben branch: search-wiki-titles, size: 81891
10:18
Allow searching for wiki page titles as discussed in [forum:31d8831c2d9809fa]. file: [5fe60470be] check-in: [e6b8cc9f71] user: preben branch: search-wiki-titles, size: 82204
2023-09-09
15:09
Add missing mention of forum search in fts-config command. Reported in [forum:6eb7cec6aa|forum post 6eb7cec6aa]. file: [04884c4f8e] check-in: [71b591af26] user: stephan branch: trunk, size: 81788
2023-08-18
13:03
Added "unicode61" to search setup usage message file: [13782b1fcf] check-in: [9965e1d86f] user: wyoung branch: trunk, size: 81753
12:17
Add fts-config tokenizer unicode61 option. Prompted by [forum:a4bfcff66548a1ff|forum post a4bfcff66548a1ff]. file: [0eff20fa3f] check-in: [e180dbb455] user: stephan branch: trunk, size: 81743
2023-07-16
20:47
Add calls to cgi_check_for_malice() on many more web pages. Log all 418 responses to the error log. file: [b00e57e3b0] check-in: [40266bf9b2] user: drh branch: verify-options-cgi, size: 81458
2023-07-13
12:13
Reconcile a test in the FTS search with its original intent in [196dfedf7fc]; reported in [forum:fa13ae06d|forum post fa13ae06d]. file: [e7b8f5c327] check-in: [e88211628b] user: danield branch: trunk, size: 81432
2023-07-10
12:50
In the fts-config command and on the /srchsetup page, show how much space is used by the full-text index. file: [120b6a9915] check-in: [5c5e54928e] user: drh branch: trunk, size: 81432
2023-06-03
10:27
Fixed a typo in an error message file: [aab29e487c] check-in: [f25da6ec97] user: wyoung branch: trunk, size: 80936
2023-05-27
15:54
Do not allow non-alpha numeric ascii characters into the search pattern. Convert all such characters into a single space. file: [7cde6cb983] check-in: [196dfedf7f] user: drh branch: trunk, size: 80935
15:48
Do not allow the "." character inside of FTS5 search strings. file: [36038616af] check-in: [8a7609b11e] user: drh branch: typo, size: 80931
2023-05-10
18:40
Removed all of the XML-style " />" tag closing markers on empty tags such as "hr", "br", and "input" to placate modern HTML5 validators. That's the doctype we declare, not XHTML, so we should conform. (Besides which, the XHTML dream is dead.) file: [fb1a5b2b18] check-in: [f5482a0a79] user: wyoung branch: trunk, size: 80918
2023-04-18
17:45
Add FTS tokenizer selection to the /srchsetup page. file: [9c736d34a9] check-in: [9e52f8c050] user: stephan branch: fts5-trigram, size: 80920
2023-04-17
20:13
Replace another leftover use of the word 'stemmer' and clean up end-of-line whitespace in the change log. file: [ebc1f77d71] check-in: [bcff4d81bb] user: stephan branch: fts5-trigram, size: 80505
18:35
Replace a leftover use of the word 'stemmer' and add mention of the trigram tokenizer to the change log. file: [27eacb003d] check-in: [6a0858074d] user: stephan branch: fts5-trigram, size: 80503
17:25
Initial (and incomplete) work to extend FTS5 search to support the trigram tokenizer, per [forum:bc458aea069c29ae5d|forum post bc458aea069c29ae5d]. TODO is the addition of the trigram option in the UI-level search configuration. file: [2e3c1cb028] check-in: [06c99b83ba] user: stephan branch: fts5-trigram, size: 80483
2023-02-20
14:58
Change the typedef of u32 in search.c so that it works in older PPC macs. file: [4b0bddb4f8] check-in: [f82caec579] user: drh branch: trunk, size: 78088
2023-01-24
14:36
The search logic now works correctly (I think) regardless of whether the repository uses a legacy FTS4 index or a newer FTS5 index. This allows the Fossil binary to be upgraded on systems without disrupting the search feature and without requiring a search index rebuild. The search index is automatically upgraded to FTS5 the next time the search index is rebuilt. file: [a430c05c35] check-in: [a07e6b87cb] user: drh branch: search-fts5, size: 78067
03:26
Remove some end-of-line whitespace. No functional changes. file: [135647de34] check-in: [8307133b7c] user: stephan branch: search-fts5, size: 77008
02:57
Replace FTS4 with FTS5, per [forum:d05b1855aa|forum post d05b1855aa]. This has been only lightly tested and might require a repo rebuild (or that we rename the associated tables/views rather than recycle them). file: [0508e9160e] check-in: [c1933caf03] user: stephan branch: search-fts5, size: 77016
2023-01-09
13:06
Further consistency improvements in docs for various commands. file: [f141924931] check-in: [2512d2d472] user: km branch: trunk, size: 67143
2022-12-30
11:53
If there is a need to do lazy updates of the full text index during a request that is not from the same origin, then allow database writes for the duration of that update. Also, allow changes to USER and CONFIG tables when explicitly authorized by db_unprotect() even if the request that prompted the change is not from the same origin. file: [8768a9c4ef] check-in: [8e85d6ca22] user: drh branch: trunk, size: 67149
2022-12-21
09:00
Improved consistency for --help option descriptions: begin with uppercase letter; do not use a period at the end of short-ish sentences. file: [07cafa6eeb] check-in: [de684083c6] user: km branch: spelling-fixes, size: 67095
2022-11-13
16:26
Apply fixes to all web views to pass WCAG 2.1 tests performed by "axe DevTools" browser extension. Most fixes related to screen reader compatibility, like making sure that form elements have labels. Some color changes to improve contrast on Default skin. Made more HTML5 compliant. Minor improvement to select combo boxes for UX. Improved Search form UX. Two minor bug fixes for malformed HTML. Fixed help pages to resolve issues with non-compliant HTML being generated. Mostly documented at https://fossil-scm.org/forum/forumpost/aafb17a981df4166 file: [d10c69766e] check-in: [1f231db380] user: ericwikman branch: wcag-2.1, size: 67136
2022-07-17
23:48
Changed a number of "a" articles followed by vowels in docs and comments to "an", per [forum:/forumpost/3e6e40293f03f089 | a forum post]. file: [c213316a65] check-in: [99a319bdbf] user: wyoung branch: trunk, size: 67097
2022-06-07
06:22
Corrected a bit of misinformation in search.c's comments, per a report in the forum. file: [251e34cb3f] check-in: [6d6880c830] user: stephan branch: trunk, size: 67096
2021-08-16
00:11
Relax isSnippetMark() so that almost arbitrary search terms are highlighted. This change is preliminary and [forum:/forumpost/042e179e0c25b8|needs further analysis]. file: [0a07971e04] check-in: [6b37b55f75] user: george branch: search-terms-highlighting, size: 67105
2021-08-12
15:41
Added 'Results' to the title for /docsrch and /search pages when s=... param is passed in, analog to checkin [b0862611cc], per request in [forum:61bd27b76f4b8ae2 | forum post 61bd27b76f4b8ae2]. file: [835fca879d] check-in: [809c010db2] user: stephan branch: trunk, size: 67105
2021-07-08
17:43
Enhancement to codecheck1.c to verify that routines like db_set() use a string literal as the setting argument, and are thus impervious to injection attacks. file: [eeb374fc08] check-in: [0a5d0e191c] user: drh branch: trunk, size: 67041
2021-02-05
09:32
Amend 'fossil help' output for all commands to make options conform to GNU 'short|long' convention (e.g., -v|--verbose). file: [4b0965c1a3] check-in: [7f3c728db3] user: jamsek branch: trunk, size: 67023
2021-01-07
16:26
Add the --format option to the "fossil timeline" command. file: [2ab213f593] check-in: [e86aeb72ac] user: drh branch: trunk, size: 67023
2020-12-22
12:13
Removed the parameter from style_finish_page() since the resulting content div class is now redundant with respect to the body class. This potentially breaks CSS made against old class names that a prior commit on this branch changed, but such skins would be made against an unreleased version of Fossil, it's unlikely many are using that first version of the feature anyway, and most of the class names did *not* change unless you were targeting a "div" instead of "body" or just a generic class name. None of the shipping skins are affected. file: [2921a1f8a7] check-in: [0e83ca88ce] user: wyoung branch: body-feature-class, size: 67020
11:58
Calling the new style_set_current_feature() function to override the new TH1 variable $current_feature for Fossil UI pages where the page name isn't what we want used as the "body" CSS class. For the most part, this matches the value currently being passed to style_finish_page(), but a few have changed with the benefit of hindsight. Not all calls to style_finish_page() have a corresponding call to the new function since the default value for $current_page now suffices. file: [f431ab96b2] check-in: [8ac0830bfc] user: wyoung branch: body-feature-class, size: 67054
2020-12-18
15:05
Extend the timeline command to allow customized "pretty" formats. file: [1194821149] check-in: [5d3239bf58] user: danield branch: timeline-cmd-formatting, size: 67020
2020-11-07
13:25
Rename the "style_body_and_footer()" interface to "style_finish_page()" and add a more detailed header comment to the implementation. file: [c5cbf1d1c0] check-in: [942b2076c6] user: drh branch: default-css-cleanups, size: 67017
2020-11-05
23:15
Added a parameter to style_footer() and renamed it to match its actual function (style_body_and_footer()) so we can add a CSS class to each page that indicates which major Fossil feature served the page, so we can have module-specific CSS. file: [1d7b4ccb63] check-in: [ef5424b683] user: wyoung branch: default-css-cleanups, size: 67037
2020-06-19
05:30
Obsessively added a missing free() in search.c. file: [1fa8f8672a] check-in: [fa6da0d250] user: stephan branch: trunk, size: 66958
2020-06-18
17:42
Omit special characters from the search pattern for indexed search. file: [bd192fb150] check-in: [977bb3fdf2] user: drh branch: trunk, size: 66937
2020-06-16
20:46
Search improvements: Limit the number of search results to the value in the "search-limit" setting, or 100 results if the setting is omitted. And, show the date of each article if the date is not included as part of the title. file: [1e0a85a4e0] check-in: [13dfcdd957] user: drh branch: trunk, size: 66809
2020-04-05
23:45
Match the COMMAND and WEBPAGE names with _cmd and _page functions; forumpost/045bffda68 file: [26c8d43879] check-in: [06afb7022f] user: ashepilko branch: api-cleanup, size: 66488
19:44
Fixes to search. (1) Keep forum search up-to-date. (2) Do not add items to search if they are pending moderation. file: [711d196bbb] check-in: [5e28febf2b] user: drh branch: trunk, size: 66479
2020-04-04
19:34
Many improvements to the indexed search debugging logic. file: [ce115b6aca] check-in: [53d1f053ad] user: drh branch: trunk, size: 66451
18:03
Minor comment fixes in the search logic. No changes to code. file: [1d9255261f] check-in: [4d35160866] user: drh branch: trunk, size: 64715
2020-01-12
20:45
Fossil-defined SQL functions used inside of views for full-text-serch much be tagged using SQLITE_INNOCUOUS. file: [c1b0497b36] check-in: [9826bd007a] user: drh branch: trunk, size: 64130
2019-08-31
16:42
Merge in latest from trunk. file: [bde81598e2] check-in: [aa37639112] user: andybradford branch: db-begin-txn-updates, size: 64116
2019-07-16
20:02
Code cleanup: Add a lot of "const" qualifiers for static (string) arrays, where appropriate. This allows the C compiler to optimize more file: [9d6d840916] check-in: [70a94d0972] user: jan.nijtmans branch: trunk, size: 64122
2019-03-19
14:09
Replace most calls to db_begin_transaction() with db_begin_write() to avoid having a reader locking during a COMMIT. file: [00382430bd] check-in: [6cc5354821] user: andybradford branch: db-begin-txn-updates, size: 64086
2018-07-31
04:08
Add the /forum page with search and a list of recent threads. file: [c5ce3301a9] check-in: [05105248a1] user: drh branch: forum-v2, size: 64092
03:14
Enable search over the forum. file: [50b9c16b76] check-in: [b3c1ba372e] user: drh branch: forum-v2, size: 63859
2018-02-12
12:55
Fix incorrect setting name in the "fts-config" command. file: [41c7f1c7da] check-in: [ceba488122] user: drh branch: trunk, size: 61836
2017-12-14
18:03
Fix harmless coding style issues. file: [f38733fcd6] check-in: [dc7d0a2e27] user: drh branch: trunk, size: 61836
00:48
Remove the "autofocus" attribute from text inputs, to prevent CSS flashes. file: [9c50975f1c] check-in: [20e680aac7] user: drh branch: trunk, size: 61827
2017-11-30
17:58
Refactor the symlink processing logic so that most of the file access routines take a new parameter indicating the conditions under which symlinks should and should not be followed. This should fix a few bugs related to symlink processing. Lots of testing required before merging to trunk. file: [19cad825de] check-in: [e7767de263] user: drh branch: symlink-refactor, size: 61822
2017-11-27
11:26
Omit query parameters from the /timeline view of search results. Use the defaults. file: [c2f1a8090e] check-in: [cde6cbfc9d] user: drh branch: trunk, size: 61804
2017-11-18
17:49
Fix a crash that can occur in search when the FTS4 snippet() function returns NULL. file: [ce4fbba682] check-in: [cee4af9e9c] user: drh branch: trunk, size: 61813
2017-09-24
04:06
Fix some bugs in tech note search indexing file: [17694892cb] check-in: [76f8bfd5f9] user: andygoth branch: andygoth-search-technote, size: 61784
03:10
Add missing call to search_update_technote_index() file: [3e188e6f9e] check-in: [467512031f] user: andygoth branch: andygoth-search-technote, size: 61700
03:02
Correct alignment of fts-config output file: [47e7e8c08d] check-in: [a6c7ce9db8] user: andygoth branch: andygoth-search-technote, size: 61625
00:10
Begin work on searching technotes. Credit goes to Chris Rydalch for the idea. Sadly, this version doesn't work yet. Technote searches fail at this time. file: [dbce725e92] check-in: [94650be8de] user: andygoth branch: andygoth-search-technote, size: 61625
2017-05-11
09:06
Don't access g.argv[2], when g.argc indicates there's no such element. Reported by Tony Papadimitriou. file: [0de35ed3d0] check-in: [2d69772e49] user: jan.nijtmans branch: trunk, size: 59531
2017-01-19
13:46
Update the "search" command to honor the -R option. file: [82d3900b27] check-in: [377fbf2ca7] user: drh branch: trunk, size: 59531
2016-11-04
22:37
Consistently use the count(X) macro in place of sizeof(X)/sizeof(*X) throughout the Fossil core, excluding things that don't use makeheaders. Also use count(X) instead of ArraySize(X) which has the same definition. file: [f8f9ec5bcd] check-in: [e5b62edb28] user: andygoth branch: trunk, size: 59522
2016-10-29
16:50
Compiler warning (MSVC) in timeline.c, found by Kevin, reported on fossil-users list file: [8f9844875a] check-in: [fe3d30fc60] user: jan.nijtmans branch: trunk, size: 59558
2016-09-22
21:14
More use of row-values in the search mechanism. file: [e5d6a82db4] check-in: [bc21e0a4c8] user: drh branch: trunk, size: 59559
20:55
Fix the "fossil fts-config reindex" command so that it really does reindex everything. Fix the markdown HTML formatter so that it can be run from the command-line. Change a query in the search engine to use a row-value update, in order to beta-test the new row-value update mechanism of SQLite. file: [87a414c4d6] check-in: [b1b4eaa564] user: drh branch: trunk, size: 59596
2016-08-30
17:06
Fix incorrect encoding of hyperlinks in search results. file: [36783ae66c] check-in: [9dba92f4a8] user: drh branch: trunk, size: 59577
15:15
Fix a typo in a comment. No changes to code. file: [f48257b050] check-in: [cd822353fa] user: drh branch: trunk, size: 59577
13:44
Put the "trunk" in the document URL when the ftsdocs table is first constructed, rather than translating the URL upon display. file: [d15476c2c2] check-in: [58034a489a] user: drh branch: trunk, size: 59581
13:35
Add the /test-ftsdocs page, accessible only by administrators. Improved comments in the search logic. file: [b903503b50] check-in: [375bc71ea6] user: drh branch: trunk, size: 60226
00:49
In documentation search results, change URLs of the form "/doc/BRANCH/path" so that BRANCH is the branch name specified by the "doc-branch" setting. file: [0dd7f2a731] check-in: [fa947eebfd] user: drh branch: trunk, size: 54981
2016-08-19
00:13
Use the new SQLITE_DBCONFIG_MAINDBNAME feature of SQLite to eliminate the need for the db_name() hack. file: [5ee3087a8f] check-in: [d858f3da52] user: drh branch: omit-db_name, size: 54435
2016-06-25
03:56
Full-text search for check-in diffs. This works, but it creates a huge index (2x the size of the BLOB table) in spite of being a contentless index. The index is slow to build because of all the diffs that must be computed. Because the index is contentless, the snippet generator runs very slowly on queries - a typical query with a couple hundred hits takes several minutes. file: [17aec70d05] check-in: [68194175fb] user: drh branch: diff-search, size: 56165
2016-06-15
08:38
More consistancy in using <br /> and <hr /> HTML tags file: [b44df10abb] check-in: [bd559ff0d0] user: jan.nijtmans branch: trunk, size: 54536
2016-05-27
21:03
Compiler warning and coding style fixes. file: [0c90730db6] check-in: [d037468910] user: mistachkin branch: trunk, size: 54535
2016-04-07
18:41
Make usage of 'Usage:' and 'or:' consistent in all help text. file: [1be2c1663b] check-in: [8bfd9951ca] user: rberteig branch: trunk, size: 54527
2016-04-02
00:00
Add a plain-text equivalent of the /test-all-help page to the CLI. Complete a first pass for spelling and minor grammar over all command and page help text. file: [5bd4b2cb3d] check-in: [f070ec99ae] user: rberteig branch: ross-spellcheck, size: 54515
2016-04-01
13:37
Fix typos in comments. No changes to code. file: [1af6555e2f] check-in: [b6b50b1244] user: mistachkin branch: trunk, size: 54248
2016-02-20
13:21
Initial go at replacing URLs in the form ?name=xyz with /xyz except in places where doing so is either known to break (style_set_current_page() calls) or would require notable refactoring (/dir hyperlink generation). file: [d47b5e346a] check-in: [e8735d6a47] user: stephan branch: slash-name-links, size: 54239
2015-12-23
11:10
Improvements to handling of localtime. The 'utc' and 'localtime' query parameters now work on all web pages. Timestamps can be expressed with a timezone modifier and that works correctly. file: [3ddd0bd72f] check-in: [ea63a2d1f4] user: drh branch: trunk, size: 54249
2015-05-13
22:40
Change search_init() to be a file-scope symbol so that it does not conflict with a function of the same name in libel.so. file: [b02a73b942] check-in: [e06e65bbf2] user: drh branch: trunk, size: 54262
21:55
rename search_init() -> fossil_search_init() to avoid name collision w/ libedit (patch sumbmitted by Warren Young)

closed -- see simpler fix @ [e06e65bbf2] file: [05a2952916] check-in: [947369c124] user: bch branch: trunk, size: 54363

2015-04-27
13:19
Provide help text for all commands and webpages. file: [c27533caf6] check-in: [7ab03289ee] user: drh branch: trunk, size: 54255
2015-04-03
01:44
Fix search result title handling for 'documents' that are not wiki, markdown, or HTML. file: [3f47dd6d07] check-in: [9b8d2dcb9f] user: mistachkin branch: trunk, size: 53956
2015-04-01
02:45
When searching documents, always use the file name as the title in the results. In general, always prefer to use the name as the title, when non-NULL. file: [2ff5f60dd4] check-in: [2d3dc9b00d] user: mistachkin branch: titleAdj, size: 53931
2015-03-09
08:58
Eliminate some unnecessary end-of-line spacing file: [edaaa322e4] check-in: [7fbc1c3a1f] user: jan.nijtmans branch: trunk, size: 53924
2015-03-02
22:38
Fix the (obsolete) "fossil search" command. file: [d0d5e94f53] check-in: [83509c149e] user: drh branch: trunk, size: 53932
2015-02-28
10:11
replaced 'checkin' with 'check-in' in code-comment, inline command help-text, SQL-statement comment, fatal error messages and some non-functional webpage-content file: [dce99140d8] check-in: [7c30266a45] user: michai branch: ml-jb-doc-typos, size: 53906
2015-02-16
02:09
Fix harmless compiler warnings. file: [62eb5f6669] check-in: [c9db8c7958] user: mistachkin branch: trunk, size: 53905
2015-02-14
02:12
Improvements to the ranking function. Add the undocumented "debug" query parameter to /search. file: [232bb0f2cc] check-in: [9f67861aed] user: drh branch: search-enhancements, size: 53901
00:37
Enabled indexed search with separate title and body and with the option to use the Porter stemmer. file: [a565514b8f] check-in: [71295a98b7] user: drh branch: search-enhancements, size: 53008
2015-02-13
23:43
Show document, ticket, and wiki titles on the result page of unindexed search. file: [98a117c295] check-in: [0e77f1fbc0] user: drh branch: search-enhancements, size: 51916
22:03
When extracting search text from tickets, use the title column for the title and pay attention to mimetypes when translating. file: [6cbcf39c55] check-in: [b552f55b1f] user: drh branch: search-enhancements, size: 49202
21:21
Merge enhancements and fixes from trunk. file: [a6b7ea65b6] check-in: [23c86b503f] user: drh branch: search-enhancements, size: 48396
2015-02-12
02:32
Improvements to the way that searchable text is parsed out of documents, wiki, and check-in comments. The first line of the text is the title. Subsequent lines are message body. Still need to do this for tickets. file: [ec85f61c58] check-in: [837d9b5b18] user: drh branch: search-enhancements, size: 48402
2015-02-06
09:55
eol-spacing fixes. file: [76d74f4e00] check-in: [b8e3dc16f4] user: jan.nijtmans branch: trunk, size: 46860
03:28
Do not let the "Lines:" box go below one on the /timeline. If it does, automatically revert to 10 lines. Also, arrange for the default number of lines to be 50 in most cases, but only 11 if the c= (circa) query parameter is used. Use n=all to see the entire history of the graph. file: [a5f6b0f7f6] check-in: [99e081efe5] user: drh branch: form-submenu, size: 46866
03:00
Add the cgi_query_parameters_to_url() routine and use it to cause all query parameters on timeline to be exported. (Need to make this same changes for all other uses of url_render()). Make "context" timelines 11 entries by default. Other cleanups. file: [80a212ef91] check-in: [b6e1f61aaa] user: drh branch: form-submenu, size: 46871
2015-02-05
15:48
Improvements to search dialog boxes. On the /search menu, allow restricting the search to a specific category of document. Add a search submenu item on the timeline page. file: [73fe9a4c49] check-in: [49a990b6fd] user: drh branch: form-submenu, size: 46870
15:06
Avoid unnecessary database interaction in the search_restrict() function. file: [f093218b59] check-in: [76f9036b71] user: drh branch: form-submenu, size: 46096
09:01
Unfinished comment in search.c, and some more end-of-line spacing removals. No change in functionality. file: [af1ff20515] check-in: [5260fbf632] user: jan.nijtmans branch: trunk, size: 45925
01:56
Fix search result links when the FTS index is not in use. file: [ec12108dd3] check-in: [7e56e36080] user: mistachkin branch: trunk, size: 45948
2015-02-04
13:32
Add autofocus to search entry boxes. file: [d53872f8d9] check-in: [c799881474] user: drh branch: trunk, size: 45956
03:12
Increase the default number of tokens present in snippets from an indexed search so that a typical snippet is about two lines of text instead of just one. file: [d8993bf13f] check-in: [188c62c2d5] user: drh branch: trunk, size: 45867
2015-02-03
18:10
Make sure search-related SQL functions are registered before running the SQL statements in search_touch(). file: [98a4e12627] check-in: [a611ea3671] user: drh branch: trunk, size: 45861
16:54
Get "fossil rebuild" to work on an indexed database, and automatically recompute the index. file: [0ad4380823] check-in: [18c0ab6bf1] user: drh branch: trunk, size: 45833
16:40
Take out the "test-fts" command and replace it with "fts-config" which has a more user-friendly format. Add "fts-config" to the "all" command too. file: [d690c39043] check-in: [7b6adfbf92] user: drh branch: trunk, size: 45626
15:24
Use a CROSS JOIN to fix an inefficient query in the indexed full-text search. file: [c64bb76eed] check-in: [005ba1e28f] user: drh branch: trunk, size: 44720
15:07
Bug fix in the search-snippet HTML sanitizer. file: [f29c1f6c18] check-in: [23d659de2f] user: drh branch: trunk, size: 44710
13:58
Do a better job of escaping stray HTML markup in snippet text. file: [08c2135e18] check-in: [bc8075de5f] user: drh branch: trunk, size: 44702
13:17
Unify the search screen generator code. Provide class marks to support CSS customization. file: [2eb22e15f9] check-in: [bb4a130121] user: drh branch: trunk, size: 43551
06:05
Fix to hyperlinks on search results. file: [243d90be0c] check-in: [1c25812337] user: drh branch: trunk, size: 42377
04:45
Put the search snippets inside of <span class='snippet'>. file: [c84bab8aa0] check-in: [1b08cfe215] user: drh branch: indexed-fts, size: 42375
04:39
Highlight matching works on a search using <mark> rather than <b> and add appropriate CSS to make "mark" look like "b" by default. file: [8fdf564ead] check-in: [c5a2832eeb] user: drh branch: indexed-fts, size: 42339
04:10
Restrict indexed search according to the search flags. Fix the generation of the index for wiki pages. Fix db_multi_exec() so that it aborts with a sensible message following a syntax error. file: [bb50c892aa] check-in: [780117d223] user: drh branch: indexed-fts, size: 42314
03:29
Populate the search index with check-ins, tickets, and wiki. file: [dd32cc6462] check-in: [786a3632a8] user: drh branch: indexed-fts, size: 41567
01:55
Improved ranking function for the indexed search. file: [10297184e3] check-in: [91da57d911] user: drh branch: indexed-fts, size: 41288
00:27
Document search now works with an index. Still no configuration screens for indexed search, however. full-scan search continues to work as before. file: [44fd7410e5] check-in: [1bad221ecb] user: drh branch: indexed-fts, size: 39923
2015-02-02
20:53
Incremental check-in for work on the indexed full-text search. file: [a3e8014243] check-in: [ec0e590191] user: drh branch: indexed-fts, size: 39350
15:01
Incremental check-in: added the "fossil test-fts fill" test command. file: [7d5382df31] check-in: [32d904e9cf] user: drh branch: indexed-fts, size: 34502
14:05
Initial infrastructure for indexed full-text search using FTS4. file: [7506dc1f59] check-in: [64e6a10013] user: drh branch: indexed-fts, size: 31806
05:49
Fix a potential read past the end of an array in the full-text search. file: [873ed1f689] check-in: [41e5da0234] user: drh branch: trunk, size: 28915
05:33
Disable spider defenses on search result links. file: [b64aaa8ae8] check-in: [f9fce79402] user: drh branch: trunk, size: 28885
04:05
Change the permuted index from wiki to embedded HTML and add a search form. file: [f3fe47f8a9] check-in: [63c2c73246] user: drh branch: trunk, size: 28885
03:42
Improved interfaces for Ticket and Wiki searching. file: [e2a6349e2d] check-in: [6714c9471b] user: drh branch: trunk, size: 28627
01:32
Add support for searching tickets. This is still a full-scan search. file: [c23f0f646a] check-in: [e2230a446b] user: drh branch: trunk, size: 27686
00:17
Added the /srchsetup page for configuring the /search screen. file: [32254659c8] check-in: [ca833ff86f] user: drh branch: trunk, size: 25652
2015-02-01
00:15
The /search page now covers wiki and check-in comments. And the formatting of snippets is improved. The search is still done by full-scan but the infrastructure is coming into place to handle the search using an index. file: [83a2aaa95f] check-in: [8e02c26ad2] user: drh branch: trunk, size: 25694
2015-01-31
22:13
Initial work on the search_stext() function used to extract searchable text from formatted files. file: [d334261ee3] check-in: [48e1e18304] user: drh branch: trunk, size: 20723
2015-01-28
15:11
Add an experimental /search page for embedded documentation. Need to enhance with (1) wiki search, (2) ticket search, (3) configuration options, and (4) CSS, and maybe other things as well. But it is a start. file: [5bd264b594] check-in: [046d7430bf] user: drh branch: trunk, size: 17868
01:32
Improvements to the unindexed full-text-search function. Changes not yet visible in the interface. file: [02121c15b1] check-in: [128e95e017] user: drh branch: trunk, size: 13027
2015-01-19
18:38
Fix harmless compiler warning seen with MSVC. file: [8a4df7e4c4] check-in: [ac36755f31] user: mistachkin branch: trunk, size: 7618
2015-01-15
09:28
Remove spacings at end-of-line. No change in any functionality. file: [1369f40822] check-in: [080ab8cb0a] user: jan.nijtmans branch: trunk, size: 7610
2014-12-17
16:27
Deleted: Remove the code that implemented legacy "fossil search" command. FTS4 will be used moving forward. check-in: [389c70a56a] user: drh branch: search-using-fts4, size: 0
16:19
Begin adding infrastructure to support full-text search using FTS4. file: [d01f1a3aab] check-in: [9f9dfe3a98] user: drh branch: search-using-fts4, size: 7637
2014-12-11
22:23
"const" the conts (typo) (ref: [ticket]) file: [ba6851ec97] check-in: [37e234fa88] user: bch branch: trunk, size: 7627
14:59
Add a link to the http://fuelscm.org/ project on the Fossil homepage. Oops: Some other unrelated and experimental changes to the "search" command also got folded into this check-in file: [458d2db76e] check-in: [85f265625b] user: drh branch: trunk, size: 7627
2014-10-20
15:01
Add a custom static analysis program that verifies the arguments to printf-style varargs routines used in Fossil. Adjust the source code to be more robust for printf format errors and to fix a few minor problems found by the static checker. file: [76f0639e7b] check-in: [0a7e326fa4] user: drh branch: compile-time-print-checking, size: 6865
2014-08-15
09:24
More style fixes, e.g. c/char const/const char/ file: [7226c2f960] check-in: [38421a9c99] user: jan.nijtmans branch: trunk, size: 6851
2014-06-16
09:05
Merge trunk. Make it work on Windows too. Variable width output on more commands. file: [38681b8e9c] check-in: [40710b7a05] user: jan.nijtmans branch: autoadjust, size: 6852
2014-06-13
14:21
Auto-adjust the width of timeline (and various other output places) according to real terminal width. Suggested by Baptiste Daroussin. file: [a8638de188] check-in: [c4891e24af] user: jan.nijtmans branch: autoadjust, size: 6957
2014-04-23
14:14
Add option -W|--width to "fossil stash ls" and "fossil leaves" commands. file: [0c467c67e8] check-in: [fa6ece72b6] user: jan.nijtmans branch: trunk, size: 6852
2014-01-28
08:20
More removals of unnecessary end-of-line spaces. No change in code. file: [6471b6201f] check-in: [45f35169f2] user: jan.nijtmans branch: trunk, size: 6852
2014-01-09
21:10
Add -width option to the search command. file: [9700685108] check-in: [e4a6159ba3] user: mistachkin branch: trunk, size: 6858
20:59
Fix a possible NULL-pointer dereference in the "fossil search" command. file: [5a12608ea1] check-in: [5dc60b1faf] user: drh branch: trunk, size: 6506
2013-12-28
22:41
Eliminate the need to compile SQLite with -Dlocaltime=fossil_locatime. This makes the timeline-utc setting work when fossil is configured with --disable-internal-sqlite. file: [5092080bc6] check-in: [d7fd72dc30] user: jan.nijtmans branch: timeline-utc, size: 6476
2013-10-29
12:58
Fix existing print_timeline() calls, so they return the same output as trunk by default. file: [bd9e49cce5] check-in: [11634df5ea] user: jan.nijtmans branch: timeline_cmd_dash_n_fix, size: 6466
11:06
merge trunk file: [7bf7bd8e54] check-in: [1d6cccc552] user: jan.nijtmans branch: timeline_cmd_dash_n_fix, size: 6466
2013-10-26
09:06
Allow comment_print() to handle lines >400 characters. Add parameter "width" to print_timeline() function. file: [29145119ef] check-in: [b2455507cb] user: jan.nijtmans branch: trunk, size: 6515
2013-10-25
12:42
Merge trunk. Add the "-W|--width WIDTH" option to "fossil timeline". Default is 80. file: [8c8cb06ab7] check-in: [3710f2ac5b] user: jan.nijtmans branch: timeline_cmd_dash_n_fix, size: 6468
2013-10-22
07:46
Adapt other callers of print_timeline(), so they show as well whether the limit was reached. file: [047036ee31] check-in: [25d0049045] user: jan.nijtmans branch: timeline_cmd_dash_n_fix, size: 6464
2013-10-18
03:13
Simplify the entry/line limit for the timeline output. Make it more accurate in verbose mode. Style fixes. file: [76212c3875] check-in: [695a3c13bd] user: mistachkin branch: timeline_cmd_dash_n_fix-2, size: 6526
2013-10-17
12:22
Minor suggested update: - If N=0 there should be no limit. - If N<0 (undocumented) restore the old behavior of counting lines in stead of entries. file: [057bd2ff54] check-in: [6c02f699af] user: jan.nijtmans branch: timeline_cmd_dash_n_fix-2, size: 6512
2013-07-21
16:38
Expanded "search" command flags: (-limit|-n #) limits the number of results and (-all|-a) disables the "lopping off" of the bottom fraction of the results. file: [b11073e3b3] check-in: [1064dfac12] user: stephan branch: trunk, size: 6511
2012-11-04
12:59
Fix typos. file: [fe3c94ac8c] check-in: [45065c5c28] user: dmitry branch: spelling, size: 5535
2012-08-29
13:57
Allow UTF-8 characters in sources. translate.exe will translate it to ASCII file: [f2349954a3] check-in: [9f6abc5968] user: jan.nijtmans branch: msvc-broken, size: 5534
2012-06-29
15:59
Update to the latest SQLite4 that requires converting preprocessor macro prefixes from "SQLITE_" to "SQLITE4_". file: [67b75b6cf4] check-in: [0328d68181] user: drh branch: sqlite4, size: 5536
2012-06-27
12:30
Begin a branch that is modified to use sqlite4 instead of sqlite3 as the storage engine. This check-in compiles (on unix) but does not work. file: [bf8c2e6bb6] check-in: [6823912746] user: drh branch: sqlite4, size: 5535
2012-03-29
14:54
Add vim modline everywhere file: [a669a99184] check-in: [a496d8e88d] user: mgagnon branch: mgagnon_fix, size: 5577
2011-11-03
17:31
Break up the command-line commands into commonly-use and auxiliary commands and only show the commonly-used ones with "fossil help". Add a new command "fossil commands" to show auxiliary and test commands. file: [0dfee06e96] check-in: [841772c858] user: drh branch: trunk, size: 5535
2011-08-19
23:27
Add a -showfiles flag to timeline. fossil ... -showfiles will now print a list of files after the checkin comment, like the "Show Files" button in the Web GUI. The format of the printed lines is the same as update. file: [f1190efdee] check-in: [b14ab41ff8] user: venkat branch: venks-emacs, size: 5534
2010-12-19
02:09
Clear compiler warnings on OpenBSD. No functional code changes. file: [9d53c57393] check-in: [bbbb35a3c6] user: drh branch: trunk, size: 5531
2010-10-15
17:13
Replace all malloc() calls with fossil_malloc(). The fossil_malloc() routine panics rather than return a NULL pointer. file: [d3a38c62ec] check-in: [8f41b2fa75] user: drh branch: trunk, size: 5519
2010-10-14
19:14
Remove all use of ctypes.h in order to avoid compiler warnings and other problems associated with changing locales. file: [e77afb5728] check-in: [2fac809165] user: drh branch: trunk, size: 5556
2010-05-24
15:37
added a check for null document pointers in search_score that corrected search form crash file: [4e027594e6] check-in: [cad393d597] user: Zeugmal branch: exp-search, size: 9568
2010-05-21
21:05
adding code, wiki, tickets, checkins search functionality file: [406d47b67e] check-in: [73d274360c] user: Zach branch: exp-search, size: 9536
2010-05-16
19:08
Change from GPL to the Simplified BSD License. file: [953d09490f] check-in: [c06edd231f] user: drh branch: clear-title, size: 5542
2009-12-31
14:49
Fixed minor spelling error file: [609bf10534] check-in: [efdad08182] user: jeremy_c branch: jeremy_c-timeline, size: 5818
2009-11-08
21:41
Add the "search" command to the command-line interface. This command is still experimental. Currently it only search the timeline. file: [669b17b177] check-in: [20600107f1] user: drh branch: trunk, size: 5817
2009-10-18
18:21
Added: Begin adding a search capability; the code is not yet connected up. Also update to the latest version of SQLite. file: [b8713502ff] check-in: [232d10b736] user: drh branch: trunk, size: 5644