Skip to content

Commit

Permalink
Merge pull request #365 from pelias/okina
Browse files Browse the repository at this point in the history
remove okina
  • Loading branch information
missinglink authored May 28, 2019
2 parents cc3b14e + 0154052 commit 908e4bd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions integration/analyzer_peliasIndexOneEdgeGram.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports.tests.analyze = function(test, common){

// remove punctuation (handled by the char_filter)
assertAnalysis( 'punctuation', punctuation.all.join(''), ['-','-&'] );
assertAnalysis( 'punctuation', 'Hawai‘i', ['h', 'ha', 'haw', 'hawa', 'hawai', 'hawaii'] );

// ensure that very large grams are created
assertAnalysis( 'largeGrams', 'grolmanstrasse', [
Expand Down
1 change: 1 addition & 0 deletions integration/analyzer_peliasPhrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports.tests.analyze = function(test, common){

// remove punctuation (handled by the char_filter)
assertAnalysis( 'punctuation', punctuation.all.join(''), [ '-&' ] );
assertAnalysis( 'punctuation', 'Hawai‘i', ['hawaii'] );

suite.run( t.end );
});
Expand Down
2 changes: 1 addition & 1 deletion punctuation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @see: org/apache/lucene/analysis/cn/smart/stopwords.txt

module.exports.all = [
".","`","-","_","=","?","'","|","\"","(",")","{","}","[","]","<",">","*",
".","`","‘","-","_","=","?","'","|","\"","(",")","{","}","[","]","<",">","*",
"#","&","^","$","@","!","~",":",";","+","《","》","—","-",",","。",
"、", ":",";","!","·","?","“","”",")","(","【","】","[","]","●"
];
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@
"mappings": [
".=>",
"`=>",
"‘=>",
"_=>",
"==>",
"?=>",
Expand Down
2 changes: 1 addition & 1 deletion test/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ module.exports.tests.punctuationCharFilter = function(test, common) {
var char_filter = s.analysis.char_filter.punctuation;
t.equal(char_filter.type, 'mapping');
t.true(Array.isArray(char_filter.mappings));
t.equal(char_filter.mappings.length, 47);
t.equal(char_filter.mappings.length, 48);
t.end();
});
};
Expand Down

0 comments on commit 908e4bd

Please sign in to comment.