-
Notifications
You must be signed in to change notification settings - Fork 3
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
wildcards do not work as expected for all fields #210
Comments
@plawton-umd this is probably the OpenSearch types we are using to ingest and tokenize the data. will research this further. |
@plawton-umd as an additional note, it actually looks like |
@jordanpadams what needs done to this ticket? You mentioned about that it already fixed and documentation is waiting to be updated. |
@al-niessner if you could fix the documentation to make |
@jordanpadams @jimmie - where is the documentation that needs fixed as I have never seen it but only discussed it in the abstract? |
* Update response_formats.rst fix typo on kvp * Update endpoints.rst Change wildcarding rules resolves #210
🐛 Describe the bug
Working from https://nasa-pds.github.io/pds-api/guides/search/endpoints.html
The wildcard, specifically "*", behaves inconsistently. It works for title and description.
For examples
curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/collections' --data-urlencode "summary-only=true" --data-urlencode 'q=(title eq "Tempel")'
and
curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/collections' --data-urlencode "summary-only=true" --data-urlencode 'q=(description eq "Tempel")'
It does not work for many other field tried - for example name and target.
📜 To Reproduce
Steps to reproduce the behavior:
curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/collections' --data-urlencode "summary-only=true" --data-urlencode 'q=(name eq "Tempel")' | json_pp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 109 0 109 0 0 1079 0 --:--:-- --:--:-- --:--:-- 1079
{
"summary" : {
"hits" : 0,
"limit" : 100,
"properties" : [],
"q" : "(name eq "Tempel")",
"sort" : [],
"start" : 0,
"took" : 20
}
}
Note the 0 hits.
🕵️ Expected behavior
Expect a result similar to that of title and description.
{
"summary" : {
"hits" : 6,
"limit" : 100,
"properties" : [
"_package_id",
"description",
"lid",
...
],
"q" : "(description eq "Tempel")",
"sort" : [],
"start" : 0,
"took" : 318
}
}
Note 6 hits.
📚 Version of Software Used
curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/
🩺 Test Data / Additional context
🏞Screenshots
🖥 System Info
Release-Date: 2019-03-27
🦄 Related requirements
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: