What is Elastic search Output if running in python or django

For OUTPUT: type: http://localhost:9200/
Result:
{

  "status" : 200,

  "name" : "Skin",

  "cluster_name" : "elasticsearch",

  "version" : {

    "number" : "1.7.2",

    "build_hash" : "e43676b1385b8125d647f593f7202acbd816e8ec",

    "build_timestamp" : "2015-09-14T09:49:53Z",

    "build_snapshot" : false,

    "lucene_version" : "4.10.4"

  },  
  "tagline" : "You Know, for Search"
}

 

Php: How to show star rating

## Showing Rating in Php using star & blank rating


$ProductId = 1;

$product_rating_qu = mysql_query("select avg(rating) as star_rate from ratings where ratedto='" . $ProductId . "'");
$product_rating_found   = mysql_num_rows($product_rating_qu);


$star_rate = 0;
if($product_rating_found)
{
    $product_rating_res = mysql_fetch_array($product_rating_qu); 
    //print_r($product_rating_res);

    $star_rate = $product_rating_res['star_rate'];
    for($rcnt=0; $rcnt<$star_rate; $rcnt++)
    {
        echo "<span class='rated-star'>&#x02605;</span>";
    }
    $star_rate = $rcnt;
}

for($star_blank=0; $star_blank < (5-$star_rate); $star_blank++)
{
    echo "<span class='unrated-star'>&#9734;</span>";
}

// star Rating ends here
?>

search in php

## Here multiple word search is tried.. Its working..
$data = array();
$data['search_list'] = "";
$data['total_search'] = "";
$data['search_on'] = "";
$data['search_words'] = "";
$_searchfield = "";
$total_search = 0;
$__prepositionArray = array('a','an','the','or','and');
if (isset($_REQUEST['search'])) 
{
 $_searchfield = $_REQUEST['search'];
 $_searchfield = str_replace("'", "", $_searchfield);
 
 //--------Remove extra words--------
 $_searchfield = trim($_searchfield);
 $__prepositionArray = array(' a ',' an ',' the ',' or ',' and ');
 $__prepositionArray2 = array('a','an','the','or','and');
 $__tempString = str_replace($__prepositionArray, " ", $_searchfield);
 $__exactString = preg_replace('/\s+/', ' ',$__tempString);
 $_searchfield = $__exactString;
 
 if(!empty($_searchfield))
 { 
 $searchWords = explode(' ',$_searchfield);
 $searchTermBits = array();
 foreach ($searchWords as $term)
 {
 $term = trim($term);
 if (!empty($term))
 {
 $searchTermBits[] = "p_title LIKE '%$term%'";
 }
 }

 $__multiWordQ = "";
 $__singleWordQu ="";
 $__multiWordQ.= implode(" AND ", $searchTermBits);
 $__singleWordQu = implode(" OR ", $searchTermBits);

 $newQuery = "SELECT * FROM product WHERE active=1 AND p_title like '%$_searchfield%'
 UNION
 SELECT * FROM product WHERE active=1 AND (".$__multiWordQ.")"
 ."UNION 
 SELECT * FROM product WHERE active=1 AND (".$__singleWordQu.")"
 ."UNION 
 SELECT * FROM product WHERE active=1 AND p_kword like '%$_searchfield%'
 UNION 
 SELECT * FROM product WHERE active=1 AND p_desc like '%$_searchfield%'";

 $query = $this->db->query($newQuery);
 $total_search = $query->num_rows();
 $data['search_list'] = $query->result_array();
 $data['total_search'] = $total_search;
 $data['search_on'] = $_REQUEST['search'];
 $data['search_words'] = $searchWords;
 }
}

how to implement search in codeigniter

$_searchfield = $_REQUEST['key'];
$_searchfield = str_replace("'", "", $_searchfield);

$query = $this->db->query("SELECT * FROM td_product WHERE active=1 AND product_code like '$_searchfield'
 UNION 
 SELECT * FROM td_product WHERE active=1 AND product_title like '%$_searchfield%'
 UNION 
 SELECT * FROM td_product WHERE active=1 AND product_keyword like '%$_searchfield%'
 UNION 
 SELECT * FROM td_product WHERE active=1 AND product_desc like '%$_searchfield%' limit 20");

 $search_list = $query->result_array();
 $total_search = $query->num_rows();