Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mahara mahara
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • maharamahara
  • maharamahara
  • Repository
  • mahara
  • htdocs
  • search
  • elasticsearch
  • lang
  • en.utf8
  • search.elasticsearch.php
Find file BlameHistoryPermalink
  • Robert Lyon's avatar
    Checking if elasticsearch can connect to host / port (bug #1256118) · e2d208ac
    Robert Lyon authored Nov 29, 2013
    
    
    Currently the getConnection() in Elastica/Client.php can give false
    positive and also throws error if no connection.
    
    What is needed is a true/false check to allow for things like notice
    feedback on extensions page or giving a warning when switching to
    'elasticsearch' on site options page when it is unreachable.
    
    Change-Id: I43506f03b943d79eb019d39fe794037fc50bd05a
    Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
    e2d208ac