search-ui | JavaScript library to develop Search UIs for the web | Search Engine library
kandi X-RAY | search-ui Summary
kandi X-RAY | search-ui Summary
Use Search UI library to create fast, mobile-friendy, and cross-browser compatible search solutions quickly and effortlessly.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of search-ui
search-ui Key Features
search-ui Examples and Code Snippets
Community Discussions
Trending Discussions on search-ui
QUESTION
Integrating Algolia search with VSF/Next branch, got the basics down. Moving on to routing.
With Vanilla Nuxt the integration works as it should, although the workarounds are starting to stack.
To Repro:
- pull && yarn && yarn run dev
- http://192.168.1.4:3000/ && search for something
- URL gets rewritten
checkout VSF get a flicker re-render.
To Repro:
- same as above except go to /Search
- URL gets rewritten for a flash then render fires and goes back to original route
What I’ve tried:
- Built the two repos in isolation and it seems to not be an issue with nuxt itself, more an issue with Vue StoreFront
Reference: https://github.com/algolia/vue-instantsearch/issues/916 (tangential)
...ANSWER
Answered 2021-Apr-13 at 04:35Okee this has something to do with the nuxt comp passing the route
I was able to bypass it by doing this in the default template
QUESTION
I am using Algolia to build up a refinement list of filters, and I have customized the algolia instance to display facets with no matches: Algolia docs on displaying facets with no matches
The issue I am having is that in the mounted function in VueJs Algolia is building up the refinement list, and then doing some magic to build the Dom. I am having an issue where I am trying to append a CSS class to these elements in the same mounted function but the NodeList I am working on is constantly returning []
empty.
My solution is completely working when typing, and when using the refinement list, but its not working on page reload as the timing of things is out of sync.
...ANSWER
Answered 2021-Apr-13 at 01:21I was able to overcome this with the solution of customizing the UI: Algolia docs, customizing the UI
I completly overwrote my Refinement list, and conditionally added the needed classes using the :style binding directive.
QUESTION
I am new to JS/React/npm/webpack, and fairly new to Django. I am trying to build search experience (i.e. front-end) for my existing Django web application, and I am planning to use elastic/search-ui components for that. I did some research (How to get Django and ReactJS to work together?) and I am following the hybrid model guide (https://www.saaspegasus.com/guides/modern-javascript-for-django-developers/integrating-javascript-pipeline/) where static JS files are used in Django templates.
I got to the point where I could display some text from JS script in Django template, now I am trying to display imported JS component and I got stuck. This is my code:
package.json:
...ANSWER
Answered 2021-Mar-19 at 13:45I'm fairly confident this is because it can't parse in your js file (because it is jsx syntax) so your
webpack.config.js
needs a little tweak.
Try updating your webpack configuration so that it looks like this.
QUESTION
I wish to use Algolia to setup InstantSearch in my React Native project. I am using this tutorial to learn the basics.
It appears in their RefinementList
and InfiniteHits
components there is a parameter: refine
. This parameter seems to play a key role in the functionality of this tutorial's app.
Where can I get an example of how this refine()
method would look like?
Please help me with some resources. An explanation of this refine()
method would also help.
Thanks!
...ANSWER
Answered 2020-Nov-28 at 15:32I think there's a typo in the documentation at the time of this writing (for which I opened a pull request), and the name of the actual prop is refineNext
.
The documented InfiniteHits
example from the React Native guide uses a connector, which is a lower-level abstraction allowing users to fully control the UI. This is what allows you to use React Native code for the UI while having access to the InfiniteHits
data and logic. You can read more about the connectInfiniteHits
connector in the documentation.
The provided refineNext
function lets you load more results. It doesn't take any arguments, all you need to do is call it whenever you want to load more results from Algolia. In the example, it's being used in the onEndReached
callback of React Native's FlatList
component, whenever the hasMore
provided prop is true
. This allows loading more results once when the scroll position gets within onEndReachedThreshold
of the rendered content.
QUESTION
I trying to implement Algolia Autocomplete widget in my code. I'm currently trying to retrieve the prop "value" by using the query callback.
I'm using the Algolia code here: https://www.algolia.com/doc/guides/building-search-ui/resources/ui-and-ux-patterns/in-depth/autocomplete/react/
When I'm trying to return "query" in the console --> console.log(query) I get an undefined error. I can't understand why.
Here's my entire code:
App.js
...ANSWER
Answered 2020-Sep-11 at 02:07After a few tries, I resorted to asking directly to Algolia.
Here's the Sandbox they sent me:
https://codesandbox.io/s/quirky-darwin-4u2o2?file=/src/App.js
The problem is with the "newValue" prop. You need to replace it with "suggestion" and set the state to "suggestion.valueToReturn".
QUESTION
I develop an Android app with a search interface using Algolia.
For this purpose, I follow this guide for InstantSearch but when I add the kapt "androidx.lifecycle:lifecycle-compiler:2.0.0"
dependency to my app build.gradle I got ERROR: Gradle DSL method not found: 'kapt()'
error.
I tried to add apply plugin: 'kotlin-kapt'
in the top of the app build.gradle file (see this) but then I got Plugin with id 'kotlin-kapt' not found.
error.
Here is my app build.gradle file:
...ANSWER
Answered 2019-Aug-21 at 20:26You need to apply the following plugin as well:
QUESTION
I am working on a search engine using the swiftype reackJS demo app as a starting point. It's using the search-ui npm.
I get: Cannot read property 'raw' of undefined
...ANSWER
Answered 2019-Dec-06 at 20:50You're setting result_fields
object but calling result
object. Try renaming your object to be the same and see if you continue to experience issues!
Edit: It seems you're calling some script/api/carrier-pigeon to populate the result
object. However, when you call the element you're exporting, that object may not exist yet. Try modifying your export to the following and you should see what I'm talking about:
QUESTION
I'm setting up Algolia instantsearch.js and I want to replace the default search box submit button icon.
The docs show to style the icon color using the widget class name, but I can't figure out how to replace the svg icon with another svg.
This is the default code that Algolia generates for the submit button icon:
ANSWER
Answered 2019-May-07 at 11:39Widgets in Algolia's InstantSearch.js come with a predefined rendering. You can style them, but if you're unhappy with the actual rendering (i.e. what HTML is generated for a widget) then you have to create your own.
When it's about customizing an existing widget, which is your case, there's a smart mechanism they provide that is called "connectors".
They've basically decoupled the widget's behaviour/logic from its rendering. Different connectors provide the logic for each search component and widgets bring a UI on top of those connectors.
So in your case, you need to look at the documentation on connectors and go ahead with using a connectSearchBox
connector to create your own searchBox widget.
QUESTION
I have a webpage that uses Algolia's React InstantSearch. It has a search bar and several refinements.
I want the user to be able to press a button and get a list of all matching results.
To get a list of all results, I need to use the Browse Index instead of the Search Index. The Browse Index allows retrieving all hits; the Search Index allows retrieval of only up to 1000 hits. However, the Browse Index should not be used in UIs. So I want to create an API endpoint my web server that uses the Browse Index in order return a list of matching hits given a search query.
I am able to successfully do this for a search query, but I can't figure out how to this for refinements.
Here is a sketch of what I have so far.
Back-end (in Ruby):
...ANSWER
Answered 2019-Sep-18 at 08:43You are right that this is currently not exactly straightforward. The flow to get the raw search parameters you can use for "browse" is like this:
- give your custom component access to the last search results
- read the state from those results
- create a new helper using this state
- use
helper.getQuery()
to get the query parameters to apply
A sandbox that illustrates this is: https://codesandbox.io/s/extending-widgets-luqd9
QUESTION
I'm working on a personal Android application. In this application, there is a single main Activity with two Fragments. In one of them, I want to implement the Algolia InstantSearch according to this guide.
This is my fragment layout:
...ANSWER
Answered 2019-Aug-28 at 12:25You forget change width and height
Use this code
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install search-ui
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page