Drupal 7.43和Solr 5.5搜索API-可以添加字段到索引

发布于 2025-01-30 14:51:15 字数 705 浏览 2 评论 0原文

我不是Drupal或Solr的专家,它是我们试图维护的生产旧产品,并且我们有一个问题,因为我一生我无法找到,我需要一些帮助。

我们正在使用Apache Solr搜索API模块,并具有Drupal配置的索引。在那里,我们可以添加字段,然后选择要索引的字段。然后事情索引很好。

手头的问题是,我们滚动到底部,然后选择添加更多字段,选择实体,例如学生,科学家或医生,每个实体都有特性。通常,我们只选择其中一个,然后单击“添加”字段,然后成功添加,然后出现在字段列表中。然后,我们从列表中选择我们关心的字段,然后复选框进行索引。好吧,手头的问题是,特殊的Drupal实例说“成功添加了字段”,但是,它们不在那里。它并不是真正添加它们。

如果我将这个特殊的Drupal生产实例从备份恢复到本地Drupal,则情况正常。我可以添加字段。

我尝试清理缓存,没有骰子。

我尝试在搜索API中创建一个新的索引配置,并添加,并且可以添加字段。我只是无法在默认一个中添加字段。

我还尝试了一个新的Solr Core,没有骰子。但是我认为问题不是来自Solr End,它是在执行索引并发送到Solr Core之前的索引配置中的Drupal End。

没有错误,没有日志。它只是说他们成功添加了,但列表中没有什么新鲜事物。

有什么想法吗?

我已经想到了Drupal中重建权限的重建权限,但我不想在生产中尝试此权限。我想根据知识不猜测来进行修复。

有什么想法吗?

谢谢!

I am not an expert in drupal or solr, it’s a production legacy product that we are trying to upkeep, and we are having an issue that for the life of me I can’t figure out and I need some help.

We are using the Apache Solr Search API module and have an index configured in Drupal. In there we can add fields, and then, choose which of the fields to index. And then things index just fine.

The issue at hand is that we scroll to the bottom and choose to add more fields, select the entity, say, Students, or Scientists, or Doctors - each of which has properties. Generally we just select one of those and click add fields and they add successfully and they appear on the list of fields. Then we choose the field we care about from the list and checkbox it for indexing. Well, the issue at hand is that th is particular drupal instance says “fields added successfully” but then, they’re not there. It’s not truly adding them.

If I restore this particular drupal production instance from backup to my local drupal, things work fine. I can add fields.

I tried clearing the caches, no dice.

I tried to create a new index configuration in the search api, and it adds and I can add fields just fine. I just can’t add fields in the default one.

I also tried a new solr core, no dice. But I don’t think the issue is from the solr end, it’s from the drupal end in the index configuration, before indexes are performed and sent to the solr core.

There are no errors, no logs. It just says they added successfully, but there’s nothing new in the list.

Any ideas?

I’ve thought of rebuilding permissions within drupal, but I don’t want to try this in production. I’d like to get a fix in place based on knowledge not guessing.

Any thoughts?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痕至 2025-02-06 14:51:15

我正在回答自己的问题。该解决方案最终在php.iniphp_value max_input_vars中更新max_input_vars 。 > 10000 来自1000

I am answering my own question. The solution ended up being updating max_input_vars in php.ini or php_value max_input_vars in the .htaccess file to 10000 from 1000

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文