bsed / ala

Automatically exported from code.google.com/p/ala
0 stars 0 forks source link

bie web service on fq=occurrenceCount/georeferencedCount fails #667

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying to find species with no records using

http://bie.ala.org.au/ws/download?q=*:*&fields=guid,family,genus,scientificName,
occurrenceCount&fq=georeferencedCount:0

or

http://bie.ala.org.au/ws/download?q=*:*&fields=guid,family,genus,scientificName,
occurrenceCount&fq=occurrenceCount:0

Both immediately download a zero record file where I would have expected a fair 
number of records. I would suspect other fq queries to fail similarly.

Original issue reported on code.google.com by leebel...@gmail.com on 13 May 2014 at 5:00

GoogleCodeExporter commented 9 years ago
Im calling this a feature and closing. This does what your after I think 
(download taxa without data):

http://bie.ala.org.au/ws/download?q=*:*&fields=guid,family,genus,scientificName,
occurrenceCount&-fq=occurrenceCount:[*TO*]

Note the minus sign in the request param which negates "-fq".
We dont create an index value for occurrenceCount for taxa without occurrences 
- thats the feature.

Original comment by moyesyside on 13 May 2014 at 6:41

GoogleCodeExporter commented 9 years ago
Scratch that - reopening.

Original comment by moyesyside on 13 May 2014 at 6:43

GoogleCodeExporter commented 9 years ago
Heres the correct url - my minus sign was in the wrong place:

http://bie.ala.org.au/ws/download?q=*:*&fields=guid,family,genus,scientificName,
occurrenceCount&fq=-occurrenceCount:[*%20TO%20*]

Original comment by moyesyside on 13 May 2014 at 6:54

GoogleCodeExporter commented 9 years ago
Thanks Dave. That's a tricky one.

Original comment by leebel...@gmail.com on 13 May 2014 at 10:34