blob: 74109ed8a79a7ae6ababc528e60170db638556fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Search snippets for skribilo fragments need code from repo
* tags: bug
Skribilo documents are really programs. So, when generating search snippets for skribilo fragments, code from the repo may need to be executed. This is problematic since the web server process does not have the repository in its load path.
The repository cannot simply be added to the load path since the web server process may be serving multiple repositories and we don't want them to interact.
Also, evaluating an entire skribilo document on every search query may be costly. In fact, this expense of snippet generation applies equally well to other kinds of documents (issues, texinfo documents, etc.).
Therefore, it might be worthwhile to inter snippet source texts into the xapian index itself—specifically in the document data field. This will of course increase the size of the xapian index considerably. But, storage is cheap, and there does not seem to be any more elegant way out.
Until this issue is fixed, we have temporarily disabled snippets for skribilo fragments.
## Resolution
Search snippet source texts are now interred into the xapian index.
* closed
|