Skip to content

Commit

Permalink
demo: live_search fields with synonyms
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Sep 23, 2024
1 parent a96fa63 commit 4d07cdb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
21 changes: 21 additions & 0 deletions demo/configs/admin/analyzer/standard_with_synonyms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"class": "EMS\\CoreBundle\\Entity\\Analyzer",
"arguments": [],
"properties": {
"name": "standard_with_synonyms",
"dirty": true,
"label": "Standard (with synonyms)",
"options": {
"type": "custom",
"tokenizer": "standard",
"char_filter": [],
"filter": [
"standard",
"lowercase",
"business_synonyms"
]
},
"orderKey": 11
},
"replaced": []
}
6 changes: 3 additions & 3 deletions demo/configs/admin/form/search_fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
"displayTemplate": null
},
"mappingOptions": {
"mappingOptions": "{\r\n \"type\": \"search_as_you_type\",\r\n \"analyzer\": \"standard\"\r\n}",
"mappingOptions": "{\r\n \"type\": \"search_as_you_type\",\r\n \"analyzer\": \"standard_with_synonyms\"\r\n}",
"copy_to": null
},
"restrictionOptions": [],
Expand Down Expand Up @@ -335,7 +335,7 @@
"displayTemplate": null
},
"mappingOptions": {
"mappingOptions": "{\r\n \"type\": \"search_as_you_type\",\r\n \"analyzer\": \"french\"\r\n}",
"mappingOptions": "{\r\n \"type\": \"search_as_you_type\",\r\n \"analyzer\": \"french_with_synonyms\"\r\n}",
"copy_to": null
},
"restrictionOptions": [],
Expand Down Expand Up @@ -371,7 +371,7 @@
"displayTemplate": null
},
"mappingOptions": {
"mappingOptions": "{\r\n \"type\": \"search_as_you_type\",\r\n \"analyzer\": \"dutch\"\r\n}",
"mappingOptions": "{\r\n \"type\": \"search_as_you_type\",\r\n \"analyzer\": \"dutch_with_synonyms\"\r\n}",
"copy_to": null
},
"restrictionOptions": [],
Expand Down

0 comments on commit 4d07cdb

Please sign in to comment.