<ais-hits>
<template v-slot:item="{ item }">
<div class="ais-title">
<a :href="'/jobs/' + item.slug " class="ais-title">
<ais-highlight :hit="item"
attribute="jobtitle"
class="ais-title">
</ais-highlight>
</a>
</div>
<div class="bb-content-row">
<div class="ais-img">
<img :src="item.thumbUrl" width=200 height=140 />
</div>
<p>
<ais-highlight :hit="item"
class="ais-description"
attribute="description"
:attributesToSnippet="['description:10']"/>
</p>
</div>
....
import {
AisClearRefinements,
AisConfigure,
AisHighlight,
AisHits,
AisInstantSearch,
AisPagination,
AisPanel,
AisRefinementList,
AisSearchBox,
// ClearRefinements,
// NoResults,
// VueSlider
} from 'vue-instantsearch/vue3/es';
export default {
name: "JobsSearchBox.vue",
components: {
AisClearRefinements,
AisConfigure,
AisHighlight,
AisHits,
AisInstantSearch,
AisPagination,
AisPanel,
AisRefinementList,
AisSearchBox,
Countdown,
// ClearRefinements,
// NoResults,
// VueSlider
},
...
Hello,
I’m upgrading from v3 to v4. For some reason the slot cannot locate the item objects.
However, if I change item to name <template v-slot:name="{ item }">
the objects populate but they do little more than list the field, such as objectID: 19, index: 1
Thank you,
Trevor