Browse Source

change search analyzer to be more similar to what we had before the autocomplete_refactor milestone

pull/529/head
missinglink 9 years ago
parent
commit
25ab63c3b3
  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

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

2
test/unit/fixture/search_boundary_country.js

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

2
test/unit/fixture/search_full_address.js

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

2
test/unit/fixture/search_linguistic_bbox.js

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

2
test/unit/fixture/search_linguistic_focus.js

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

2
test/unit/fixture/search_linguistic_focus_bbox.js

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

2
test/unit/fixture/search_linguistic_focus_null_island.js

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

2
test/unit/fixture/search_linguistic_only.js

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

2
test/unit/fixture/search_linguistic_viewport.js

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

2
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

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

2
test/unit/fixture/search_partial_address.js

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

2
test/unit/fixture/search_regions_address.js

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

2
test/unit/fixture/search_with_source_filtering.js

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

Loading…
Cancel
Save