The Search service is broken into the following sub-sections: tst
- query: search the index and return user-specified fields
- schema: return the field and field type definitions of the SOLR Solr index
Info |
---|
Note: The CLAIMS Direct SOLR Solr index does not store all text. This means that although the entire index is searchable, only certain fields are available for inclusion in a result set. For a list of retrievable fields, see the Quick Guide to Stored Solr Fields. You can also consult the schema where @stored="true", or use the the |
The CLAIMS Direct Index is created and maintained using Apache SOLR Solr (http://lucene.apache.org/solr/) and hence, based on a schema definition, all functionality exposed by SOLR Solr is available through this search web service, including the entire Apache Lucene query language, result set sorting, facet searching, grouping etc. SOLR Solr is an extremely versatile and robust search platform and it is advised to fully familiarize yourself with SOLR Solr and Lucene (http://lucene.apache.org/java/docs/index.html), upon which SOLR Solr is built, before attempting to use this service.
...
The schema method returns the SOLR Solr schema field definitions. This service, like the search service below, is built directly on top of the SOLR Solr Schema API and therefore exposes all read-only functionality available.
...
Code Block | ||
---|---|---|
| ||
wget -O- \ --header 'x-user:x' \ --header 'x-password:y' \ 'httphttps://cdws21.ificlaims.com/search/schema/fields?fl=ucid,ttl' |
...
This service is built directly on top of the SOLR Solr REST services and therefore, unless otherwise noted, accepts all parameters that SOLR Solr REST services accept. For a comprehensive treatment, please see SOLR Solr Query Parameters. Bulk downloads are not supported through shared services. Search is limited to 30K documents per batch because deep paging can place undue stress on the system.
Method(s) | GET | POST | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Path | /search/query | ||||||||||||||||||||||||||||||||||||||||
Common Query Parameters:
For a thorough treatment, please see Query Syntax and Parsing. |
Example:
...
language | text |
---|
wget -O- \ |
...
|
...
|
...
|
...
https://cdws21.ificlaims.com/search/query?q=*:*&fl=ucid&rows=1' |
...
Response JSON
Code Block | ||
---|---|---|
| ||
{ "status" : "success", "time" : "0.853972" "content" : { "responseHeader" : { "status" : 0, "params" : { "qt" : "standard", "wt" : "json", "q" : "*:*", "rows" : "1", "timeAllowed" : "300000", "indent" : "true", "fl" : "ucid", "start" : "0" }, "QTime" : 29, "pager" : { "lastPage" : 89565469, "firstPage" : 1, "totalEntries" : 89565469, "entriesOnThisPage" : 1, "currentPage" : 1, "entriesPerPage" : "1", "nextPage" : 2, "previousPage" : null } }, "response" : { "maxScore" : 1, "start" : 0, "numFound" : 89565469, "docs" : [ { "ucid" : "WO-2008080614-A1" } ] }}} |
...
Info |
---|
Note: As of CDWS v2.4, a special HTTP header HTTPS header |
...