sherlock
sherlock copied to clipboard
As discussed [here](https://github.com/elasticsearch/elasticsearch-php/issues/68), official client will remain as a low level library. And Sherlock's fluent API is very useful and clean. So, It would be good if Sherlock supports official...
The boolean query example used the query() method, which does not exist. Instead, it should use the queryBuilder() method. Additionally, if you pass a _single_ parameter to must(), should(), or...
In abstract class sherlock\components\BaseComponent namespace should write sherlock\components (first letter in uppercase). I think it was fine at windows server, but for ubutu it is big problem :)
https://github.com/polyfractal/sherlock/blob/master/composer.json#L5 lists https://sherlockphp.org/ as the homepage but I can't seem to connect to the site over https. Please either fix https or the composer.json info
Added Sort component for Script Based Sorting. Source: [ElasticSearch Script Based Sorting](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#_script_based_sorting)
With the `rewrite` parameter outside of the `query_string` model, I would receive the following error: ``` [_na] query malformed, must start with start_object ``` Moving that parameter into the model...
What would be the appropriate way to map an object with multiple properties? Thank you for your assistance. ``` php $index->mappings( Sherlock::mappingBuilder($this->indexType)->String()->field('title')->analyzer('snowball'), Sherlock::mappingBuilder($this->indexType)->String()->field('description')->analyzer('snowball'), Sherlock::mappingBuilder($this->indexType)->String()->field('status'), Sherlock::mappingBuilder($this->indexType)->Number()->field('categoryId')->type('short'), Sherlock::mappingBuilder($this->indexType)->Object()->field('data')->object( Sherlock::mappingBuilder($this->indexType)->String()->field('field1'), Sherlock::mappingBuilder($this->indexType)->String()->field('field2'), Sherlock::mappingBuilder($this->indexType)->String()->field('field3'), Sherlock::mappingBuilder($this->indexType)->String()->field('field4')...
An exception should be thrown if PHP fails to decode a json string. It's possible for ElasticSearch to return a bad string. In ES one can insert a record as...