MeiliSearch v0.11: What’s New?

栏目: IT技术 · 发布时间: 4年前

内容简介:The v0.11 version of MeiliSearch introduces a highly anticipated feature:If you're not familiar: Faceted search lets you search by including or excluding some attributes from categories called facets. You have probably come across faceted search during you

The v0.11 version of MeiliSearch introduces a highly anticipated feature: faceted search . Every modern search experience includes faceted search. We were eager to offer this experience to our users, and we are excited to have finally achieved this critical step.

Faceted Search

If you're not familiar: Faceted search lets you search by including or excluding some attributes from categories called facets. You have probably come across faceted search during your online consumerist life. It is often presented as a sidebar with checkboxes. Giving me, as a woman, the possibility to show only 8.5 size shoes and see my possible choices decrease to oblivion.

MeiliSearch v0.11: What’s New?
In this case the facet is size , the attribute is UK 8 ½ , and the number of products found 2

Faceted search is not easy to understand. It is often confused with Filters. However, filtering is used to filter the returned results by adding constraints. Facets , on the other hand, are used to categorize the data into subsets that will be searched upon: they reduce the number of documents to process .

We didn’t see any reason to reinvent the wheel; if you’re familiar with how Algolia does facets, you’ll see we’ve gone with a very similar API. We improved a bit on the usage to reduce furthermore all possible friction in the hope that it is accessible for all users.

To set up faceted search, only two steps are required:

Add facets in the settings. For an attribute to be used as a facet it must be added in the attributesForFaceting list.

$ curl \
  -X POST 'http://localhost:7700/indexes/movies/settings' \
  --data '{
      "attributesForFaceting": [
          "director",
          "genres"
      ]
  }'
Declare director and genres as facets .

Use facets during search. By using the query parameter facetFilters it is possible to add the chosen facets attributes to narrow down the results:

$ curl --get 'http://localhost:7700/indexes/movies/search' \
    --data-urlencode 'q=Get' \
    --data-urlencode 'facetFilters=["director:Jordan Peele"]'
Search for movies by a specific director

This is all explained in ourguide on Faceting.

SSL Support

All the configuration options to enable SSL are now available.

Learn more about it in our configuration guide.

Max payload size

In the early versions of MeiliSearch, there was no limit to the size of the body MeiliSearch accepted. This version introduces the standard default limit of a maximum payload of 10 Megabytes and the possibility of changing the limit.

$ ./meilisearch --http-payload-size-limit=107374182400
Change the upload limit to 100 Megabytes

Improved Analytics

To further understand how our users use MeiliSearch and how to improve it, more analytics are added.

A complete list can be found here.

Users can deactivate analytics by using the following command line option:

$ ./meilisearch --no-analytics

Conclusion

Those are the main changes in this version. For a more thorough list, please visit the changelogs of this version .

We are eager to hear some feedback. Feel free to come and talk to us any way you prefer . We are thrilled by all the support given to our search engine and the never-ending growth in users and stars.

Thanks a lot,

The MeiliSearch team and the girl with big feet.


以上所述就是小编给大家介绍的《MeiliSearch v0.11: What’s New?》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

未来简史

未来简史

[以色列] 尤瓦尔·赫拉利 / 林俊宏 / 中信出版集团 / 2017-2 / 68.00元

进入21世纪后,曾经长期威胁人类生存、发展的瘟疫、饥荒和战争已经被攻克,智人面临着新的待办议题:永生不老、幸福快乐和成为具有“神性”的人类。在解决这些新问题的过程中,科学技术的发展将颠覆我们很多当下认为无需佐证的“常识”,比如人文主义所推崇的自由意志将面临严峻挑战,机器将会代替人类做出更明智的选择。 更重要的,当以大数据、人工智能为代表的科学技术发展的日益成熟,人类将面临着从进化到智人以来z......一起来看看 《未来简史》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

SHA 加密
SHA 加密

SHA 加密工具