首页 \ 问答 \ Rails 3 Sunspot Limit要索引的对象(Rails 3 Sunspot Limit Objects to be indexed)

Rails 3 Sunspot Limit要索引的对象(Rails 3 Sunspot Limit Objects to be indexed)

我正在使用Rails 3太阳黑子solr。 我想限制要编入索引的对象。 例如,指数帖子,其中ids的范围是1..1000。 之后它不应该是索引。


I am using Rails 3 sunspot solr. I want to restrict Objects to be indexed. e.g. Index Posts where ids ranges from 1..1000. After that it should not be index.


原文:https://stackoverflow.com/questions/28580595
更新时间:2022-07-19 13:07

最满意答案

我们现在已经解决了这个问题。

我们有GUI将控制器对象传递给Studerende面板。 但是,当Netbeans调用GUI的initComponents方法时,控制器未初始化,因此无法工作。


We have now solved the problem.

We had our GUI to pass our controller object to our Studerende panel. However, when Netbeans calls the initComponents method of the GUI, the controller was not initialized, and therefore didn't work.

相关问答

更多
  • 编辑 - >高级 - >取消查看空格。 Edit -> Advanced -> untick View White Space.
  • 我在Visual Studio 2012 Premium上收到相同的消息(在上个月Windows 7上安装的PC上) - 建议的修复是“Microsoft Visual Studio 2012更新(KB2781514)”,似乎已经修复了 www.microsoft.com/en-us/download/details.aspx?id=36020 I received the same message on Visual Studio 2012 Premium (on PC where Windows 7 r ...
  • 错误是说插件需要com.ibm.icu插件(Eclipse的一部分),其版本至少为3.4.4.1且低于4.3.0。 Eclipse Mars中当前版本的com.ibm.icu是54.1.1,具有合适版本的Eclipse的最后一个版本是Eclipse 3.6(非常旧)。 所以看起来你的代码已经过时了。 The error is saying that the plug-in needs the com.ibm.icu plug-in (part of Eclipse) with a version of at ...
  • 试用http://ckeditor.com 1.CKEditor是一个在网页内部使用的文本编辑器。 这是一个所见即所得的编辑器,这意味着编辑的文本看起来与用户发布结果时相似。 它为网络带来了诸如Microsoft Word和OpenOffice等桌面编辑应用程序中常见的编辑功能。 2.由于CKEditor获得灵活的开放源代码和商业许可,您可以在任何类型的应用程序中集成和使用它。 这是开发人员的理想编辑器,旨在为用户提供简单而强大的解决方案。 Try out http://ckeditor.com 1.CKE ...
  • 我们现在已经解决了这个问题。 我们有GUI将控制器对象传递给Studerende面板。 但是,当Netbeans调用GUI的initComponents方法时,控制器未初始化,因此无法工作。 We have now solved the problem. We had our GUI to pass our controller object to our Studerende panel. However, when Netbeans calls the initComponents method of ...
  • 解释问题的主要问题: 根据你的解析代码,你将输入数据视为无向图,即从A到B的每条边也是从B到A的边。似乎这个前提是无效的,它应该是有向图,即你必须删除这一行: al[b].append((a, w)) # no back reference! 以前的问题,现在已在代码中修复: 目前,您正在使用队列边缘永不变化的权重: pq.put((edge[1], edge[0])) 这样,无论算法的哪个阶段以及到达该节点的路径到底有多远,节点总是最终位于队列中的相同位置。 相反,您应该使用 ...
  • 你的方法有缺陷。 要采用这种方法,您需要使backingField成为ref参数。 private static T GetProperty(ref T backingField, Func factory) 然后在GetProperty ,传递ref _ImagXpress或ref _PdfXpress 。 你现在这样做只是为参数赋予一个新值,而不是为实际的后备字段赋值。 Your method is flawed. To take this approach you need to mak ...
  • 那是已经有3年左右的死亡和废弃的伍德斯托克图书馆的用户界面编辑。 由于Firefox 3发布时出现的错误,该库成为史诗般的失败。 事实证明,该库生成了符合非标准的Javascript,这些Javascript在更新且更符合标准的浏览器中爆发。 伍德斯托克脸上的表情很难受。 从那时起, 建议用户迁移到ICEfaces 1.x. ICEfaces有一个自动迁移工具。 ICEfaces又为Netbeans提供了一个可视化编辑器插件。 自6.8版以来,可视编辑器已从Netbeans中删除。 另见wiki.netbe ...
  • 有没有办法可以编写如下代码:if(status [0] =='S'&& status 1 == void) 你差不多了。 C-“字符串”-termination不是void而是'\0' 。 因此,要测试“字符串”是否在第一个字符后结束,即status[0]请执行以下操作: if (status[0] == 'S' && status[1] == '\0') 顺便说一句:要声明一个没有任何参数的函数,请使用void ,如下所示: check_status(void); 由于Joachim Pilebor ...
  • 在安装插件之前,我会找到一个回滚点。 您可能拥有随插件一起安装但不属于卸载的恶意软件。 它可能只是卸载没有删除它导致问题的安装。 您最有可能找到回滚点并从那里开始,而不是尝试找出导致问题的进程以及它挂在注册表中的位置。 I would find a rollback point before you installed the plug ins. You could have malware that installed with the plugin but was not part of the uni ...

相关文章

更多

最新问答

更多
  • 获取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的基本操作命令。。。