首页
\
问答
\
Solr没有正确重新索引 - 带有Solr 4的Sunspot Solr(Solr not reindexing correctly - Sunspot Solr with Solr 4)
Solr没有正确重新索引 - 带有Solr 4的Sunspot Solr(Solr not reindexing correctly - Sunspot Solr with Solr 4)
我有一个类似的问题, Solr with Rails - rake sunspot:reindex无效 。
我在我的Gemfile中有这些:
gem 'sunspot_solr', github: 'sunspot/sunspot', branch: 'master' gem 'sunspot_rails', github: 'sunspot/sunspot', branch: 'master'
和:
bundle exec rake sunspot:solr:start
工作正常,但当我这样做:
bundle exec rake sunspot:solr:reindex
我明白了:
Connection refused - {:data=> "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:Service</query></delete>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=> #<URI::HTTP:0x007fccf982f348 URL:http://localhost:8982/solr/default/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}
I have a similar issue that Solr with Rails - rake sunspot:reindex is not working.
I have these in my Gemfile:
gem 'sunspot_solr', github: 'sunspot/sunspot', branch: 'master' gem 'sunspot_rails', github: 'sunspot/sunspot', branch: 'master'
And:
bundle exec rake sunspot:solr:start
works fine, but when I do:
bundle exec rake sunspot:solr:reindex
I get:
Connection refused - {:data=> "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:Service</query></delete>", :headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, :query=>"wt=ruby", :path=>"update", :uri=> #<URI::HTTP:0x007fccf982f348 URL:http://localhost:8982/solr/default/update?wt=ruby>, :open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, :retry_after_limit=>nil}
原文:https://stackoverflow.com/questions/18064592
更新时间:2022-03-25 13:03
最满意答案
相关问答
更多-
实际上这是不可能的。 没有办法在弹簧中注册两个相同的命名bean。 你必须使用@Qualifier否则spring无法在运行时处理你想要的bean。 你可以在这里了解更多 @Autowired @Qualifier("personA") private Person person; @Autowired @Qualifier("personB") private com.blabla.myOtherPackage.Person person; Actually this is impossible. ...
-
更改项目svn存储库(change project svn repository)[2021-12-14]
您可以断开项目与当前存储库的连接,并将其与另一个存储库重新连接 。 You can disconnect the project from the current repository and reconnect it with another. -
从原始帖子中说出来有点困难,但我怀疑IGenericRepository接口的具体实现是从DAL而不是从BLL(业务逻辑层)引用Member类。 具体的存储库需要使用BLL中的Member类作为其通用TEntity类型。 具体存储库类的方法需要使用DAL Member类从数据库加载数据,然后将这些DAL Member实例映射到BLL Member实例,然后返回BLL Member实例。 将DAL成员类重命名为MemberDto可能有助于避免混淆。 所以,你最终会得到类似的东西(其中IGenericRepos ...
-
为XCode项目设置存储库(Set repository for XCode project)[2021-09-12]
在管理器中使用Repository-Tab中的“Add working copy ...”重新设置后 - 重新启动Xcode4。 这在Xcode 4.2的一分钟之前就可以用了 After setting it up again by using "Add working copy..." from the Repository-Tab in the Organizer - restart Xcode4. This worked for me a minute ago with Xcode 4.2 -
您可以自动连接MockMvc,但需要添加以下内容 import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; @AutoConfigureMockMvc 对于你的测试类,所以它自动配置MockMvc,让我知道它是否工作 You can autowire MockMvc, but you need to add the following import org.springframework.boo ...
-
存储库中的C ++项目类型(C++ project type in repository)[2024-03-13]
转到存储库的设置页面 : 在语言下拉列表中选择一种语言,其中显示选择语言 : 单击保存存储库详细信息 。 Go to your repository's settings page: Select a language in the language dropdown where it says Select language: Click Save repository details after. -
选择VS项目类型(C ++)(Choosing a VS project type (C++))[2023-07-04]
尝试使用新建项目 - > Visual C ++ - > Win32 - > Win32控制台应用程序。 您可以采取所有的默认设置,为该项目获取一个新的.cpp文件,该文件将包含_tmain。 像这样修改_tmain: int maina( int argc, char** argv ); // add this int _tmain(int argc, _TCHAR* argv[]) { return maina(argc, argv); // call maina from here } 然 ... -
这可能是Redmine中的一个错误。 我只是浏览了我的Redmine安装,找不到存储URL的地方,它可能在数据库中。 如果我在你的情况下没有时间浪费,我会: 1)备份,以防万一, 2)在某处创建一个空的Git存储库(甚至可以使用任何公共存储库,因为你可以在其中放置一个URL), 3)将Redmine配置为指向该存储库以使其脱离, 4)现在,配置Redmine使用你真正的Subversion repo, 5)报告错误。 This could be a bug in Redmine. I just looked ...
-
git存储库的MIME类型?(MIME type of a git repository?)[2023-05-01]
有一个人建议使用 为了这个目的。 令我感到奇怪的是,一个名为cweiske的人有一个名为phorkie的github项目,它正好暗示以下内容: 远程粘贴可以分叉( rel =“vcs-git”和gist.github.com) ( 由我标记 ) 您是否已经知道解决方案并希望确认? 编辑: 正如OP在他的评论中提到的那样,他正在寻找一种不同的方式 ... -
公共和个人git存储库之间的区别: Public =任何人都可以看到此存储库。 你选择谁可以提交。 私有(我认为你的意思是个人的)=你选择谁可以看到并提交到这个存储库。 The difference between public and personal git repository: Public = Anyone can see this repository. You choose who can commit. Private (I think you mean this with personal ...