问题标签 [algolia]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
211 浏览

php - Algolia 搜索 PHP API 检索 ObjectID

我正在使用 algolia 搜索的 php API 来执行名称搜索。我希望它只返回 objectID,因为我想根据其他(外部)标准过滤匹配项。我将 attributesToRetrieve 参数作为字符串和数组添加到 search() 中,但它仍然返回所有内容。

有任何想法吗?谢谢!

或者

0 投票
1 回答
940 浏览

search - 在 Algolia 索引中搜索准确的术语

我想通过属性的确切值过滤索引。我想知道 Algolia 提供了哪些可能性。

查询索引始终会导致搜索子字符串,这意味着搜索词abc将始终匹配属性值包含的任何对象abc。我想要实现的是abcabc作为属性值的搜索(在这种情况下,我有特定的属性要搜索)。

我想出的一种可能性是标记,这似乎不是最好的思考方式。

编辑

我想我也可以使用构面过滤器。我考虑了不同的利弊,无法提出任何一个立场高于另一个立场的论点。

0 投票
1 回答
929 浏览

twitter-bootstrap-3 - 使用 Algolia 和 Bootstrap 3 在多列中命中结果

我正在使用 Algolia instantsearch.js 进行搜索,并显示我的结果页面,我使用的是 Bootstrap 3,我希望将点击显示在 3 列中:

(其中 qry = 搜索查询输入小部件)等等。

如果它是移动的,它应该显示为:

有人可以帮助我使用 html/css 来实现它吗?谢谢!

0 投票
1 回答
343 浏览

algolia - Displaying a 'Top Result' with Algolia?

I want to search 3 different indices at once, breaking out their results into 3 separate sections.

Above these 3 sections though, I want to display a 4th section with a single result row, and this section will be titled "Best Result".

It should take the best result of the 3 indices that most perfectly matches.

Does anyone know how I can achieve this? Thanks!

0 投票
1 回答
1127 浏览

algolia - algolia instantsearch.js searchBox widget indexName error

I'm getting an error using the searchBox widget from Algolia instantsearch.js The error message reads:

indexName is not valid

This error is weird, because not only does it exist, but it's displaying results! The problem repeats each time I type something into the searchBox widget, and the results are not filtered by whatever I type. I've created a plunker to see if anyone can tell me what I'm doing wrong.

http://plnkr.co/edit/ihz5VMZ6HUDaYKTqwo9V?p=preview

0 投票
1 回答
223 浏览

algolia - Algolia instantsearch.js 发生缩小异常;不变的

我从 Instantsearch.js 收到一个对我来说没有任何意义的错误。错误是:

错误:发生缩小异常;使用未缩小的开发环境获取完整的错误消息和其他有用的警告。

我用有问题的代码创建了一个小提琴:

https://jsfiddle.net/qkqzgsv9/

这是HTML:

这是Javascript:

它发生在 Safari 和 Chrome 中。而且我什至没有使用 Instantsearch.js 的缩小版本。知道是什么原因造成的吗?

0 投票
1 回答
2169 浏览

javascript - 获取 Algolia 索引中的记录总数 - Javascript

如何使用 algolia 获取索引中的记录总数?

我想避免进行空搜索,将每页的项目数设置为一百万或其他内容。

0 投票
2 回答
436 浏览

node.js - Algolia 键值搜索

我目前正在使用 Algolia 搜索 API,但无法弄清楚如何通过key value搜索 + 查询字符串来限制结果。我的意思是这个。

我有一个属性列表。每个属性都属于一个客户。

在应用程序中如果我正在查看客户信息卡并且我想搜索客户拥有的属性,将结果限制为客户然后查找查询字符串会更有意义。

我使用 MongoDB 作为我的数据库,并将客户端 ID 存储为子文档,如下所示

0 投票
0 回答
200 浏览

ruby-on-rails - 为什么在 Algolia 进行重新索引操作需要一个多小时?

我正在尝试通过运行重新索引模型数据库中的所有记录:

但是,重新索引我通过Algolia 的文档搜索的大约 800K 记录需要大约 8 个小时,我找不到索引大量记录需要多长时间。

有人遇到过这个问题吗?

谢谢

0 投票
2 回答
392 浏览

algolia - Algolia 免费计划的操作次数

Algolia 定价页面在其免费计划中包含这样的单元格。

这是否意味着100.000运营后客户应该切换到付费计划,或者它是否像其他人一样每月重置?