我正在尝试使用elasticsearch进行按邻近度排序的搜索。我安装了FOSElasticaBundle并且在我的config.yml中有这个配置:fos_elastica:clients:default:{host:localhost,port:9200}serializer:callback_class:FOS\ElasticaBundle\Serializer\Callbackserializer:serializerindexes:productos:client:defaultsettings:index:analysis:analyzer:default:type:spa
我有一个Symfony2项目,我正在尝试使用Elasticsearch实现搜索功能。我的问题是,我需要为具有可选自关系的实体编制索引。这意味着我的Item实体有一个“父”字段,引用另一个Item。为了进行搜索,我想在该“父”字段上创建过滤器。我的Item.parent是NULL吗?例如。所以,我正在使用FosElasticaBundle。这是我的映射:types:Item:mappings:name:children:type:object_parent:type:Itemparent:type:object_routing:required:false_parent:type:Ite
我已经安装了FOSElasticaBundle并让它处理我的数据的横截面。我的问题在于我需要使用大约1400万行来构建索引。我运行了populate命令,昨天大约6小时后它出现了10.8%的内存错误:PHPFatalerror:Allowedmemorysizeof2147483648bytesexhausted(triedtoallocate52277bytes)in/var/www/html/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.phponline111如您所见,我已将我的php内存限制设置为2G,这应
我通过FOSElasticaBundle在系统中使用Elasticsearch和Symfony2。虽然我只使用一台服务器,但可以像这样配置clients配置:https://github.com/FriendsOfSymfony/FOSElasticaBundle#basic-configurationfos_elastica:clients:default:{host:localhost,port:9200}但是当涉及到集群时,我尝试以某些方式进行配置但它不起作用,如下所示:fos_elastica:clients:default:[{host:localhost,port:9200
我希望将FOSElasticaBundle集成到我的symfony3项目中。目前这个包不支持symfony3。我在想我能做些什么来实现它? 最佳答案 似乎还没有标记为通过packagist使用它的有效版本。Seethisissueongithub.版本dev-master/3.2.x-dev似乎已经与symfony3兼容。我使用以下命令在symfony3安装中成功安装了这个包:composerrequirefriendsofsymfony/elastica-bundledev-master希望对你有帮助
我需要构建一个多实体搜索。我不想要每个T1,然后每个T2。当我使用fos:lastica:populate时,出现错误:Rejectingmappingupdateto[search_dev]asthefinalmappingwouldhavemorethan1type:[t1,t2]我的映射:fos_elastica:clients:default:host:%elastic_host%port:%elastic_port%indexes:search:finder:~client:defaultindex_name:search_%kernel.environment%types: