Fossil

File History
Login

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

History of src/search.c

2018-07-31
04:08
Add the /forum page with search and a list of recent threads. file: [c5ce3301] check-in: [05105248] user: drh branch: forum-v2, size: 64092
03:14
Enable search over the forum. file: [50b9c16b] check-in: [b3c1ba37] user: drh branch: forum-v2, size: 63859
2018-02-12
12:55
Fix incorrect setting name in the "fts-config" command. file: [41c7f1c7] check-in: [ceba4881] user: drh branch: trunk, size: 61836
2017-12-14
18:03
Fix harmless coding style issues. file: [f38733fc] check-in: [dc7d0a2e] user: drh branch: trunk, size: 61836
00:48
Remove the "autofocus" attribute from text inputs, to prevent CSS flashes. file: [9c50975f] check-in: [20e680aa] 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: [19cad825] check-in: [e7767de2] 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: [c2f1a809] check-in: [cde6cbfc] 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: [ce4fbba6] check-in: [cee4af9e] user: drh branch: trunk, size: 61813
2017-09-24
04:06
Fix some bugs in tech note search indexing file: [17694892] check-in: [76f8bfd5] user: andygoth branch: search-technote, size: 61784
03:10
Add missing call to search_update_technote_index() file: [3e188e6f] check-in: [46751203] user: andygoth branch: search-technote, size: 61700
03:02
Correct alignment of fts-config output file: [47e7e8c0] check-in: [a6c7ce9d] user: andygoth branch: 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: [dbce725e] check-in: [94650be8] user: andygoth branch: 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: [0de35ed3] check-in: [2d69772e] user: jan.nijtmans branch: trunk, size: 59531
2017-01-19
13:46
Update the "search" command to honor the -R option. file: [82d3900b] check-in: [377fbf2c] 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: [f8f9ec5b] check-in: [e5b62edb] 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: [8f984487] check-in: [fe3d30fc] user: jan.nijtmans branch: trunk, size: 59558
2016-09-22
21:14
More use of row-values in the search mechanism. file: [e5d6a82d] check-in: [bc21e0a4] 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: [87a414c4] check-in: [b1b4eaa5] user: drh branch: trunk, size: 59596
2016-08-30
17:06
Fix incorrect encoding of hyperlinks in search results. file: [36783ae6] check-in: [9dba92f4] user: drh branch: trunk, size: 59577
15:15
Fix a typo in a comment. No changes to code. file: [f48257b0] check-in: [cd822353] 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: [d15476c2] check-in: [58034a48] user: drh branch: trunk, size: 59581
13:35
Add the /test-ftsdocs page, accessible only by administrators. Improved comments in the search logic. file: [b903503b] check-in: [375bc71e] 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: [0dd7f2a7] check-in: [fa947eeb] 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: [5ee3087a] check-in: [d858f3da] 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: [17aec70d] check-in: [68194175] user: drh branch: diff-search, size: 56165
2016-06-15
08:38
More consistancy in using <br /> and <hr /> HTML tags file: [b44df10a] check-in: [bd559ff0] user: jan.nijtmans branch: trunk, size: 54536
2016-05-27
21:03
Compiler warning and coding style fixes. file: [0c90730d] check-in: [d0374689] user: mistachkin branch: trunk, size: 54535
2016-04-07
18:41
Make usage of 'Usage:' and 'or:' consistent in all help text. file: [1be2c166] check-in: [8bfd9951] 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: [5bd4b2cb] check-in: [f070ec99] user: rberteig branch: ross-spellcheck, size: 54515
2016-04-01
13:37
Fix typos in comments. No changes to code. file: [1af6555e] check-in: [b6b50b12] 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: [d47b5e34] check-in: [e8735d6a] 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: [3ddd0bd7] check-in: [ea63a2d1] 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: [b02a73b9] check-in: [e06e65bb] 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: [05a29529] check-in: [947369c1] user: bch branch: trunk, size: 54363
2015-04-27
13:19
Provide help text for all commands and webpages. file: [c27533ca] check-in: [7ab03289] 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: [3f47dd6d] check-in: [9b8d2dcb] 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: [2ff5f60d] check-in: [2d3dc9b0] user: mistachkin branch: titleAdj, size: 53931
2015-03-09
08:58
Eliminate some unnecessary end-of-line spacing file: [edaaa322] check-in: [7fbc1c3a] user: jan.nijtmans branch: trunk, size: 53924
2015-03-02
22:38
Fix the (obsolete) "fossil search" command. file: [d0d5e94f] check-in: [83509c14] 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: [dce99140] check-in: [7c30266a] user: michai branch: ml-jb-doc-typos, size: 53906
2015-02-16
02:09
Fix harmless compiler warnings. file: [62eb5f66] check-in: [c9db8c79] 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: [232bb0f2] check-in: [9f67861a] 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: [a565514b] check-in: [71295a98] 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: [98a117c2] check-in: [0e77f1fb] 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: [6cbcf39c] check-in: [b552f55b] user: drh branch: search-enhancements, size: 49202
21:21
Merge enhancements and fixes from trunk. file: [a6b7ea65] check-in: [23c86b50] 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: [ec85f61c] check-in: [837d9b5b] user: drh branch: search-enhancements, size: 48402
2015-02-06
09:55
eol-spacing fixes. file: [76d74f4e] check-in: [b8e3dc16] 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: [a5f6b0f7] check-in: [99e081ef] 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: [80a212ef] check-in: [b6e1f61a] 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: [73fe9a4c] check-in: [49a990b6] user: drh branch: form-submenu, size: 46870
15:06
Avoid unnecessary database interaction in the search_restrict() function. file: [f093218b] check-in: [76f9036b] 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: [af1ff205] check-in: [5260fbf6] user: jan.nijtmans branch: trunk, size: 45925
01:56
Fix search result links when the FTS index is not in use. file: [ec12108d] check-in: [7e56e360] user: mistachkin branch: trunk, size: 45948
2015-02-04
13:32
Add autofocus to search entry boxes. file: [d53872f8] check-in: [c7998814] 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: [d8993bf1] check-in: [188c62c2] 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: [98a4e126] check-in: [a611ea36] user: drh branch: trunk, size: 45861
16:54
Get "fossil rebuild" to work on an indexed database, and automatically recompute the index. file: [0ad43808] check-in: [18c0ab6b] 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: [d690c390] check-in: [7b6adfbf] user: drh branch: trunk, size: 45626
15:24
Use a CROSS JOIN to fix an inefficient query in the indexed full-text search. file: [c64bb76e] check-in: [005ba1e2] user: drh branch: trunk, size: 44720
15:07
Bug fix in the search-snippet HTML sanitizer. file: [f29c1f6c] check-in: [23d659de] user: drh branch: trunk, size: 44710
13:58
Do a better job of escaping stray HTML markup in snippet text. file: [08c2135e] check-in: [bc8075de] user: drh branch: trunk, size: 44702
13:17
Unify the search screen generator code. Provide class marks to support CSS customization. file: [2eb22e15] check-in: [bb4a1301] user: drh branch: trunk, size: 43551
06:05
Fix to hyperlinks on search results. file: [243d90be] check-in: [1c258123] user: drh branch: trunk, size: 42377
04:45
Put the search snippets inside of <span class='snippet'>. file: [c84bab8a] check-in: [1b08cfe2] 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: [8fdf564e] check-in: [c5a2832e] 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: [bb50c892] check-in: [780117d2] user: drh branch: indexed-fts, size: 42314
03:29
Populate the search index with check-ins, tickets, and wiki. file: [dd32cc64] check-in: [786a3632] user: drh branch: indexed-fts, size: 41567
01:55
Improved ranking function for the indexed search. file: [10297184] check-in: [91da57d9] 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: [44fd7410] check-in: [1bad221e] user: drh branch: indexed-fts, size: 39923
2015-02-02
20:53
Incremental check-in for work on the indexed full-text search. file: [a3e80142] check-in: [ec0e5901] user: drh branch: indexed-fts, size: 39350
15:01
Incremental check-in: added the "fossil test-fts fill" test command. file: [7d5382df] check-in: [32d904e9] user: drh branch: indexed-fts, size: 34502
14:05
Initial infrastructure for indexed full-text search using FTS4. file: [7506dc1f] check-in: [64e6a100] 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: [873ed1f6] check-in: [41e5da02] user: drh branch: trunk, size: 28915
05:33
Disable spider defenses on search result links. file: [b64aaa8a] check-in: [f9fce794] user: drh branch: trunk, size: 28885
04:05
Change the permuted index from wiki to embedded HTML and add a search form. file: [f3fe47f8] check-in: [63c2c732] user: drh branch: trunk, size: 28885
03:42
Improved interfaces for Ticket and Wiki searching. file: [e2a6349e] check-in: [6714c947] user: drh branch: trunk, size: 28627
01:32
Add support for searching tickets. This is still a full-scan search. file: [c23f0f64] check-in: [e2230a44] user: drh branch: trunk, size: 27686
00:17
Added the /srchsetup page for configuring the /search screen. file: [32254659] check-in: [ca833ff8] 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: [83a2aaa9] check-in: [8e02c26a] 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: [d334261e] check-in: [48e1e183] 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: [5bd264b5] check-in: [046d7430] user: drh branch: trunk, size: 17868
01:32
Improvements to the unindexed full-text-search function. Changes not yet visible in the interface. file: [02121c15] check-in: [128e95e0] user: drh branch: trunk, size: 13027
2015-01-19
18:38
Fix harmless compiler warning seen with MSVC. file: [8a4df7e4] check-in: [ac36755f] user: mistachkin branch: trunk, size: 7618
2015-01-15
09:28
Remove spacings at end-of-line. No change in any functionality. file: [1369f408] check-in: [080ab8cb] user: jan.nijtmans branch: trunk, size: 7610
2014-12-17
16:19
Begin adding infrastructure to support full-text search using FTS4. file: [d01f1a3a] check-in: [9f9dfe3a] user: drh branch: search-using-fts4, size: 7637
2014-12-11
22:23
"const" the conts (typo) (ref: [ticket]) file: [ba6851ec] check-in: [37e234fa] 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: [458d2db7] check-in: [85f26562] 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: [76f0639e] check-in: [0a7e326f] 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: [7226c2f9] check-in: [38421a9c] 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: [38681b8e] check-in: [40710b7a] 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: [a8638de1] check-in: [c4891e24] 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: [0c467c67] check-in: [fa6ece72] 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: [6471b620] check-in: [45f35169] user: jan.nijtmans branch: trunk, size: 6852
2014-01-09
21:10
Add -width option to the search command. file: [97006851] check-in: [e4a6159b] user: mistachkin branch: trunk, size: 6858
20:59
Fix a possible NULL-pointer dereference in the "fossil search" command. file: [5a12608e] check-in: [5dc60b1f] 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: [5092080b] check-in: [d7fd72dc] 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: [bd9e49cc] check-in: [11634df5] user: jan.nijtmans branch: timeline_cmd_dash_n_fix, size: 6466
11:06
merge trunk file: [7bf7bd8e] check-in: [1d6cccc5] 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: [29145119] check-in: [b2455507] 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: [8c8cb06a] check-in: [3710f2ac] 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: [047036ee] check-in: [25d00490] 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: [76212c38] check-in: [695a3c13] 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: [057bd2ff] check-in: [6c02f699] 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: [b11073e3] check-in: [1064dfac] user: stephan branch: trunk, size: 6511
2012-11-04
12:59
Fix typos. file: [fe3c94ac] check-in: [45065c5c] 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: [f2349954] check-in: [9f6abc59] 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: [67b75b6c] check-in: [0328d681] 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: [bf8c2e6b] check-in: [68239127] user: drh branch: sqlite4, size: 5535
2012-03-29
14:54
Add vim modline everywhere file: [a669a991] check-in: [a496d8e8] 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: [0dfee06e] check-in: [841772c8] 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: [f1190efd] check-in: [b14ab41f] user: venkat branch: venks-emacs, size: 5534
2010-12-19
02:09
Clear compiler warnings on OpenBSD. No functional code changes. file: [9d53c573] check-in: [bbbb35a3] 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: [d3a38c62] check-in: [8f41b2fa] 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: [e77afb57] check-in: [2fac8091] 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: [4e027594] check-in: [cad393d5] user: Zeugmal branch: exp-search, size: 9568
2010-05-21
21:05
adding code, wiki, tickets, checkins search functionality file: [406d47b6] check-in: [73d27436] user: Zach branch: exp-search, size: 9536
2010-05-16
19:08
Change from GPL to the Simplified BSD License. file: [953d0949] check-in: [c06edd23] user: drh branch: clear-title, size: 5542
2009-12-31
14:49
Fixed minor spelling error file: [609bf105] check-in: [efdad081] 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: [669b17b1] check-in: [20600107] user: drh branch: trunk, size: 5817
2009-10-18
18:21
Begin adding a search capability; the code is not yet connected up. Also update to the latest version of SQLite. file: [b8713502] check-in: [232d10b7] user: drh branch: trunk, size: 5644 Added