Issue with escapeHTML and Search Highlighting
TLDR Digamber is having trouble with the search highlighting not working when escapeHTML is set to false. Kishore Nallan and Jason try to help but the issue remains unresolved.
Dec 14, 2021 (25 months ago)
Digamber
10:32 AMKishore Nallan
10:33 AMDigamber
10:46 AMinstantSearch.addWidgets([
searchBox({
container: searchBoxEl[0],
autofocus: true,
placeholder: 'Search...',
showSubmit: false,
showReset: false,
}),
configure({
hitsPerPage: config.per_page,
}),
hits({
container: defaultSearchResultEl[0],
escapeHTML: false,
templates: {
item: `
<h2>
{{ __hitIndex }}:
{{#helpers.highlight}}{ "attribute": "post_content" }{{/helpers.highlight}}
</h2>
<p>{{ post_description }}</p>
`,
},
}),
]);
Digamber
10:47 AMDigamber
10:47 AMDigamber
10:48 AMDigamber
10:49 AMDigamber
10:50 AMKishore Nallan
11:43 AMDigamber
11:47 AMJason
06:35 PMDec 15, 2021 (25 months ago)
Digamber
04:21 AMDigamber
04:48 AMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Setup and Understanding Facets and Keywords
Demitri encountered errors when exploring Typesense for the first time. Jason guided them through troubleshooting and discussed facets, keyword settings, and widget configurations. Helin shared a Python demo app and its source code to help Demitri with their project.
Troubleshooting Issues with DocSearch Hits and Scraper Configuration
Rubai encountered issues with search result priorities and ellipsis. Jason helped debug the issue and suggested using different versions of typesense-docsearch.js, updating initialization parameters, and running the scraper on a Linux-based environment. The issues related to hits structure and scraper configuration were resolved.
Issues with Displaying Paragraphs Using Typesense and React-instantsearch
Mark is struggling with displaying only relevant paragraphs of indexed body text in a UI with react-instantsearch and Typesense. Jason suggests modifications to the TypesenseInstantSearchAdapter instantiation, highlighting only relevant fields. The issue remains unresolved.
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.
Troubleshooting Local Scraper & Sitemap Issues
Rubai experienced issues with a local scraper and sitemap URLs not working. Jason instructed them to use meta tags and adjust their config file, which resolved the issues.