Skip to content

Enable highlighting results

Stanisław Bieniecki requested to merge sbstan/enable-highlighting-results into master

Type of change

  • Bug Fix
  • Feature

Changes related to the ADR: #128 (closed)

Does this introduce a change in the core logic?

  • [NO]

Does this introduce a change in the cloud provider implementation, if so which cloud?

  • AWS
  • Azure
  • Google Cloud
  • IBM

Changes are for all provider however related code before and and after changes fully identical.

Does this introduce a breaking change?

  • [NO] This feature had some different implementation before, but it was never enabled. Also it wasn't working correctly as it wasn't handling json paths so only top level field could be selected and there was no support for list fields.

What is the current behavior?

Currently there is no highlighting available for the users

What is the new/expected behavior?

Users can specify optional field highlightedFields which will add to each search result additional dictionary under key highlight with phrases from selected fields which matched the query. Example in the updated docs

Have you added/updated Unit Tests and Integration Tests?

Unit tests have been updated and some were added

Any other useful information

Edited by Mark Chance

Merge request reports