-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keyword search can not be combined with other search parameters #430
Comments
@tloubrieu-jpl we should maybe discuss this at the API WG whether or not this is something that needs to be supported by the API. i definitely see where this could be helpful for narrowing responses, but maybe we use faceting to do this instead? |
Thanks @jordanpadams I'll keep that as a discussion topic for tomorrow. |
@jordanpadams am I remembering correctly from yesterday that the conclusion was that this functionality will not be implemented? |
@alexdunnjpl correct. we are going to table this implementation for now. @msbentley for now, I think the workaround would be use to use the new API endpoints (should be deployed soon), which I believe will be: https://pds.nasa.gov/api/search/1.1/classes/observationals?keyword=magnetic @tloubrieu-jpl can correct me if I am wrong. |
The work around will be to integrate the keyword search into the q parameter value. We still need to document what the workaround will be, @msbentley might be interested. |
Fine with me - either search syntax updates or document updates would be great, I was just not sure what to expect. |
Moved from pds-api repo |
@jordanpadams @tloubrieu-jpl could one of y'all please give me a rundown on what PDS keywords are and how they're supposed to work in search? Based on the swaggerdocs description of "free text search of title/description" I'd guess relevance-based ordering of results? Are we sure this requirement is actually possible to fulfill? As far as I understand it, introducing a non-deterministic value ( |
Related tickets: |
@alexdunnjpl the original developer of Harvest created some combined field for the
hmmm, yeah this search after fails here. We will need to figure out a workaround for search support here. Or maybe we just say for keyword search we only support X number of results being returned. |
@jordanpadams in light of what you've just said, is "working at all" still part of the MVP for #424? Seems like maybe it shouldn't be blocking, though I guess at-least- @msbentley is using the feature. |
@alexdunnjpl we definitely need this to work eventually, but not highest priority. In the MVP, this should probably be replaced with |
🐛 Describe the bug
I'm not clear if this is by design, but if I run a keyword search, e.g.
https://pds.nasa.gov/api/search/1.0/products?keyword=magnetic
I get a number of hits of different product types. If I want to repeat this search but get only observational products with this keyword, I assumed I could do:
https://pds.nasa.gov/api/search/1.0/products?keyword=magnetic&q=pds:Identification_Area.pds:product_class eq “Product_Observational”
but this returns the same number of results, implying that when keyword is used, other search parameters are ignored? It would be great to clarify (and document) if this is expected behaviour, or else allow combinations of search parameters.
📜 To Reproduce
Steps to reproduce the behavior:
🕵️ Expected behavior
Unless told otherwise, I would assume that I could constrain a keyword search with other search terms (e.g. q),
📚 Version of Software Used
PDS API V1, tested on 22/11/2022
🦄 Related requirements
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: