Skip to content

Commit

Permalink
fix(peliasQueryFullToken): remove unused analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Dec 5, 2019
1 parent b1ceba8 commit cba6b62
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 338 deletions.
2 changes: 1 addition & 1 deletion integration/address_matching.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ module.exports.tests.venue_vs_address = function(test, common){
{
'match_phrase': {
'name.default': {
'analyzer': 'peliasQueryFullToken',
'analyzer': 'peliasQuery',
'boost': 1,
'slop': 3,
'query': 'union square'
Expand Down
250 changes: 0 additions & 250 deletions integration/analyzer_peliasQueryFullToken.js

This file was deleted.

8 changes: 4 additions & 4 deletions integration/autocomplete_abbreviated_street_names.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ module.exports.tests.index_expanded_form_search_contracted = function(test, comm
});
});

// search using 'peliasQueryFullToken'
// search using 'peliasQuery'
suite.assert( function( done ){
suite.client.search({
index: suite.props.index,
type: config.schema.typeName,
body: { query: { match: {
'name.default': {
'analyzer': 'peliasQueryFullToken',
'analyzer': 'peliasQuery',
'query': 'Grolmanstr.'
}
}}}
Expand Down Expand Up @@ -107,7 +107,7 @@ module.exports.tests.index_expanded_form_search_contracted = function(test, comm
// });
// });

// // search using 'peliasQueryFullToken'
// // search using 'peliasQuery'
// // @note: this case is currently not supported.
// // Please index your data in the expanded form.

Expand All @@ -117,7 +117,7 @@ module.exports.tests.index_expanded_form_search_contracted = function(test, comm
// type: config.schema.typeName,
// body: { query: { match: {
// 'name.default': {
// 'analyzer': 'peliasQueryFullToken',
// 'analyzer': 'peliasQuery',
// 'query': 'Grolmanstraße'
// }
// }}}
Expand Down
16 changes: 8 additions & 8 deletions integration/autocomplete_directional_synonym_expansion.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ module.exports.tests.index_and_retrieve_expanded_form = function(test, common){
});
});

// search using 'peliasQueryFullToken'
// search using 'peliasQuery'
suite.assert( function( done ){
suite.client.search({
index: suite.props.index,
type: config.schema.typeName,
body: { query: { match: {
'name.default': {
'analyzer': 'peliasQueryFullToken',
'analyzer': 'peliasQuery',
'query': 'north'
}
}}}
Expand Down Expand Up @@ -102,14 +102,14 @@ module.exports.tests.index_and_retrieve_contracted_form = function(test, common)
});
});

// search using 'peliasQueryFullToken'
// search using 'peliasQuery'
suite.assert( function( done ){
suite.client.search({
index: suite.props.index,
type: config.schema.typeName,
body: { query: { match: {
'name.default': {
'analyzer': 'peliasQueryFullToken',
'analyzer': 'peliasQuery',
'query': 'n'
}
}}}
Expand Down Expand Up @@ -159,14 +159,14 @@ module.exports.tests.index_and_retrieve_mixed_form_1 = function(test, common){
});
});

// search using 'peliasQueryFullToken'
// search using 'peliasQuery'
suite.assert( function( done ){
suite.client.search({
index: suite.props.index,
type: config.schema.typeName,
body: { query: { match: {
'name.default': {
'analyzer': 'peliasQueryFullToken',
'analyzer': 'peliasQuery',
'query': 'north'
}
}}}
Expand Down Expand Up @@ -216,14 +216,14 @@ module.exports.tests.index_and_retrieve_mixed_form_2 = function(test, common){
});
});

// search using 'peliasQueryFullToken'
// search using 'peliasQuery'
suite.assert( function( done ){
suite.client.search({
index: suite.props.index,
type: config.schema.typeName,
body: { query: { match: {
'name.default': {
'analyzer': 'peliasQueryFullToken',
'analyzer': 'peliasQuery',
'query': 'n'
}
}}}
Expand Down
Loading

0 comments on commit cba6b62

Please sign in to comment.