algolia

Customising Algolia instantsearch searchbox and results

99封情书 提交于 2020-01-06 02:37:25
问题 I am building a service that uses Algolia instantsearch.js to display search results. Starting the project I created a template where I displayed our customers in a table. Then I wanted to add the functionality that the contents of the table change while a user is typing for a specific customer info (ex. mobile number). This is why I used Algolia and instantsearch.js to achieve this. I managed to have it working but I have a problem with styling the whole thing: The searchbox and hits widgets

Algolia reindex command fails with exception in urllib3

拥有回忆 提交于 2020-01-04 21:38:12
问题 I'm trying to use algolia with my django project. However, i've been running into this strange exception that I have not seen before. When I run the command, python3 manage.py algolia_reindex I get the following The following models were reindexed: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/util.py", line 144, in _validate_timeout float(value) TypeError: float() argument must be a string or a number, not 'tuple' During handling of the above exception,

JavaScript - Converting a Date() into seconds [duplicate]

别来无恙 提交于 2020-01-03 07:37:31
问题 This question already has answers here : Javascript Convert Date Time string to Epoch (7 answers) Closed 4 years ago . I'm using the Hacker News API made at Algolia here: https://hn.algolia.com/api I'm a bit confused as it says to search for posts since a certain time it says to run the following query: Comments since timestamp X (in second) http://hn.algolia.com/api/v1/search_by_date?tags=comment&numericFilters=created_at_i>X It says to replace X with a timestamp in seconds, but how exactly

Wordpress Plugin : Can't process Indexing Queue

女生的网名这么多〃 提交于 2019-12-25 18:46:10
问题 I'm trying to use the Wordpress plugin, but when I select tables, press save, they stay in the Queue and I can't click on the "Process Queue" Button. I've tried to deactivate and reactivate the plugin. What can i do? I'm using Wordpress 4.6. Thanks! 回答1: We just released a new version of the plugin 1.2.0: https://wordpress.org/plugins/search-by-algolia-instant-relevant-results/ You can now install the plugin directly from the admin of WordPress from the 'plugins' section. It appears OVH is

Wordpress Plugin : Can't process Indexing Queue

谁说我不能喝 提交于 2019-12-25 18:46:06
问题 I'm trying to use the Wordpress plugin, but when I select tables, press save, they stay in the Queue and I can't click on the "Process Queue" Button. I've tried to deactivate and reactivate the plugin. What can i do? I'm using Wordpress 4.6. Thanks! 回答1: We just released a new version of the plugin 1.2.0: https://wordpress.org/plugins/search-by-algolia-instant-relevant-results/ You can now install the plugin directly from the admin of WordPress from the 'plugins' section. It appears OVH is

Use location filtering only if location is present with Algolia

爱⌒轻易说出口 提交于 2019-12-24 19:18:23
问题 I have a simple newsfeed and I'd like to include some posts in all feeds, even if there is no location data. Is it possible to only filter locations if _geoloc is set? The alternative is to include many _geoloc 's but that will get messy 来源: https://stackoverflow.com/questions/55341392/use-location-filtering-only-if-location-is-present-with-algolia

Adding Index to Laravel Scout Conditionally (Algolia)

北慕城南 提交于 2019-12-24 13:07:06
问题 I'm trying to add index to Algolia using Laravel Scout based on a condition. For example I have a Article model and I only want to add this article to Algolia if the article is active . My first approach was this: public function toSearchableArray() { if($this->active) return $record; return []; } this only adds the active records but still attempts to add empty arrays which is considered as Operation in algolia ( I will be charged for it). The second approach was to use shouldBesearchable()

Algolia filter by nested attribute JavaScript

对着背影说爱祢 提交于 2019-12-22 11:28:15
问题 So I am using Algolia.com to index users for quick searching. An example object in index: { id: 1, username: "john.doe", name: "John Doe", attributes: { gender: "male", hair_color: "blonde", eye_color: "blue", height: 165 } } I'd like to filter results by a specific attribute (object key) in the attributes object. I thought maybe using facetFilters would do the job, but I am unable to get it working. I have tried many variances of this code: user_index.search('', { facets: '*', facetFilters:

Algolia Firebase and Android integration

为君一笑 提交于 2019-12-21 05:12:37
问题 In my Android app, I am using Firebase as a database. I want to add some search capability and after my research I have found that Algolia is proper for me. Algolia's Firebase tutorial explains how to integrate my existing Firebase database with Algolia. In this tutorial, they provide some Node.js code (which I am not familiar with). In the first gathering of data, I just copied the integration code, did the necessary changes and ran it on Windows terminal: the data is now imported from

Algolia Search Network Error

倾然丶 夕夏残阳落幕 提交于 2019-12-19 06:41:37
问题 I'm connecting Algolia with a Firebase project I have. I'm using the Firebase Cloud Functions in order to keep my Algolia index synced with all changes that occur in my Firebase database. But whenever I call index.saveObject(firebaseObject); from inside my Firebase Cloud Functions, I get AlgoliaSearchNetworkError: getaddrinfo ENOTFOUND 5sffby8as8-1.algolianet.com 5sffby8as8-1.algolianet.com:443 I can run the syncing operation just fine outside of Firebase Functions (just on my own machine).