Django Oscar弹性搜索未索引
我只是从Haystack文档中添加配置Django Oscar弹性搜索未索引,django,
elasticsearch,django-oscar,Django,
elasticsearch,Django Oscar,我只是从Haystack文档中添加配置 HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', 'URL': 'http://127.0.0.1:9200/', 'INDEX_NAME': 'haystack', }, } 我在用 django-hayst
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
'URL': 'http://127.0.0.1:9200/',
'INDEX_NAME': 'haystack',
},
}
我在用
django-haystack==2.5.1
elasticsearch==5.0.1
django-oscar==1.4
Django==1.9.12
当我运行rebuild_index时,它会跳过所有模型,而不是索引
我根本没有修改奥斯卡的密码
OSCAR_SEARCH_FACETS = {
'fields': OrderedDict([
('product_class', {'name': ('Type'), 'field': 'product_class'}),
('rating', {'name': ('Rating'), 'field': 'rating'}),
]),
'queries': OrderedDict([
('price_range',
{
'name': ('Price range'),
'field': 'price',
'queries': [
# This is a list of (name, query) tuples where the name will
# be displayed on the front-end.
(('0 to 20'), u'[0 TO 20]'),
(('20 to 40'), u'[20 TO 40]'),
(('40 to 60'), u'[40 TO 60]'),
(('60+'), u'[60 TO *]'),
]
}),
]),
}
欢迎来到StackOverflow!要获得更多帮助-请添加实际问题-到目前为止,您只指定了上下文/问题。例如,“为什么要跳过所有模型以及如何使其不跳过它们?”欢迎使用StackOverflow!要获得更多帮助-请添加实际问题-到目前为止,您只指定了上下文/问题。例如,“为什么要跳过所有模型,以及如何使其不跳过它们?”