首页 \ 问答 \ 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

最满意答案

转到存储库的设置页面

语言下拉列表中选择一种语言,其中显示选择语言

单击保存存储库详细信息


Go to your repository's settings page:

Select a language in the language dropdown where it says Select language:

Click Save repository details after.

相关问答

更多
  • 实际上这是不可能的。 没有办法在弹簧中注册两个相同的命名bean。 你必须使用@Qualifier否则spring无法在运行时处理你想要的bean。 你可以在这里了解更多 @Autowired @Qualifier("personA") private Person person; @Autowired @Qualifier("personB") private com.blabla.myOtherPackage.Person person; Actually this is impossible. ...
  • 您可以断开项目与当前存储库的连接,并将其与另一个存储库重新连接 。 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 ...
  • 在管理器中使用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 ...
  • 转到存储库的设置页面 : 在语言下拉列表中选择一种语言,其中显示选择语言 : 单击保存存储库详细信息 。 Go to your repository's settings page: Select a language in the language dropdown where it says Select language: Click Save repository details after.
  • 尝试使用新建项目 - > 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 ...
  • 有一个人建议使用 为了这个目的。 令我感到奇怪的是,一个名为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 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。