Skip to content

Commit 64511be

Browse files
author
Chris Lush
committed
Upgrade the completion suggester
Fixes #2
1 parent 67bdb27 commit 64511be

File tree

5 files changed

+664
-314
lines changed

5 files changed

+664
-314
lines changed

app/config/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,15 @@ fos_elastica:
8686
filter: [standard, lowercase, asciifolding, elision]
8787
types:
8888
restaurant:
89-
mappings:
89+
properties:
9090
name_suggest:
9191
type: completion
9292
analyzer: name_analyzer
9393
search_analyzer: name_analyzer
94-
payloads: true
94+
id:
95+
type: keyword
96+
name:
97+
type: keyword
9598
persistence:
9699
driver: orm
97100
model: AppBundle\Entity\Restaurant

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"sensio/framework-extra-bundle": "^3.0.2",
2323
"incenteev/composer-parameter-handler": "~2.0",
2424
"stof/doctrine-extensions-bundle": "^1.2",
25-
"ruflin/elastica": "3.1.1 as 2.99.0",
26-
"friendsofsymfony/elastica-bundle": "^3.2",
25+
"ruflin/elastica": "5.3.0",
26+
"friendsofsymfony/elastica-bundle": "5.0.x-dev",
2727
"friendsofsymfony/jsrouting-bundle": "^1.6"
2828
},
2929
"require-dev": {

0 commit comments

Comments
 (0)