NASA-PDS / registry-api

Web API service for the PDS Registry, providing the implementation of the PDS Search API (https://github.com/nasa-pds/pds-api) for the PDS Registry.
https://nasa-pds.github.io/pds-api
Apache License 2.0
2 stars 5 forks source link

`like` queries don't work with prefixed wildcards #425

Open jordanpadams opened 6 months ago

jordanpadams commented 6 months ago

Checked for duplicates

Yes - I've already checked

🐛 Describe the bug

lid like "urn:nasa:pds:lro_lola*" works but lid like "*lro_lola*" does not

🕵️ Expected behavior

I expected both to work (the second maybe even return a lot more data...

📜 To Reproduce

https://pds.nasa.gov/api/search/1/products?q=(product_class%20eq%20%22Product_Observational%22%20and%20lid%20like%20%22urn:nasa:pds:lro_lola*%22)

https://pds.nasa.gov/api/search/1/products?q=(product_class%20eq%20%22Product_Observational%22%20and%20lid%20like%20%22*lro_lola*%22)

🖥 Environment Info

Chrome

📚 Version of Software Used

No response

🩺 Test Data / Additional context

See URLs above

🦄 Related requirements

⚙️ Engineering Details

No response