-
Notifications
You must be signed in to change notification settings - Fork 3
blob is returned in product results if fields to return are not specified #51
Comments
I m not reproducing the error with ES versnio 7.10
The log of the request to ES is similar: |
AWS ES is version 7.9.1: { |
And I am wondering, @jimmie are we using the open source elastic search on AWS yet ? |
In
but should(?) instead be:
After making this change, the BLOB is omitted even when no 'includes' are specified. |
The registry schema was updated such that the proper field name (& convention) is Perhaps in the future schema changes should be publicized - e.g. posted to Slack as a Fun Fact? Other findings (that I will find the proper medium to make more well-known):
|
@jimmie thanks for your feedback. Regarding harvest I am usually using an absolute path beginning with / and it works. What issue did you have with that ? An error message ? If yes you can create a ticket in the harvest or pds-registry-app repos ? |
@jimmie @tloubrieu-jpl I also would like to see what is going on here. There should never be a need to "update schema". harvest and registry-mgr have both been updated over the last several months, so maybe those both need to be upgraded? |
@tloubrieu-jpl - let me try to reproduce. If so, I'll create a ticket. @jordanpadams - the problem I ran into was that the blob field name changed from ops/Label_file_info/ops/blob to ops:Label_file_info/ops:blob. The current version (3.2) of the registry api service was explicitly excluding the latter but since the blobs were stored under the former, it was being included in the results. |
@tloubrieu-jpl - I was unable to recreate the issue w/ the explicit vs relative directories. Obviously PBKAC... Apologies. |
@jimmie used the registry-app tools to upgrade the registry. |
馃悰 Describe the bug
If I submit a products request and do not specify which fields to return, the blob is included in the results. If I specify one or more fields, the blob is not returned and behavior is as expected.
馃摐 To Reproduce
Steps to reproduce the behavior:
This is easiest to reproduce using the Swagger UI:
Log output shows:
2021-07-07 15:53:15.170 DEBUG 21821 --- [/O dispatcher 3] org.apache.http.wire : http-outgoing-2 >> "{"from":0,"size":1,"timeout":"60s","query":{"bool":{"adjust_pure_negative":true,"boost":1.0}},"_source":{"includes":[],"excludes":["ops:Label_File_Info/ops:blob"]}}"
Log output in this case shows:
2021-07-07 15:30:58.994 DEBUG 21821 --- [/O dispatcher 2] org.apache.http.wire : http-outgoing-1 >> "{"from":0,"size":1,"timeout":"60s","query":{"bool":{"must":[{"bool":{"should":[{"exists":{"field":"summary","boost":1.0}},{"exists":{"field":"lidvid","boost":1.0}},{"exists":{"field":"lid","boost":1.0}}],"adjust_pure_negative":true,"minimum_should_match":"1","boost":1.0}}],"adjust_pure_negative":true,"boost":1.0}},"_source":{"includes":["summary","pds:File/pds:creation_date_time","ref_lid_instrument_host","pds:Time_Coordinates/pds:start_date_time","lid","ref_lid_investigation","lidvid","title","pds:Modification_Detail/pds:modification_date","ref_lid_instrument","pds:Time_Coordinates/pds:stop_date_time","product_class","vid","ref_lid_target","ops:Label_File_Info/ops:file_ref"],"excludes":["ops:Label_File_Info/ops:blob"]}}"
Note that this is running the service locally against the AWS ES instance (search-pds-dev-esext-kcq7xxa4lsrakjw33lywpjdyfy.us-west-2.es.amazonaws.com)
The text was updated successfully, but these errors were encountered: