使用Solr后端的Django Haystack中的多个内核 [英] Multiple Cores in Django Haystack using Solr Backend

查看:101
本文介绍了使用Solr后端的Django Haystack中的多个内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用多个内核时如何配置HAYSTACK_SOLR_URL?

How do I configure HAYSTACK_SOLR_URL when using multiple cores?

我已经将其设置为core0的地址,并且可以使用,但是只能使用一个内核...

I've set it to the address of core0, and that works, but only using one core…

文档对我来说并不那么明显……它只是说

The docs aren't that obvious to me… it just says

...
# ...or for multicore...
   HAYSTACK_SOLR_URL = 'http://127.0.0.1:8983/solr/mysite'

什么是我的网站?

我实际上正在运行apache-solar-3.3.0/example,将多核目录复制到example目录上,并更新了schema和conf文件/目录.

I'm actually running apache-solar-3.3.0/example with the multicore directory copied over the example directory, and the schema and conf files/directories updated.

非常感谢.

推荐答案

在我们的项目中,我们有3个核心,分别称为汽车",房屋",工作"

in our project, we have 3 cores, called "cars" "homes" "jobs"

我有以下设置:

CORE_HOUSE = http://localhost:8080/solr/homes/
CORE_HOUSE = http://localhost:8080/solr/cars/
CORE_HOUSE = http://localhost:8080/solr/jobs/

在需要它们时,请参考设置变量(其中localhost:8080是您的Solr安装地址)

whenever you need them, you refer to the settings variable (where localhost:8080 is your solr installation address)

这篇关于使用Solr后端的Django Haystack中的多个内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆