openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
224 stars 242 forks source link

Extend search of Add-on store to descriptions #2870

Open holgerfriedrich opened 1 day ago

holgerfriedrich commented 1 day ago

The problem

https://github.com/openhab/openhab-addons/issues/17682#issuecomment-2469187287

We have two add-ons, ism8 and wolfsmartset (you will need one or the other depending on the smart home interface installed in the heating system). When a user types "wolf" into the search field of the add-on store, I would like to see both add-ons shown.

Current behaviour is as follows: Whey I search for "wolf", I get only the latter.

The search mechanism seems to look at the name of the binding, but not at the description (which contains Wolf for both add-ons).

Your suggestion

Extending the search to the description field. This may lead to a lot of false positives. Therefore, we might restrict this feature, e.g., use the description only if the search term has at least 3 letters.

Your environment

Additional information

We discussed adding the term "Wolf" to the binding name in openhab/openhab-addons#17747. This would basically mean that we rename the binding - not my preferred solution.

I do not know about the current implementation of the search and how easy it would be to extend it to the description.

lsiepel commented 1 day ago

An alternative might be to add an optional xml element 'searchTerms' (or something similar). The description was never meant for this and might be causing false positives/unrelated results