Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.93 KB | None | 0 0
  1. # Read the documentation: https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/Resources/doc/setup.md
  2. fos_elastica:
  3. #  serializer: ~
  4.   clients:
  5.     default: { host: localhost, port: 9200 }
  6.   #    indexes:
  7.   #        app: ~
  8.   indexes:
  9.     app:
  10.       client: default
  11.         #FOR AUTOCOMPLETE
  12.         settings:
  13.           index:
  14.             analysis:
  15.               analyzer:
  16.                 name_analyzer:
  17.                   type: custom
  18.                   tokenizer: standard
  19.                   filter: [standard, lowercase, asciifolding, elision]
  20.       #END FOR AUTOCOMPLETE
  21.       types:
  22.         user:
  23. #          serializer:
  24. #            groups: [elastica]
  25.           properties:
  26. #            username: ~
  27. #            visibility: ~
  28.             username:
  29.               type: completion
  30. #              analyzer: name_analyzer
  31. #              search_analyzer: name_analyzer
  32.           #                        username:
  33.           #                        name_suggest:
  34.           #                                              MAPPINGS ADDED FOR AUTOCOMPLETE
  35.           #                            type: completion
  36.           #                            analyzer: name_analyzer
  37.           #                            search_analyzer: name_analyzer
  38.           #                            payloads: true
  39.           #                        id:
  40.           #                            type: keyword
  41.           #                        username:
  42.           #                            type: keyword
  43.  
  44.           #MAPPINGS ADDED FOR AUTOCOMPLETE
  45.           persistence:
  46.            # the driver can be orm, mongodb, phpcr or propel
  47.             # listener and finder are not supported by
  48.             # propel and should be removed
  49.             driver: orm
  50.             model: App\Entity\User
  51.             provider: ~
  52.             listener: ~
  53.             finder: ~
  54. #                        repository: App\Repository\UserRepository
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement