Talk:IDigBio API: Difference between revisions

add note on lowercase
(add link to elasticsearch google group)
(add note on lowercase)
Line 279: Line 279:
</pre>
</pre>


See [[iDigBio API Examples#Elasticsearch_Examples]] page for Elasticsearch examples that are specific to iDigBio.
The values stored in these terms are converted to lowercase, so searches based on terms should use the all-lowercase version of the string.
 
For example, searching for "Arkansas" in stateprovince will return no records.
 
<pre>
$ curl -s "http://search.idigbio.org/idigbio/records/_search?q=stateprovince:Arkansas" | json_pp | grep scientificname | wc -l
0
</pre>
 
Searching for "arkansas" will return multiple records.
<pre>
$ curl -s "http://search.idigbio.org/idigbio/records/_search?q=stateprovince:arkansas" | json_pp | grep scientificname | wc -l
10
</pre>
 
 
See [[iDigBio API Examples#Elasticsearch_Examples]] page for more Elasticsearch examples that are specific to iDigBio.


=== Elasticsearch - Media Records ===
=== Elasticsearch - Media Records ===
1,554

edits