Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
node-slate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Hải Sơn
node-slate
Commits
440c799c
Commit
440c799c
authored
Apr 16, 2014
by
Christopher Rogers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes lunr stemmer from search index pipeline
Signed-off-by:
Christopher Rogers
<
chrissrogers@gmail.com
>
parent
3c4e0d0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
search.js
source/javascripts/app/search.js
+7
-7
No files found.
source/javascripts/app/search.js
View file @
440c799c
...
...
@@ -3,12 +3,13 @@
var
$global
=
$
(
global
);
var
content
,
searchInfo
;
var
highlightOpts
=
{
element
:
'span'
,
className
:
'search-highlight'
};
var
index
=
lunr
(
function
()
{
this
.
ref
(
'id'
);
this
.
field
(
'title'
,
{
boost
:
10
});
// this.field('tags', { boost: 100 });
this
.
field
(
'body'
);
});
var
index
=
new
lunr
.
Index
;
index
.
ref
(
'id'
);
index
.
field
(
'title'
,
{
boost
:
10
});
index
.
field
(
'body'
);
index
.
pipeline
.
add
(
lunr
.
trimmer
,
lunr
.
stopWordFilter
);
$
(
populate
);
$
(
bind
);
...
...
@@ -25,7 +26,6 @@
index
.
add
({
id
:
title
.
prop
(
'id'
),
title
:
title
.
text
(),
// tags: tags,
body
:
body
.
text
()
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment