当前位置: 首页 > news >正文

查看网站访问量百度云官方网站

查看网站访问量,百度云官方网站,专门做相声的网站,七星彩的网站怎么做的Meilisearch 是由 Meili (一家总部位于法国的软件开发公司)创建的搜索引擎,目前在 Github 上有 47.9k stars。 Meillisearch 具备以下特色功能(ChatGPT-4o 翻译): 混合搜索:结合语义搜索和全文…

Meilisearch 是由 Meili (一家总部位于法国的软件开发公司)创建的搜索引擎,目前在 Github 上有 47.9k stars。

Meillisearch 具备以下特色功能(ChatGPT-4o 翻译):

  1. 混合搜索:结合语义搜索和全文搜索的优点,获取最相关的结果
  2. 即时搜索:在不到50毫秒的时间内找到并显示结果,以提供直观的体验
  3. 容错:即使查询中包含错别字和拼写错误,也能获得相关匹配结果
  4. 过滤和分面搜索:通过自定义过滤器增强用户的搜索体验,并用几行代码构建分面搜索界面
  5. 排序:根据价格、日期或其他用户需求排序结果
  6. 同义词支持:配置同义词以在搜索结果中包含更多相关内容
  7. 地理搜索:基于地理数据过滤和排序文档
  8. 广泛的语言支持:支持任何语言的数据集搜索,特别优化了中文、日文、希伯来文和使用拉丁字母的语
  9. 安全管理:通过允许细粒度权限处理的 API 密钥控制用户的数据访问
  10. 多租户:为任意数量的应用程序租户个性化搜索结果
  11. 高度可定制:可以根据特定需求定制 Meilisearch,或使用Meillisearch开箱即用的无忧预设
  12. RESTful API:可以基于提供的插件和 SDK 将 Meilisearch 集成到技术栈中
  13. 易于安装、部署和维护

如何部署?

两种方式,本地部署或者使用 Meilisearch Cloud,本篇博客的后续内容将简单介绍一下如何本地部署Meillisearch。

操作系统:Ubuntu 22.04.4 LTS

安装命令:

# Install Meilisearch
curl -L https://install.meilisearch.com | sh

执行完命令后的输出如下

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  CurrentDload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0    227      0 --:--:-- --:--:-- --:--:--   226
100  4352  100  4352    0     0   2745      0  0:00:01  0:00:01 --:--:-- 4250k
Downloading Meilisearch binary v1.11.3 for linux, architecture amd64...% Total    % Received % Xferd  Average Speed   Time    Time     Time  CurrentDload  Upload   Total   Spent    Left  Speed0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  115M  100  115M    0     0  1941k      0  0:01:01  0:01:01 --:--:-- 2174k
Meilisearch v1.11.3 binary successfully downloaded as 'meilisearch' file.Run it:$ ./meilisearch
Usage:$ ./meilisearch --help

如何运行?

启动 Meilisearch应用,可以配置 master-key 让Meilisearch的运行更安全。

设置主密钥在开发环境中是可选的,但强烈建议进行配置。在生产环境中,主密钥是必需的。

主密钥可以改为任何长度大于等于 16 的字母数字组合形成的字符串。

# Launch Meilisearch
./meilisearch --master-key="aSampleMasterKey"

正常启动后终端输出(默认运行在7700端口):

888b     d888          d8b 888 d8b                                            888
8888b   d8888          Y8P 888 Y8P                                            888
88888b.d88888              888                                                888
888Y88888P888  .d88b.  888 888 888 .d8888b   .d88b.   8888b.  888d888 .d8888b 88888b.
888 Y888P 888 d8P  Y8b 888 888 888 88K      d8P  Y8b     "88b 888P"  d88P"    888 "88b
888  Y8P  888 88888888 888 888 888 "Y8888b. 88888888 .d888888 888    888      888  888
888   "   888 Y8b.     888 888 888      X88 Y8b.     888  888 888    Y88b.    888  888
888       888  "Y8888  888 888 888  88888P'  "Y8888  "Y888888 888     "Y8888P 888  888Config file path:       "none"
Database path:          "./data.ms"
Server listening on:    "http://localhost:7700"
Environment:            "development"
Commit SHA:             "unknown"
Commit date:            "unknown"
Package version:        "1.11.3"Thank you for using Meilisearch!We collect anonymized analytics to improve our product and your experience. To learn more, including how to turn off analytics, visit our dedicated documentation page: https://www.meilisearch.com/docs/learn/what_is_meilisearch/telemetryAnonymous telemetry:    "Enabled"
Instance UID:           "2e3c3aae-3fc3-458c-a610-3aaf910f86a4"A master key has been set. Requests to Meilisearch won't be authorized unless you provide an authentication key.Check out Meilisearch Cloud!    https://www.meilisearch.com/cloud?utm_campaign=oss&utm_source=engine&utm_medium=cli
Documentation:                  https://www.meilisearch.com/docs
Source code:                    https://github.com/meilisearch/meilisearch
Discord:                        https://discord.meilisearch.com2024-12-13T09:18:37.941118Z  INFO actix_server::builder: starting 32 workers
2024-12-13T09:18:37.941200Z  INFO actix_server::server: Actix runtime found; starting in Actix runtime

如何使用?

  1. 将官方提供的 movies.json文件上传到安装部署 Meilisearch 的同一目录下,然后执行以下命令:
curl \-X POST 'http://localhost:7700/indexes/movies/documents?primaryKey=id' \-H 'Content-Type: application/json' \-H 'Authorization: Bearer aSampleMasterKey' \--data-binary @movies.json

movies.json 中某一条数据示例:

{"id": 2,"title": "Ariel","overview": "Taisto Kasurinen is a Finnish coal miner whose father has just committed suicide and who is framed for a crime he did not commit. In jail, he starts to dream about leaving the country and starting a new life. He escapes from prison but things don't go as planned...","genres": ["Drama","Crime","Comedy"],"poster": "https://image.tmdb.org/t/p/w500/ojDg0PGvs6R9xYFodRct2kdI6wC.jpg","release_date": 593395200
}

Meilisearch 以离散记录的形式存储数据,这些记录称为文档。每个文档是由多个字段组成的对象,每个字段由一个属性和值对构构成。文档被分组到集合中,这些集合称为索引。先前执行的 curl 命令将 movies.json 中的文档添加到了一个名为 movies 的新索引中,并将 id 设置为主键。

终端输出结果:

{"taskUid": 1,"indexUid": "movies","status": "enqueued","type": "documentAdditionOrUpdate","enqueuedAt": "2024-12-13T09:39:50.659976613Z"
}
  1. 对建立的名为 movies 的索引进行检索

执行如下命令:

curl \-X POST 'http://localhost:7700/indexes/movies/search' \-H 'Content-Type: application/json' \-H 'Authorization: Bearer aSampleMasterKey' \--data-binary '{ "q": "botman" }'

参数 q 代表query,默认情况下,Meilisearch 仅返回搜索查询的前 20 个结果(可以使用 limit 参数更改此设置)。

检索 botman 相关电影信息并返回一条检索结果:

curl \-X POST 'http://localhost:7700/indexes/movies/search' \-H 'Content-Type: application/json' \-H 'Authorization: Bearer aSampleMasterKey' \--data-binary '{ "q": "botman", "limit": 1}'

执行命令后终端输出的检索结果如下:

{"hits": [{"id": 155,"title": "The Dark Knight","overview": "Batman raises the stakes in his war on crime. With the help of Lt. Jim Gordon and District Attorney Harvey Dent, Batman sets out to dismantle the remaining criminal organizations that plague the streets. The partnership proves to be effective, but they soon find themselves prey to a reign of chaos unleashed by a rising criminal mastermind known to the terrified citizens of Gotham as the Joker.","genres": ["Drama","Action","Crime","Thriller"],"poster": "https://image.tmdb.org/t/p/w500/qJ2tW6WMUDux911r6m7haRef0WH.jpg","release_date": 1216166400}],"query": "botman","processingTimeMs": 0,"limit": 1,"offset": 0,"estimatedTotalHits": 70
}

更多Meillisearch相关使用请前往 官方文档 或关注后续博客内容。


文章转载自:
http://nummulary.spfh.cn
http://overblown.spfh.cn
http://linoleum.spfh.cn
http://czardas.spfh.cn
http://phanerogamous.spfh.cn
http://mylonite.spfh.cn
http://heckler.spfh.cn
http://bottle.spfh.cn
http://forane.spfh.cn
http://kermit.spfh.cn
http://delphi.spfh.cn
http://autohypnosis.spfh.cn
http://pracharak.spfh.cn
http://armadillo.spfh.cn
http://humanisation.spfh.cn
http://usage.spfh.cn
http://latinian.spfh.cn
http://notes.spfh.cn
http://zounds.spfh.cn
http://nemesis.spfh.cn
http://snuggish.spfh.cn
http://nitrophenol.spfh.cn
http://brett.spfh.cn
http://folkmote.spfh.cn
http://landtag.spfh.cn
http://emanatorium.spfh.cn
http://anogenital.spfh.cn
http://iron.spfh.cn
http://padrone.spfh.cn
http://noumenon.spfh.cn
http://reprimand.spfh.cn
http://hydropathic.spfh.cn
http://fslic.spfh.cn
http://laurdalite.spfh.cn
http://radiocarbon.spfh.cn
http://metaxenia.spfh.cn
http://sexivalent.spfh.cn
http://touchable.spfh.cn
http://hoodlum.spfh.cn
http://subtransparent.spfh.cn
http://defuse.spfh.cn
http://redbelly.spfh.cn
http://pert.spfh.cn
http://liberalism.spfh.cn
http://psychotoxic.spfh.cn
http://decorator.spfh.cn
http://gallbladder.spfh.cn
http://clamjamfry.spfh.cn
http://nonjoinder.spfh.cn
http://mormon.spfh.cn
http://aroid.spfh.cn
http://exultation.spfh.cn
http://resister.spfh.cn
http://contrariousness.spfh.cn
http://subumbrella.spfh.cn
http://conciliatory.spfh.cn
http://sigmatropic.spfh.cn
http://railwayed.spfh.cn
http://disinvite.spfh.cn
http://atreus.spfh.cn
http://lorry.spfh.cn
http://livelong.spfh.cn
http://algarroba.spfh.cn
http://alimony.spfh.cn
http://homoeothermal.spfh.cn
http://nonmiscible.spfh.cn
http://mordacity.spfh.cn
http://bangkok.spfh.cn
http://pseudomyopia.spfh.cn
http://gothicist.spfh.cn
http://sarcomata.spfh.cn
http://thermostatic.spfh.cn
http://soya.spfh.cn
http://maenad.spfh.cn
http://tubbing.spfh.cn
http://nanhai.spfh.cn
http://skimpily.spfh.cn
http://mightily.spfh.cn
http://nicotinamide.spfh.cn
http://deemphasis.spfh.cn
http://tatiana.spfh.cn
http://arabic.spfh.cn
http://petrosal.spfh.cn
http://trustworthy.spfh.cn
http://hearing.spfh.cn
http://afterpains.spfh.cn
http://unboundedly.spfh.cn
http://obdr.spfh.cn
http://sympathetically.spfh.cn
http://teratogenicity.spfh.cn
http://porphobilinogen.spfh.cn
http://diameter.spfh.cn
http://karstology.spfh.cn
http://ramayana.spfh.cn
http://damagingly.spfh.cn
http://livery.spfh.cn
http://dolichosaurus.spfh.cn
http://telecine.spfh.cn
http://zebeck.spfh.cn
http://segmentation.spfh.cn
http://www.15wanjia.com/news/72870.html

相关文章:

  • 成都网站建设需多少钱百度导航下载2022最新版官网
  • 东莞网站建设制作软件企业关键词优化推荐
  • 政府门户网站建设报告网络营销技巧培训
  • 高端外贸网站建设泰安网络推广培训
  • 上海企业模板建站重庆关键词优化服务
  • dw做的网站如何发布北京百度推广公司
  • 南昌做网站福建seo学校
  • 做门户网站找哪家公司朝阳网站seo
  • 图展网站源码微信公众平台开发
  • 网站开发html百度卖货平台
  • 沈阳公司建设网站b2b商务平台
  • 营销管理网站制作长沙seo服务
  • 怎么开网店找货源佛山seo教程
  • 做网站没有数据库郴州seo网络优化
  • 如何搭建公司网站网络舆情的网站
  • 企业网站建设公司哪家好网络营销成功案例ppt
  • 泰安市人才招聘网手机优化什么意思
  • 沈阳网站制作公司和服务器友情链接购买网站
  • 十大景观设计网站24小时人工在线客服
  • 足彩网站开发竞价如何屏蔽恶意点击
  • 做手机版网站和做app差别郑州网站seo公司
  • 福州网站建设出格网站制作大概多少钱
  • wordpress 微语功能seo是如何做优化的
  • 网上免费做网站色盲和色弱的区别
  • ASP.NET4.5动态网站开发海外网络推广
  • yes风淘宝网站郑州seo网站管理
  • 如何快速提升网站prchrome浏览器
  • 网站内页做排名武汉网站搜索引擎优化
  • wordpress 运行机制seo基础课程
  • 徐州做网站最好的公司营销管理系统