<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 24 May 2013 07:41:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[VG Tech Blog: Using Elastica to Query ElasticSearch]]></title>
      <guid>http://www.phpdeveloper.org/news/18165</guid>
      <link>http://www.phpdeveloper.org/news/18165</link>
      <description><![CDATA[<p>
On the VG Tech blog today there's a new post by <i>Christer Edvartsen</i> about using the <a href="https://github.com/ruflin/Elastica">Elastica</a> PHP Elastic Search client to do more than just pull information out of the data source. He dug into the source of the tool itself and figured out a way to perform actual queries.
</p>
<blockquote>
The last couple of months I have been playing around with <a href="http://www.elasticsearch.org/">elasticsearch</a>, an open source, distributed, RESTful search engine built on top of Apache Lucene. To interact with elasticsearch in PHP I have been using a client called <a href="https://github.com/ruflin/Elastica">Elastica</a>. This was all fun and games until I needed to do actual queries, which is what our users will be doing most of the time. <a href="http://ruflin.github.com/Elastica/">Elastica's documentation</a> does not (yet) say anything about how to search using the client, so I needed to dig through the code to see if I could find some solutions. 
</blockquote>
<p>
He includes a sample mapping structure and shows how to take both a simple, single-term query and turn it into a request and how to make a more complex request with filters, facets, sorting and a few other things thrown in. He also shows how you can manually create a query (define the JSON structure yourself) and push that into the "query builder" for handling.
</p>]]></description>
      <pubDate>Tue, 03 Jul 2012 08:55:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Miller's Blog: Symfony2: Integrating elasticsearch]]></title>
      <guid>http://www.phpdeveloper.org/news/17177</guid>
      <link>http://www.phpdeveloper.org/news/17177</link>
      <description><![CDATA[<p>
<i>Richard Miller</i> has been posting a series of articles to his blog recently that look at integrating the <a href="http://www.elasticsearch.org/">ElasticSearch</a> tool with a <a href="http://symfony.com/">Symfony2</a>-based application.
</p>
<blockquote>
Elasticsearch is built on top of Lucene and indexes data as JSON documents in a similar way to the way MongoDB stores data. This means as with Mongo that it is schemaless and creates fields on the fly. It is queried over HTTP using queries which are themselves defined in JSON. [...] What I want to do is look at how you can avoid having to deal with issuing JSON queries over HTTP from a Symfony2 app and actually get started using elasticsearch in a very simple way.
</blockquote>
<p>
He uses the <a href="https://github.com/ruflin/Elastica">Elastica</a> PHP library to do some of the "heavy lifting" in the three posts so far:
</p>
<ul>
<li><a href="http://miller.limethinking.co.uk/2011/11/11/symfony2-integrating-elasticsearch/">Symfony2: Integrating elasticsearch</a>
<li><a href="http://miller.limethinking.co.uk/2011/11/18/symfony2-improving-elasticsearch-results/">Symfony2: improving elasticsearch results</a>
<li><a href="http://miller.limethinking.co.uk/2011/11/23/symfony2-elasticsearch-analyzers/">Symfony2: elasticsearch custom analyzers</a>
</ul>]]></description>
      <pubDate>Mon, 28 Nov 2011 11:40:06 -0600</pubDate>
    </item>
  </channel>
</rss>
