This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2013-07-10 14:32:29,599][DEBUG][action.search.type ] [Kehl of Tauran] [catalog_withuserdatas][0], node[FILbNMh3SDq4de9z3c9Zog], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@52bad42c] | |
org.elasticsearch.search.SearchParseException: [catalog_withuserdatas][0]: query[ConstantScore(cache(terms(id:catalog_withuserdatas/playlist/1/tracks.id)))],from[-1],size[-1],sort[<custom:"name": org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource@64f600fc>]: Parse Failure [Failed to parse source [ | |
{ | |
"query" : { | |
"filtered" : { | |
"query" : { | |
"query_string" : { "query" : "*" } | |
}, | |
"filter" : { | |
"terms" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE 'http://localhost:9200/pony_index_tmp' | |
curl -XPUT 'http://localhost:9200/pony_index_tmp' -d ' | |
{ | |
"number_of_shards": 5, | |
"number_of_replicas": 1, | |
"analysis": { | |
"analyzer": { | |
"francais": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE 'http://localhost:9200/pony_index_tmp' | |
curl -XPUT 'http://localhost:9200/pony_index_tmp' -d ' | |
{ | |
"number_of_shards": 1, | |
"number_of_replicas": 1 | |
}' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE 'http://localhost:9200/pony_index_tmp' | |
curl -XPUT 'http://localhost:9200/pony_index_tmp' -d ' | |
{ | |
"number_of_shards": 5, | |
"number_of_replicas": 1, | |
"analysis": { | |
"analyzer": { | |
"francais": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE 'http://localhost:9200/pony_index_tmp' | |
curl -XPUT 'http://localhost:9200/pony_index_tmp' -d ' | |
{ | |
"number_of_shards": 5, | |
"number_of_replicas": 1, | |
"analysis": { | |
"analyzer": { | |
"francais": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function indexAction($page) | |
{ | |
$request = $this->container->get('request'); | |
$routeName = $request->get('_route'); | |
$f_r = $request->query->get('f_r'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Return query Filter from a list of query string & allowed Facets | |
* | |
* @param array $query The user query (facet_name => query, facet_name => query...) | |
* @param array $allowed_facets An array of Elastica\Facet | |
* | |
* @return \Elastica\Filter\AbstractFilter (if multiple filters, they are combined in BoolAnd filter) | |
*/ | |
private function getFacetsFilters($query, $allowed_facets) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for real, I have a mapping and my color is not "indexed" | |
curl -XPUT 'http://localhost:9200/pony_index_tmp' -d ' | |
{ | |
settings: { | |
number_of_shards: 1, | |
number_of_replicas: 0 | |
} | |
}' | |
curl -XPOST "http://localhost:9200/pony_index_tmp/pony/1" -d ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.turn(150); |