ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Panel: fuzzy search

Open johannahoerrmann opened this issue 7 years ago • 9 comments

Moved from https://github.com/k-next/kirby/issues/1236:

It would be great if the panel search also found phrases with accents when searching for the same phrase without accents.

Screenshots

grafik grafik

johannahoerrmann avatar Dec 05 '18 11:12 johannahoerrmann

Maybe it could also be an option to open the Panel search up for an extension, so that a plugin could implement Angolia or so for the Panel. Could solve the issue as well this way.

distantnative avatar Mar 07 '19 13:03 distantnative

@distantnative to make the search extendable the search::collection or parts of it need to be a component right? https://github.com/getkirby/kirby/blob/80b69380e672565a849037232c9951d1e32774c8/src/Cms/Search.php#L67

bnomei avatar Jul 04 '19 09:07 bnomei

any progress on this one? it does not seem to hard to implement on php side, right?

bnomei avatar Dec 04 '19 08:12 bnomei

The issue still exists and we'd be very happy to have a core solution (either directly implemented or provided by plugins).

nilshoerrmann avatar Dec 04 '19 09:12 nilshoerrmann

Would love to see this also for the search content in the template.

yoanmalie avatar Dec 18 '19 10:12 yoanmalie

I'm afraid adding it as part of the core would be quite the load. So a plugin would make much more sense to me.

On the PHP side I am looking at https://github.com/loilo/Fuse as a potential library. Since the Panel is calling the API for search anyways, we would "only" need to switch out the ->search() methods.

Those are essentially built on https://github.com/getkirby/kirby/blob/master/src/Cms/Search.php#L38-L128

Maybe we could wrap this as a component which then would be replacable via plugin. And that plugin could provide an implementation of a PHP fuzzy search library - adding fuzzy search to the PHP API as well as Panel search.

distantnative avatar Dec 18 '19 11:12 distantnative

@distantnative make the search a component then. i will happily create a few plugins. client of would love to have algolia results in search. :D

bnomei avatar Dec 18 '19 12:12 bnomei

@bnomei as you can see there is a referenced issue above ;)

distantnative avatar Dec 18 '19 12:12 distantnative

Handled by https://github.com/getkirby/kirby/pull/2794.

nilshoerrmann avatar Sep 18 '20 10:09 nilshoerrmann