Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /**
  2. * {@inheritdoc}
  3. */
  4. public function getDatasource($datasource_id) {
  5. $datasources = $this->getDatasources();
  6.  
  7. if (empty($datasources[$datasource_id])) {
  8. $index_label = $this->label();
  9. throw new SearchApiException("The datasource with ID '$datasource_id' could not be retrieved for index '$index_label'.");
  10. }
  11.  
  12. return $datasources[$datasource_id];
  13. }
  14.  
  15. {
  16. "responseHeader":{
  17. "status":0,
  18. "QTime":1,
  19. "params":{
  20. "q":"",
  21. "indent":"on"}},
  22. "response":{"numFound":0,"start":0,"docs":[]
  23. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement