Skip to content

Commit

Permalink
document improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Apr 16, 2020
1 parent 12c0266 commit 0241bf7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Version numbers correspond to `package.json` version

# 2.5.8
- Fix rendering logic to handle Arrays and JSON objects so you don't get `"[object Object]"` in the UI. Another great fix by @CgamesPlay!

# 2.5.7
- Allow http://username:[email protected]:9200/ in URL to work by converting to Authorization header for Elasticsearch. Thanks @CGamesPlay for fix.

Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,20 @@ And splainer-search will take care of using the correct name in the parameters.
**NB:** The default behavior will be that of 5.x, so if you are on that version you do not need to do anything, whereas if you are on a previous version number you should provide the version number.
## Highlighting of results
If the individual search result field is a string then it is automatically highlighted.
However, if the selected value is an array or a JSON object, it doesn't coerce it to a string (and as a result doesn't highlight it, either).
Secondly, if any component in the selected path results in array, the rest of the path is spread over the array value. To explain:
```
Data: { "variants": [ { "name": "red" }, { "name": "blue" } ] }
Path (or _field name_): "variants.name"
Result: [ "red", "blue" ]
```
## Development Notes
Splainer-search is written using AngularJS project. It requires `npm` and `grunt`:
Expand Down

0 comments on commit 0241bf7

Please sign in to comment.