Closed brunoocasali closed 1 year ago
This is still a draft. I'm thinking about it
When you have a search request with highlighted attributes you can just:
books = Book.search('harry', { attributes_to_highlight: ['title'] }) books.first.formatted_title # instead of books = Book.search('harry', { attributes_to_highlight: ['title'] }) books.first.formatted['title']
Unfortunately, I don't have much time to continue working on this. If someone in the future sees this and wants to continue the work, feel free to do it!
This is still a draft. I'm thinking about it
When you have a search request with highlighted attributes you can just: