lacey, to random
@lacey@hachyderm.io avatar

New TIL: Securing the Meilisearch search itself https://github.com/williln/til/blob/main/meilisearch/securing_meilisearch_search.md

I've absorbed so much new information about Meilisearch this week, and I still feel like there is so much I don't quite understand. So today's TIL is filled with things I wasn't sure about... but I did learn things.

lacey, to django
@lacey@hachyderm.io avatar

New TIL, follow-up to the last TIL: Securing Meilisearch with Docker for local Django development https://github.com/williln/til/blob/main/meilisearch/securing_meilisearch_in_docker.md

lacey, to random
@lacey@hachyderm.io avatar

New TIL: Setting up Meilisearch with Python, Docker, and Compose for local development https://github.com/williln/til/blob/main/meilisearch/setting_up_meilisearch_python_docker.md

Dealing with that environment variable is next but I decided I wanted that to be its own TIL.

wouterj, to Symfony
@wouterj@phpc.social avatar
thepanz,
@thepanz@phpc.social avatar

@wouterj cool work! I recently started implementing an "autocomplete/autosuggestion" helper for the SF console, backed up by , and would like to know how you implemented the "right scrollbar" :)

Is there a public repo for your example?
Or are there any other SF console helpers that you know?
Anyeay: thank you again for your great work on SF!

Chocobozzz, to fediverse
@Chocobozzz@framapiaf.org avatar

is your companion for finding videos, playlists and channels from the PeerTube federation

We're currently testing in favour of to index the data.

As it's difficult to know if the results are relevant in all languages, we're looking for public feedback!

So don't hesitate to test this new engine on https://meilisearch.sepiasearch.org/ and let us know what you think :)

masukomi, to random
@masukomi@connectified.com avatar

I've just pushed v1.1.1 of the mongodb_meilisearch gem. This fixes a bug that new users are likely to encounter where a new index wasn't having its filterable or sortable attributes autoconfigured.

I also updated some JSON keys used behind the scenes in accordance with deprecation warnings from meilisearch-ruby

dev, to random Japanese
@dev@post.naskya.net avatar

私の Firefish フォークをお使いの鯖缶さんへ
全文検索のエンジンを PGroonga に変更しました。
そのため、アップデート前に PGroonga をインストールする必要があります。

Ubuntu 向けのインストールスクリプトを使って Firefish をインストールされた場合には

$ psql --version

で PostgreSQL のバージョンを確認していただいてからこのページの「公式 PostgreSQL 用のインストール方法」の手順(一番上に書いてあるやつではないよ!$ sudo apt install -y -V postgresql-16-pgdg-pgroonga までです)を行ってください。
最後の postgresql-16-pgdg-pgroonga の部分は使っている PostgreSQL のバージョンに合わせて変更してください。例えば、PostgreSQL 14.x をお使いの場合には postgresql-14-pgdg-pgroonga としてください。

その後、.config/default.yml を開いて自分のデータベースの名前を確認してください(以下の例では firefish がデータベース名です)```
db:
host: localhost
port: 5432
db: firefish # ここに書いてあるやつ


  
その後、以下のコマンドで PGroonga の拡張機能を有効にしてください(`firefish` の部分は自分のデータベース名に変えてください)```
$ sudo -iu postgres psql --command="CREATE EXTENSION pgroonga;" --dbname=firefish

Meilisearch, Sonic, Elasticsearch のいずれかを使用していた場合、.config/default.yml からその設定をコメントアウトしてください(行頭に # をつけます)。```
:

host: meilisearch

port: 7700

ssl: false

apiKey: xxxxxxxxxxxxxx


使っていた全文検索エンジンはアンインストールしてしまっても構いません(しばらく本家版に戻るつもりが無ければアンインストールしてしまうことをおすすめします)  
  
ここまでの作業が終わったらいつも通り(?)アップデートスクリプトを使って Firefish をアップデートしてください。  
  
質問がある場合にはこの投稿に(できれば公開投稿として)リプライしてください。
masukomi, to ruby
@masukomi@connectified.com avatar

I've pushed a new version of the mongodb_meilisearch gem (v1.1.0)

  • now specifies default sortable attributes
  • now allows you to customize sortable attributes
  • previously you had to do that directly via the index object
  • corrects bug where setting filterable attributes was always asynchronous
  • now it does what you specify

https://github.com/masukomi/mongodb_meilisearch

masukomi, to ruby
@masukomi@connectified.com avatar

the mongodb_meilisearch gem has been bumped to v1.0.1

this fixes the minor bug where the IDs from belongs_to relations were getting indexed without your asking. This just wasted space and RAM.

issue with details here:
https://github.com/masukomi/mongodb_meilisearch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc

gem here:
https://github.com/masukomi/mongodb_meilisearch

masukomi, to ruby
@masukomi@connectified.com avatar

If anyone's using my mongodb_meilisearch gem , i just noticed a bug where it's indexing additional fields it shouldn't. Won't negatively effect your searches, but will result in wasted resources. I'll try and fix that this weekend.

https://github.com/masukomi/mongodb_meilisearch/issues/2

masukomi, to random
@masukomi@connectified.com avatar

FYI for users of search:

TIL: Manticore has no "stop words" loaded by default. Kinda 🤯 to me. I'd expect it to ask you what language(s) you were planning to index and pre-load them, or offer to pre-load them. Or just pre-load them in its default language without asking.

https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Ignoring_stop-words#stopwords

masukomi,
@masukomi@connectified.com avatar

TIL: doesn't have default "stop words" either.

Maybe this is a normal thing for search engines. Seems weird to me though. They're such an important part of getting good search results.

masukomi, to rubyonrails
@masukomi@connectified.com avatar

Reminder for the folks out there that use and

I've released a gem that makes it really easy to integrate into your app.

https://github.com/masukomi/mongodb_meilisearch

masukomi, to rubyonrails
@masukomi@connectified.com avatar

I'm very proud to announce the release of a new gem to make it easy to integrate with backed models in a app

It's called mongodb_meilisearch

https://github.com/masukomi/mongodb_meilisearch

I'd love to hear your feedback.

()

masukomi, to ruby
@masukomi@connectified.com avatar

I've spent the past 2 1/2 days down a rabbit hole of refactoring.

There's no good gem that makes it trivial to integrate your backed models with

I was tempted to just bundle up the files I've been using for > 1month, but i have standards and don't want to screw anyone with something that wastes their time because it only "Works for me"

14 hours later, I've got a radically better codebase, packaged up as a gem, with tests for most of the major stuff.

moon, to random

I like the fact on my instance is at 9900%! 🤔👈

kris, to random
@kris@outmo.de avatar

Managed to get working with my instance. Before I tried Zincsearch via the Elasticsearch support, but I couldn't quite figure out why it wouldn't index properly.

I'll test it a bit and improve my setup and then I can share some guide. :blobcatnerd:

masukomi, to random
@masukomi@connectified.com avatar

I spent most of yesterday trying to fix the mongoid support in meilisearch-rails. After spending nearly a day with it i'd still barely wrapped my head around all the complexity. Lots of ong complicated untested methods.

Just before going to bed my brain realized "this is just a really complicated implementation of a simple wrapper"

1/?

masukomi,
@masukomi@connectified.com avatar

This morning, after walking the dogs, I cranked out a little under 200 lines of code that implements basically all of it in a bunch of small, testable, easy to reason about methods.

Haven't written tests yet, but this afternoon I actually used the new lib and have working, configurable, easy to use, integration for backed models.

2/?

masukomi, (edited )
@masukomi@connectified.com avatar

3/3
I intend to live with my new library for a few weeks and then package it up as a gem for others.

In theory it should be pretty easy to support a relational db too. The only thing it complicates is the unit testing because now you need to connect to mongo AND a relational db.

🤔 not sure if there's enough demand to bother though.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • Durango
  • megavids
  • InstantRegret
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • lostlight
  • All magazines