Skip to content

Highlighting not working when assigning a "min_similarity"? #3159

@Timmel

Description

@Timmel

I am fiddling with fuzzy search in elasticsearch-0.20.6 and elasticsearch-0.90.1. I am using highlighting to help me tune the fuzzyness. The highlighting shows fine when I use fuzzy until I add "min_similarity". I use head to post and check the results.

Shows highlighting:

{
 "query": {
   "fuzzy": {
     "title": "bambi"
   }
 },
 "highlight": {
   "fields": {
     "title": {}
   }
 }

Doesn't show highlighting:

{
 "query": {
   "fuzzy": {
     "title": "bambi",
     "min_similarity": 0.8
   }
 },
 "highlight": {
   "fields": {
     "title": {}
   }
 }

Is this not possible or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions