Hi all. If I search my collection:
{
q: "arke",
query_by: 'title,authors',
prefix: false,
infix: 'fallback',
per_page: 3
}
I get results like this:
{
facet_counts: [],
found: 48,
hits: [
{
document: {
authors: [ 'Lynsay Sands' ],
average_rating: 4.25,
id: '9817',
publication_year: 2008,
ratings_count: 15403,
title: 'Vampires are Forever'
},
highlight: {},
highlights: [],
text_match: 578730054645711000,
text_match_info: {
best_field_score: '1108057784320',
best_field_weight: 15,
fields_matched: 1,
num_tokens_dropped: 0,
score: '578730054645710969',
tokens_matched: 1,
typo_prefix_score: 2
}
},
{
document: {
authors: [ 'Laura McBride' ],
average_rating: 3.94,
id: '9787',
publication_year: 2014,
ratings_count: 5687,
title: 'We Are Called to Rise'
},
highlight: {},
highlights: [],
text_match: 578730054645711000,
text_match_info: {
best_field_score: '1108057784320',
best_field_weight: 15,
fields_matched: 1,
num_tokens_dropped: 0,
score: '578730054645710969',
tokens_matched: 1,
typo_prefix_score: 2
}
},
{
document: {
authors: [ 'Christian Rudder' ],
average_rating: 3.72,
id: '9666',
publication_year: 2014,
ratings_count: 7204,
title: "Dataclysm: Who We Are (When We Think No One's Looking)"
},
highlight: {},
highlights: [],
text_match: 578730054645711000,
text_match_info: {
best_field_score: '1108057784320',
best_field_weight: 15,
fields_matched: 1,
num_tokens_dropped: 0,
score: '578730054645710969',
tokens_matched: 1,
typo_prefix_score: 2
}
}
],
out_of: 9981,
page: 1,
request_params: { collection_name: 'books', first_q: 'arke', per_page: 3, q: 'arke' },
search_cutoff: false,
search_time_ms: 0
}
Why highlight & highlights fields are empty?