Search field on menu

imagej
neubias
#41

Thanks a lot @PerrineGilloteaux and @haesleinhuepf for pushing the BISE search forward! :trophy:

A couple of thoughts:

  1. I noticed that the summary comes back in HTML. @haesleinhuepf Since the search GUI is written in Swing, it should work to prepend <html> to the summary value, such that the HTML is rendered nicely. We could consider sanitizing it first, to avoid some unlikely scenario of someone hacking the BISE site to inject some crazy HTML, but the Swing HTML renderer doesn’t support most (any?) of the crazy features that would cause a problem there, so it might be fine to simply pass it through directly.

  2. I see that the Summary is duplicated in two places. We should unify that, no?

  3. I see there is a Link. We could make that into a SearchActionFactory: if a Link entry exists in the metadata, then include a “Web site” button that launches it in browser. What do you think?

1 Like
#42

I’d vote for no filtering, i.e. show all results, to avoid confusion why something can be found on the website but not through the ImageJ search bar.

Instead, I’d suggest to sort the results by relevance and show ImageJ-related items first.

EDIT:
On a related note, the requires field in the BISE database lists sometimes ImageJ, sometimes Fiji, and often together with others such as KNIME. So if my tools can run both in ImageJ and in KNIME, do I list both as requirements, even if only one of them is mandatory? How do I indicate mandatory vs. “optional” requirements? And how should the ImageJ search bar know which ones to show?

1 Like
#43

Hey all,

I just updated the BISE search on my fork. It’s almost ready to ship.
It’s actually a super nice feature, because now you can search for Plugins and Commands which are currently not installed in your Fiji :partying_face:

I decided to not show any thumbnails as loading images from the internet takes too long. Instead, the NEUBIAS logo is shown. I hope that’s ok @Kota?

Furthermore,

In order to make this happen, please add a column type on server side. I can then show it in the results. @Kota @PerrineGilloteaux

If you want to give it a try, please download scijava-search.jar , put it in the jars subfolder of your Fiji installation, replace the former scijava-search.jar and restart Fiji.

Looking forward to any feedback!

Cheers,
Robert

3 Likes
#44

Great @haesleinhuepf !

OK for me with the icon and without any filter on search results. Looking forward to feedbacks!

1 Like
#45

I love it :smiley: !

Just 2 questions :

  1. Only ImageJ/Fiji macro are listed right ? So how do I make sure on BISE side that a new entry will be referenced by the search engine. Is it the Requires fields ?

  2. About the icons

I think it is not a priority but still it would be cool.

Icy does it for their built-in search engine, maybe @PerrineGilloteaux knows more about that ?

That would be on BISE side but what about downscaling the logo to have a small version that would be quick to download and render ?
OR having a second logo entry for a small icon in case downscaling the big one is just uggly or if the big and small version should be different on purpose.
OR storing some logo locally (some sort of caching)

1 Like
#46

Only ImageJ/Fiji macro are listed right ? So how do I make sure on BISE side that a new entry will be referenced by the search engine. Is it the Requires fields ?

It’s a full-text search, but not touching “Requires” field.

I think there still needs some tuning. For example, “Tracking” does not return Trackmate!! - This probably is because there is no “ImageJ” in the description of Trackmate, I guess. WIth “Trackmate” there will be the proper hit.

http://biii.eu/searchjsonexport?search_api_fulltext=(?=TrackMate)&_format=json

I think we better think about icons when the search results become more accurate.

1 Like
#47

Indeed not in the description but the field Requires states Fiji :smirk:
Is it based only on the Description field of the BISE entry right now ? (sorry not clear to me from the source code)

1 Like
#48

Is it based only on the Description field of the BISE entry right now ?

Not sure because I do not really touch this part… I mean this is about search API settings and the JSON output.

I think the search API settings in biii.eu should be adjusted to include “Requires” field - I will test around a bit locally and will try to update.

1 Like