Stellarium / stellarium

Stellarium is a free GPL software which renders realistic skies in real time with OpenGL. It is available for Linux/Unix, Windows and macOS. With Stellarium, you really see what you can see with your eyes, binoculars or a small telescope.
https://stellarium.org
GNU General Public License v2.0
7.56k stars 815 forks source link

RemoteControl:ObjectService - find results inconsistent and limited #2455

Open stx-chris opened 2 years ago

stx-chris commented 2 years ago

Expected Behaviour

Finding objects with the ObjectService:find service should behave similarly to the search window and allow space characters (either unescaped or escaped) in the search term.

Actual Behaviour

Finding objects by name sometimes fails. Furthermore, the ObjectService:find service does not behave like the built-in search window.

Steps to reproduce

Searching for "88 Tau" in the Stellarium search dialog delivers the result as expected. Using /objects/find?str=88 in the RemoteControl plugin REST GET interface does not include 88 Tau in the result set; Trying to use the exact term (with or without escaping the space character) using /objects/find?str=88 Tau, /objects/find?str=88+Tau /objects/find?str%2088 returns an empty array [].

In addition, it seems that the search results seem to be limited in size and somehow inconsistent. Searching for Aqr returns R Aqr Nebula, whereas a search for 38 also returns 38 Aqr.

System

Logfile

config.ini: flag_start_words = false

gzotti commented 2 years ago

When I searched for 88 Tau, it required a SIMBAD query to find it. The SC object query probably just has not implemented forwarding queries to SIMBAD.

github-actions[bot] commented 2 years ago

Hello @stx-chris! Thank you for suggesting this enhancement.