Browse Source

change ngram analyzer used in /search to peliasQueryFullToken from peliasIndexOneEdgeGram. this will have a positive effect on performance due to less tokens being produced

pull/538/head
Peter Johnson 8 years ago
parent
commit
5964e57faa
  1. 2
      query/search_defaults.js
  2. 2
      test/unit/fixture/search_boundary_country.js
  3. 2
      test/unit/fixture/search_full_address.js
  4. 2
      test/unit/fixture/search_linguistic_bbox.js
  5. 2
      test/unit/fixture/search_linguistic_focus.js
  6. 2
      test/unit/fixture/search_linguistic_focus_bbox.js
  7. 2
      test/unit/fixture/search_linguistic_focus_null_island.js
  8. 2
      test/unit/fixture/search_linguistic_only.js
  9. 2
      test/unit/fixture/search_linguistic_viewport.js
  10. 2
      test/unit/fixture/search_linguistic_viewport_min_diagonal.js
  11. 2
      test/unit/fixture/search_partial_address.js
  12. 2
      test/unit/fixture/search_regions_address.js
  13. 2
      test/unit/fixture/search_with_source_filtering.js

2
query/search_defaults.js

@ -18,7 +18,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'boundary:rect:type': 'indexed', 'boundary:rect:type': 'indexed',
'ngram:analyzer': 'peliasIndexOneEdgeGram', 'ngram:analyzer': 'peliasQueryFullToken',
'ngram:field': 'name.default', 'ngram:field': 'name.default',
'ngram:boost': 1, 'ngram:boost': 1,

2
test/unit/fixture/search_boundary_country.js

@ -16,7 +16,7 @@ module.exports = {
'name.default': { 'name.default': {
'query': 'test', 'query': 'test',
'boost': 1, 'boost': 1,
'analyzer': 'peliasIndexOneEdgeGram' 'analyzer': 'peliasQueryFullToken'
} }
} }
} }

2
test/unit/fixture/search_full_address.js

@ -7,7 +7,7 @@ module.exports = {
'match': { 'match': {
'name.default': { 'name.default': {
'query': '123 main st', 'query': '123 main st',
'analyzer': 'peliasIndexOneEdgeGram', 'analyzer': 'peliasQueryFullToken',
'boost': 1 'boost': 1
} }
} }

2
test/unit/fixture/search_linguistic_bbox.js

@ -7,7 +7,7 @@ module.exports = {
'name.default': { 'name.default': {
'query': 'test', 'query': 'test',
'boost': 1, 'boost': 1,
'analyzer': 'peliasIndexOneEdgeGram' 'analyzer': 'peliasQueryFullToken'
} }
} }
}], }],

2
test/unit/fixture/search_linguistic_focus.js

@ -7,7 +7,7 @@ module.exports = {
'name.default': { 'name.default': {
'query': 'test', 'query': 'test',
'boost': 1, 'boost': 1,
'analyzer': 'peliasIndexOneEdgeGram' 'analyzer': 'peliasQueryFullToken'
} }
} }
}], }],

2
test/unit/fixture/search_linguistic_focus_bbox.js

@ -7,7 +7,7 @@ module.exports = {
'name.default': { 'name.default': {
'query': 'test', 'query': 'test',
'boost': 1, 'boost': 1,
'analyzer': 'peliasIndexOneEdgeGram' 'analyzer': 'peliasQueryFullToken'
} }
} }
}], }],

2
test/unit/fixture/search_linguistic_focus_null_island.js

@ -7,7 +7,7 @@ module.exports = {
'name.default': { 'name.default': {
'query': 'test', 'query': 'test',
'boost': 1, 'boost': 1,
'analyzer': 'peliasIndexOneEdgeGram' 'analyzer': 'peliasQueryFullToken'
} }
} }
}], }],

2
test/unit/fixture/search_linguistic_only.js

@ -7,7 +7,7 @@ module.exports = {
'name.default': { 'name.default': {
'query': 'test', 'query': 'test',
'boost': 1, 'boost': 1,
'analyzer': 'peliasIndexOneEdgeGram' 'analyzer': 'peliasQueryFullToken'
} }
} }
}], }],

2
test/unit/fixture/search_linguistic_viewport.js

@ -5,7 +5,7 @@ module.exports = {
{ {
'match': { 'match': {
'name.default': { 'name.default': {
'analyzer': 'peliasIndexOneEdgeGram', 'analyzer': 'peliasQueryFullToken',
'boost': 1, 'boost': 1,
'query': 'test' 'query': 'test'
} }

2
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

@ -7,7 +7,7 @@ module.exports = {
{ {
'match': { 'match': {
'name.default': { 'name.default': {
'analyzer': 'peliasIndexOneEdgeGram', 'analyzer': 'peliasQueryFullToken',
'boost': 1, 'boost': 1,
'query': 'test' 'query': 'test'
} }

2
test/unit/fixture/search_partial_address.js

@ -8,7 +8,7 @@ module.exports = {
'match': { 'match': {
'name.default': { 'name.default': {
'query': 'soho grand', 'query': 'soho grand',
'analyzer': 'peliasIndexOneEdgeGram', 'analyzer': 'peliasQueryFullToken',
'boost': 1 'boost': 1
} }
} }

2
test/unit/fixture/search_regions_address.js

@ -8,7 +8,7 @@ module.exports = {
'match': { 'match': {
'name.default': { 'name.default': {
'query': '1 water st', 'query': '1 water st',
'analyzer': 'peliasIndexOneEdgeGram', 'analyzer': 'peliasQueryFullToken',
'boost': 1 'boost': 1
} }
} }

2
test/unit/fixture/search_with_source_filtering.js

@ -7,7 +7,7 @@ module.exports = {
'name.default': { 'name.default': {
'query': 'test', 'query': 'test',
'boost': 1, 'boost': 1,
'analyzer': 'peliasIndexOneEdgeGram' 'analyzer': 'peliasQueryFullToken'
} }
} }
}], }],

Loading…
Cancel
Save