简体   繁体   English

Symfony Solr包2.8 +

[英]Symfony solr bundle 2.8 +

I started to get data from solr with curl but this is not the symfony way and I want to change that before is "to late". 我开始从带有curl solr获取数据,但这不是symfony方式,我想将其更改为“迟到”。

There is most popular nelmio solr bundle (this is info I found from googling) i also found some other bundles, but wanted to pleased you to help me in choosing nelmio or suggest some better bundle that is fully support also and symfony 3.0 有最受欢迎的nelmio solr bundle (这是我从谷歌搜索中找到的信息),我还发现了其他捆绑包,但想请您帮我选择nelmio或提出一些更好的捆绑包,该捆绑包也完全支持symfony 3.0

First off: Using NelmioSolarBundle and floriansemm/SolrBundle have very different use cases. 首先,使用NelmioSolarBundle和floriansemm / SolrBundle有非常不同的用例。

NelmioSolrBundle is just a symfony integration of the solarium library, which is nothing more than a wrapper around those direct curl requests. NelmioSolrBundle只是日光浴室库的symfony集成,无非就是围绕这些直接curl请求的包装器。

The SolrBundle by floriansemm integrates solr deeper into the framework by making annotations available to declare which entity fields ie are stored or indexed in solr (done via dynamic fields). floriansemm的SolrBundle通过使注释可用于声明哪些实体字段即在solr中存储或索引(通过动态字段完成),将solr更深入地集成到框架中。 I found the options using normal schema.xml definitions are way more powerful since not everything is available there. 我发现使用普通schema.xml定义的选项功能更强大,因为那里没有所有可用的东西。

In my current project i first tried using SolrBundle but ran into some limitations which led me to switch to NelmioSolariumBundle. 在我当前的项目中,我首先尝试使用SolrBundle,但遇到了一些限制,导致我切换到NelmioSolariumBundle。 (so my solr config and schema are maintained directly in the solr and not through annotations and so on) Once you get used to the solarium library ( http://www.solarium-project.org/ ) the nelmio bundle works fine but in the end it's nothing more than a fancy way of executing those curl requests. (因此,我的solr配置和架构直接在solr中维护,而不是通过批注等维护)。一旦习惯了日光浴室库( http://www.solarium-project.org/),nelmio捆绑包就可以正常工作,但在最后,它不过是执行这些curl请求的理想方式。

So if your implementation works, keep using it. 因此,如果您的实现可行,请继续使用它。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM