cedadev / archive-opensearch

Prototype Opensearch Application for the CEDA Archive
0 stars 0 forks source link

Change bounding box to use intersects rather than contains #104

Open rsmith013 opened 3 years ago

rsmith013 commented 3 years ago

I make a request with the bbox (whole world) and it works now.

http://opensearch-test.ceda.ac.uk/opensearch/request?httpAccept=application/atom%2Bxml&maximumRecords=10&startRecord=1&parentIdentifier=2cc63301f1854239aa61c70e58c61207&bbox=-180,-90,180,90

And in your response the geometry information (georss:box) is also the whole world

Then I reduced the bbox to one fouth of the map

http://opensearch-test.ceda.ac.uk/opensearch/request?httpAccept=application/atom%2Bxml&maximumRecords=10&startRecord=1&parentIdentifier=2cc63301f1854239aa61c70e58c61207&bbox=0,0,180,90

With that request I have no thing

Think this request should return the same number of results like the first one because (0,0,180,90) is total inside, or intersects with (-180,-90,180,90)

rsmith013 commented 3 years ago

Changing to use geo_shape with relation:intersects gives the same result. The current query is intersected. More needs to be done to understand what is going on here.