algolia

Chrome only displaying some images as webp

◇◆丶佛笑我妖孽 提交于 2021-01-29 08:58:12
问题 I've been working on converting images on my website to Webp to improve performance. Typically I'm using the following HTML to display them: <picture> <source srcset="/img/about/image.webp" type="image/webp"> <source srcset="/img/about/image.jpg" type="image/jpeg"> <img src="/img/about/image.jpg" alt="alt text"> </picture> Using the Lighthouse auditing feature in Chrome's Dev Tools and in the pagespeed insights I keep getting told that image could be served in next-gen formats despite the

Running node index.js does nothing

北战南征 提交于 2020-12-26 08:08:28
问题 I am trying to follow a simple tutorial on setting up algolia which one can find here. https://www.algolia.com/doc/tutorials/indexing/3rd-party-service/firebase-algolia/ I literally copy the code word for word into an index.js file. When I run node index.js in my terminal I get this No success message. Nothing in algolia. Nothing. I have included my code is there anything that anyone noties that I may have done wrong. This has been frustrating me for hours. const algoliasearch = require(

Searching (extracting text) PDF files with Algolia

有些话、适合烂在心里 提交于 2020-08-08 03:52:01
问题 This is just a speculative idea for a client who has a lot of PDF files. Algolia say in their FAQs that to search PDF files you first need to extract the text from the file. How would you go about this? The way I envisage the a system working would be: Client uploads PDF via CMS CMS calls some service / program to extract the text Algolia indexes the extracted and it's somehow linked to the original PDF It would need to be an automated system as the client shouldn't have to tell it to index.

Searching (extracting text) PDF files with Algolia

久未见 提交于 2020-08-08 03:51:32
问题 This is just a speculative idea for a client who has a lot of PDF files. Algolia say in their FAQs that to search PDF files you first need to extract the text from the file. How would you go about this? The way I envisage the a system working would be: Client uploads PDF via CMS CMS calls some service / program to extract the text Algolia indexes the extracted and it's somehow linked to the original PDF It would need to be an automated system as the client shouldn't have to tell it to index.

Is there a way to limit Firebase's Blaze plan?

馋奶兔 提交于 2020-05-23 02:32:47
问题 I'm currently working in a social network app and I need to do a search feature. Firestore does not support these kind of queries, so I need to use an external service like Algolia. The problem is that the free plan does not support connecting to external websites/APIs other than Google's own ones, so I can't connect to Algolia to get my search system working. I have read multiple stories about devs paying high bills because of loops or errors in their code, and as the Blaze plan is a pay-to

Angular 7 how to include inline JS script into component?

帅比萌擦擦* 提交于 2020-01-24 12:38:29
问题 I'd like to install places.js library into my Angular 7 project, but I have a problem. I've included following script into my 'index.html' file <script src="https://cdn.jsdelivr.net/npm/places.js@1.16.4"></script> <script> var placesAutocomplete = places({ appId: 'myAppId', apiKey: 'myApiKey', container: document.querySelector('#addressInput') }); </script> but it is working only when I have <input type="search" id="address-input" placeholder="Where are we going?" /> in my 'index.html'. I've

Is it possible to sort randomly, and to query on field if it exists?

送分小仙女□ 提交于 2020-01-23 13:06:58
问题 On Algolia, I'm trying to sort randomly ... Is it possible? I also try to query if a field doesn't exists. With facets I tried something like my_attribut:null ... but I'm not sure if it's possible. Can you help me? Thank 回答1: Random sort order Even though it could possibly make sense to have a random order in the ranking formula, it is incompatible with the way the engine has been built. By focusing on speed + pertinence, Algolia's engine has made some tradeoffs since it is precalculating a

Statistics aggregations in algolia

☆樱花仙子☆ 提交于 2020-01-15 03:36:05
问题 I was looking through the documentation for Algolia and could not find anything related to doing aggregations like you can in elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html An example of what I want to do is this: When a user searches, I show in real time the results of an aggregation on that query as well, such as a count of everything matching a particular filter (e.g. count of all the red items, blue items, yellow items etc) 回答1:

Algolia for node.js and Mongodb

孤者浪人 提交于 2020-01-13 16:09:16
问题 I have a problem right now, Algolia does provide a rich documentation regarding node.js but my problem right now are 1) how do i import mongodb database to algolia server? seems like they are showing how to use MySql database instead of Mongodb with node.js 2) Im using ejs to render the html, so do i need to query the value of a search using node.js or just let the clientside html handle it? because with ejs I have to use app.get("/testingSearch", function(req, res) { res.render('testing', {