Questions tagged [instantsearch.js]

For Algolia InstantSearch.js library issues and questions.

For non-programming related questions or general discussion about Algolia or instantsearch.js, please post your question on discourse.algolia.com instead. You can expect a prompt, friendly reply from our team or community.

120 questions
7
votes
1 answer

Algolia instantsearch.js callback function

I am using Algolia instantsearch.js as my site search. The setup process was rather easy and straightforward, including .js and .css files, creating templates and then create one more .js file with app() function for setting up my app (appId,…
Silver Ringvee
  • 5,037
  • 5
  • 28
  • 46
5
votes
1 answer

How to keep additional URL parameters with Algolia search and pagination

I have some filters predefined and a query parameters in my URL. I need to add some other parameter to the URL to keep track of the source of the user and some other purposes. But, whenever I do a new refinement or entered into a new…
Fasna
  • 564
  • 1
  • 10
  • 28
4
votes
1 answer

Typesense always returns "404 - Not Found"

I'm trying to search a Typesense Cloud node from a React app, but all I get is a 404 - Not Found error in the console. I'm using "typesense-instantsearch-adapter": "^2.4.1-1", And here's my React component: import React from "react"; import…
zakdances
  • 22,285
  • 32
  • 102
  • 173
4
votes
1 answer

How to set the title for a rangeslider in instantsearch.js?

We are using instantsearch.js to display a list of products from an Algolia index. And we are using the rangeSlider widget to filter the results. However, I cannot figure out how to set the title of the slider. Everything else is working fine. This…
johnohod
  • 494
  • 5
  • 19
4
votes
3 answers

Persist custom url parameters with algolia search url rewriting

We are using vue instantsearch from Algolia. When the user lands on page with some initial url parameters, algolia instantsearch loads an initial search, and changes the url to include the search parameters. However the initial url parameters do not…
wildabeast
  • 1,723
  • 3
  • 18
  • 31
4
votes
1 answer

Change styling of Algolia React Instant Search component

I am playing around with the React Instant Search library and have it working functionally, however I want to change the styling of the components. I have commented out the reference to the online stylesheet ..
chucknor
  • 837
  • 2
  • 18
  • 33
4
votes
1 answer

Algolia Instantsearch: custom sort refinementlist

In our project we have several refinement lists and they're functioning correctly. However they're default sorting, count the alphanumeric, is being applied. In our situation I have a 'rank' attribute on each of my refinement list items but I…
Jeff Nichols
  • 167
  • 1
  • 1
  • 12
3
votes
0 answers

Multiple HierarchicalMenu with same facets param in the one page but different window size

We have two Filter components that use connectHierarchicalMenu() on one page. We would like to render one of them on bigger devices like desktops and one for tablets & mobile devices. Expected behavior: Users must able to open the page in desktop…
Siavash
  • 2,813
  • 4
  • 29
  • 42
3
votes
0 answers

How do I get Data from Algolia searchClient to function in JavaScript?

I have a problem to get data from variables inside an inner Javascript function to the outer function. What I am trying to do is to search Algolia-hits from a special category to show the first hit that has an image. So I can use this image for an…
DerHelge
  • 53
  • 6
3
votes
0 answers

Hiding pagination if #hits has a 1 page result - Algolia InstantSearch.js

I'm new to this and I've been looking for ways to hide the pagination if only 1 or no results are found in the #hits container and my pagination just looks like this instantsearch.widgets.pagination({container: '#pagination', padding:'2'})
helpmeplease
  • 71
  • 10
3
votes
2 answers

Algolia Instantsearch.js in Ionic 3

I am trying to use the instantsearch.js library from Algolia within my Ionic 3 app. Here is the tutorial that I followed. https://angularfirebase.com/lessons/angular-full-text-search-with-algolia-frontend-part-1/ Here is the error that I…
lief480
  • 140
  • 1
  • 11
2
votes
0 answers

How to avoid overlay using InstantSearch.js rangeSlider?

I'm using InstantSearch.js (via algolia) to make a price rangeslider. It's ok and it works well with one exception: the prices overlap when they are too close. We can see it on several examples, even on the site of the doc: Doc algolia I use it for…
Kimako
  • 615
  • 2
  • 11
  • 26
2
votes
1 answer

Inserting Middleware(insights) with Instantsearch react

So, we have a functional search with Algolia/Instantsearch/React/Nextjs. But the Insights middleware is currently not setup. Below is a trimmed version of the implementation, we use custom widgets to have more fine control over the display of…
Romuloux
  • 1,027
  • 1
  • 8
  • 24
2
votes
1 answer

Can I set defaultRefinement on hierarchicalMenu in the .js version of instantsearch (not react)

I can see that there is an defaultRefinement option on the react widget hierarchicalMenu, but I can't find it in the .js docs. Is there an equivalent in .js? If not, is there a workaround? instantsearch.widgets.hierarchicalMenu({ container:…
Bendik
  • 38
  • 4
2
votes
2 answers

How to get specific data from algolia in angular

I'm using algolia in angular. I'm trying to get only a specific record from algolia. I have a product_id and want record of that product_id Here is what I have done so far - .html file
amM
  • 509
  • 2
  • 14
  • 33
1
2 3 4 5 6 7 8