Mercurial > p > roundup > code
annotate 3rdparty/bootstrap/js/tests/server.js @ 5108:67fad01d2009
issue2550653: xapian search, stemming is not working
This is a partial fix for the issue. It does make stemming work
(so searching for silent will also return docs with silently in
them). However to do this we need to lowercase the text so the
porter stemmer will work. This means capitalization is not
preserved.
Tests in test/test_indexer for xapian backend all pass.
David Wolever (wolever) did the work.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 27 Jun 2016 22:10:45 -0400 |
| parents | c109f7c1e477 |
| children |
| rev | line source |
|---|---|
|
4854
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
1 /* |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
2 * Simple connect server for phantom.js |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
3 * Adapted from Modernizr |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
4 */ |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
5 |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
6 var connect = require('connect') |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
7 , http = require('http') |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
8 , fs = require('fs') |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
9 , app = connect() |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
10 .use(connect.static(__dirname + '/../../')); |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
11 |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
12 http.createServer(app).listen(3000); |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
13 |
|
c109f7c1e477
Add local copy of Bootstrap v2.2.2 (for packaging on Debian)
Pradip Caulagi <caulagi@gmail.com>
parents:
diff
changeset
|
14 fs.writeFileSync(__dirname + '/pid.txt', process.pid, 'utf-8') |
