Tag: solr

解析标签的json数据以突出显示字段中的文本

{ “responseHeader”: { “status”: 0, “QTime”: 32 }, “response”: { “numFound”: 21, “start”: 0, “docs”: [ { “description”: “The matte finish waves on this wedding band contrast with the high polish borders. This sharp and elegant design was finely crafted in Japan.”, “UID_PK”: “8252”, }, { “description”: “This elegant ring has an Akoya cultured pearl […]

价格范围filter在同一查询中使用Slil UI和Solr的最小值和最大值过滤?

我正在为电子商务网站开发Solr集成。 我想提供一个jQuery Slide Range UI(请参阅http://jqueryui.com/slider/#range )。 因此,访问者将在页面上提供具有最小和最大价格的滑块,他们可以使用这些滑块来定义范围,从而应用filter。 在Solr方面,我了解如何对此进行范围过滤查询。 但是,为了显示范围,我需要最小和最大价格值。 我不知道如何从索尔获得这个。 此外,当过滤其他方面时,我需要更改此最低和最高价格。 但我无法思考Solr如何做到这一点。 solr是否在同一查询中提供最低和最高价格值? 这该怎么做? 或者使用Solr实现此目的的最佳实践是什么?

使用jquery调用从SOLR中检索结果

我正在努力使用jquery从SOLR获得响应。 当我使用下面的代码时,我收到错误说Typeerror:data为null 查看firebug中的代码时, on_data函数中的数据为null。 我想我在Solr URL中遗漏了一些东西。我使用的URL是http://xxxx.xxx.xxxx.xxx/xxx_xxx/core0/selectcore0/select/?q=%3A&version = 2.2&start = 0&rows = 10&indent = ON&重量= JSON。 您能否看一下我的代码,并建议代码中的URL样式 Solr Search Solr Search Query: Search function on_data(data) { $(‘#results’).empty(); var docs = data.response.docs; $.each(docs, function(i, item) { $(‘#results’).prepend($(” + item.name + ”)); }); var total = ‘Found ‘ + docs.length + ‘ results’; $(‘#results’).prepend(” + total + ”); […]

错误:在初始化之前无法调用自动完成方法; 试图调用方法’destroy’

我正在使用ajax-solr。 它适用于jquery-ui-1.8。*。 但是当我将它升级到jquery-1.10时。*它给了我这个例外: 在初始化之前无法调用自动完成方法; 试图调用方法’destroy’