You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
-
# Text Sherlock (or Sherlock or TS)
1
+
# Text Sherlock (or Sherlock)
2
2
3
-
Provides a fast, easy to install and use search engine for text but, mostly for source code. [OpenGrok](https://github.com/OpenGrok/OpenGrok) requires too much time to install (though it may be worth it for some). Sherlock will give you a much easier setup, a text indexer, and a web app interface for searching.
3
+
Provides a fast, easy to install and simple to use search engine for text, but optimized for source code. An alternative, [OpenGrok](https://github.com/OpenGrok/OpenGrok), requires too much time to install (though it may be worth it for some), but is more feature rich. Text Sherlock will give you a much easier setup, a text indexer, and a web app interface for searching with _very little_ effort.
4
4
5
5
[Soli Deo Gloria](https://perfectGod.com)
6
6
7
7
## Basic Setup
8
8
9
9
Instructions:
10
10
11
-
1. Download [sherlock](https://github.com/cbess/text-sherlock) source from [GitHub](https://github.com/cbess/text-sherlock).
12
-
1. Extract/place the sherlock source code in the desired (install) directory. This will be where sherlock lives.
11
+
1. Download [Sherlock](https://github.com/cbess/text-sherlock) source from [GitHub](https://github.com/cbess/text-sherlock).
12
+
1. Extract/place the Sherlock source code in the desired (install) directory. This will be where Sherlock lives.
13
13
1. Run `sh setup/virtualenv-setup.sh` to setup an isolated environment and download core packages.
14
14
1. Configure settings. The defaults in [`settings.py`](settings.py) provide documentation for each setting.
15
15
- Copy [`example.local_settings.yml`](example.local_settings.yml) to `local_settings.yml`.
16
16
- Override/copy any setting from [`settings.py`](settings.py) to `local_settings.yml` (change the values as needed). All YAML keys/options **must** be lowercase.
17
17
1. Run `source sherlock_env/bin/activate` to enter the virtual environment.
18
18
1. Run `python main.py --index update` or `--index rebuild` to index the path specified in the settings. Watch indexing output.
19
19
1. Run `python main.py --runserver` to start the web server.
20
-
1. Go to `http://localhost:7777` to access the web interface. Uses the [twitter bootstrap](http://getbootstrap.com/) for its UI.
20
+
1. Go to `http://localhost:7777` to access the web interface. Uses the [Bootstrap](https://getbootstrap.com/)toolkit for it's UI.
21
21
22
22
You may need to install some packages before a *Ubuntu* installation will run without error.
23
23
@@ -36,12 +36,12 @@ Includes:
36
36
- Main controller script
37
37
- Run `main.py -h` for more information.
38
38
- End-to-end interface
39
-
- Indexing and searching text (source code). Built-in support for [whoosh](https://whoosh.readthedocs.io) (fast searching) or [xapian](http://xapian.org/) (much faster searching).
39
+
- Indexing and searching text (source code). Built-in support for [whoosh](https://whoosh.readthedocs.io/en/stable/index.html) (fast searching) or [xapian](https://xapian.org/) (much faster searching).
40
40
- Easily extend indexing or searching via custom backends.
41
-
- Front end web app served using [werkzeug](http://werkzeug.pocoo.org/) or [cheroot](https://cheroot.cherrypy.org).
41
+
- Front end web app served using [werkzeug](https://palletsprojects.com/p/werkzeug/) or [cheroot](https://cheroot.cherrypy.org).
42
42
- `werkzeug` is for development to small traffic.
43
43
- `cheroot` is the high-performance, pure-Python HTTP server used by [CherryPy](https://www.cherrypy.org).
44
-
- Settings and configuration using [Python](http://python.org).
44
+
- Settings and configuration using [Python](https://python.org).
45
45
46
46
### Web Interface
47
47
@@ -52,9 +52,9 @@ Append to document URL.
52
52
- To highlight lines, append to URL: `&hl=3,7,12-14,21`
53
53
- To jump to a line, append to end of URL: `#line-3`
@@ -67,7 +67,7 @@ In [`settings.py`](settings.py):
67
67
68
68
## Using other web servers
69
69
70
-
Text Sherlock has built-in support for [werkzeug](http://werkzeug.pocoo.org/) and [cheroot](https://cheroot.cherrypy.org) WSGI compliant servers.
70
+
Text Sherlock has built-in support for [werkzeug](https://palletsprojects.com/p/werkzeug/) and [cheroot](https://cheroot.cherrypy.org) WSGI compliant servers.
71
71
72
72
In [`settings.py`](settings.py):
73
73
@@ -80,29 +80,29 @@ In [`settings.py`](settings.py):
1. Provide an easy to setup, fast, and adequate text search engine solution.
103
103
1. Be a respectable alternative to [OpenGrok](https://github.com/OpenGrok/OpenGrok).
104
-
1. Influence the authors of [OpenGrok](https://github.com/OpenGrok/OpenGrok) to provide a simpler setup process.
105
-
- I successfully setup two installations on CentOS and Ubuntu 11.x and each time it took more than two hours. TS setup takes less than 10 minutes (excluding package download time).
104
+
1. Influence the [OpenGrok](https://github.com/OpenGrok/OpenGrok) contributors to provide a simpler setup process.
105
+
- I successfully setup two installations of OpenGrok on CentOS and Ubuntu 11.x. Each time it took more than **two hours**. Text Sherlock setup takes less than 5 minutes (excluding package download time).
0 commit comments