1

Topic: REST - Missing site from search

From this query https://data.nbn.org.uk/api/search/site … rows=10000

I'm expecting the site called Mersey Narrows to return from the search.

Similar issue on this page https://data.nbn.org.uk/Site_Datasets/GA000339 if I pan the map to just at the bottom of Mesey Narrows the site disappears from the below result.

As we are include sites in our report; it's important to have the correct site appear in the search area.
Are there any way round this?

Many thanks,
Luck

IT Officer
rECOrd (A Biodiversity Information System for Cheshire, Halton, Warrington and Wirral)
www.record-lrc.co.uk

2

Re: REST - Missing site from search

Hmm, not exactly sure what is going on in this instance, I think the SOLR search excludes sites which are not 'mostly within' the given bounding box (I think its a percentage view in this case). Given the following bounding box it finds the site fine, but the box is the bounding box of the site itself so not exactly a great test in this case.

https://data.nbn.org.uk/api/search/site … rows=10000

Im not exactly sure how the SOLR search works in this instance, I will have to try and ask the developer who wrote this bit of the gateway if he has any ideas on this and get back to you.

Matt Debont
Application Developer
Joint Nature Conservation Committee, Monkstone House, City Road, Peterborough PE1 1JY, UK

3

Re: REST - Missing site from search

Thanks Matt.

I have also tried increasing the search area but still no joy.
https://data.nbn.org.uk/api/search/site … rows=10000

Looking forward for a solution.

Luck

IT Officer
rECOrd (A Biodiversity Information System for Cheshire, Halton, Warrington and Wirral)
www.record-lrc.co.uk

4

Re: REST - Missing site from search

Any progress on this?

Cheers,
Luck

IT Officer
rECOrd (A Biodiversity Information System for Cheshire, Halton, Warrington and Wirral)
www.record-lrc.co.uk

5 (edited by matt.debont 08-05-2014 13:02:24)

Re: REST - Missing site from search

Sorry for not getting back to you sooner, we have been having some issues and we  had a release come out yesterday for the gateway so I have been a little distracted. I have had a chat with the developer who knows about these systems, there was a little bit of a misunderstanding with the actual use of these SOLR search endpoints.

They are only really designed to be used with the site datasets pages and the search area only hits on the centroid of the sites rather than the entire site itself. I will try and get the API documentation to reflect this as it is a little ambiguous really. I can add this to the list of development tasks in the future but I really can't guarantee when we would get round to it right now.

Matt Debont
Application Developer
Joint Nature Conservation Committee, Monkstone House, City Road, Peterborough PE1 1JY, UK

6

Re: REST - Missing site from search

Many thanks for the update. I was expecting the search to at less be using bounding box for each of the polygon for the more accurate results? Are there any alternative way to obtain the information?

I work around the problem by caching the sites bounding box but this isn't perfect as some sites bounding box cover very large area. We have to manually check and remove those sites which is time consuming.

Thanks,
Luck

IT Officer
rECOrd (A Biodiversity Information System for Cheshire, Halton, Warrington and Wirral)
www.record-lrc.co.uk