solr

Solr DataImportHandler: Can I get a dynamic field name from xml attribute with XPathEntityProcessor?

自古美人都是妖i 提交于 2020-01-14 13:44:13
问题 I have some XML to ingest into Solr, which sounds like a use case that is intended to be solved by the DataImportHandler. What I want to do is pull the column name from one XML attribute and the value from another attribute. Here is an example of what I mean: <document> <data ref="reference.foo"> <value>bar</value> </data> </document> From this xml snippet, I want to add a field with name reference.foo and value bar . The DataImportHandler includes a XPathEntityProcessor for processing XML

JAVA课程笔记系列: 基于SpringBoot的Data Solr搜索引擎开发

佐手、 提交于 2020-01-14 12:22:21
基于SpringBoot的Data Solr搜索引擎开发 关于Apache Solr的简介 Solr它是一种开放源码的、基于 Lucene Java 的搜索服务器,易于加入到 Web 应用程序中。Solr 提供了层面搜索(就是统计)、命中醒目显示并且支持多种输出格式(包括XML/XSLT 和JSON等格式)。它易于安装和配置,而且附带了一个基于HTTP 的管理界面。可以使用 Solr 的表现优异的基本搜索功能,也可以对它进行扩展从而满足企业的需要。Solr的特性包括: 高级的全文搜索功能 专为高通量的网络流量进行的优化 基于开放接口(XML和HTTP)的标准 综合的HTML管理界面 可伸缩性-能够有效地复制到另外一个Solr搜索服务器 使用XML配置达到灵活性和适配性 可扩展的插件体系 支持像英语,德语,中国,日本,法国和许多主要语言 Apache Solr和Lucene的关系 Solr 与Lucene 并不是竞争对立关系,恰恰相反Solr 依存于Lucene ,因为Solr 底层的核心技术是使用Apache Lucene 来实现的,简单的说Solr 是Lucene 的服务器化。需要注意的是Solr 并不是简单的对Lucene 进行封装,它所提供的大部分功能都区别于Lucene。 Apache Solr 相关目录说明 Solr程序包的结构说明 bin :solr相关运行脚本

Is it possible to integrate Apache Solr with Spring Batch?

岁酱吖の 提交于 2020-01-14 04:01:11
问题 I read about Apache Solr and Spring Batch. Apache Solr is powerful search technology. Now, we want to read data from Apache Solr and then Spring Batch will process that data and will write to database. I searched a lot, but I could not get demo about this integrartion. Is it possible to integrate Apache Solr with Spring Batch? 回答1: We have done a spring batch based application that do indexing on solr cloud which is equivalent to Solr "Data Import Request Handler". Step 1: Read from database

Solr to remove faceted field when it doesn't have any data

我与影子孤独终老i 提交于 2020-01-14 03:58:29
问题 Working with Solr for ASP.net project using Solrnet library. While querying with Faceted field set to true for several fields, it returns blank faceted fields in the results as well. Is there any way using which we can instruct Solr to remove those faceted fields which does not have any result into it. So the final results doesn't include any facet field with no data. I'm not referring to min.count parameter, this works fine. But I'm referring to the facet field which stays there even if

How to OR two joins in Solr

我的梦境 提交于 2020-01-14 03:12:35
问题 I have the following statement: ({!join from=project_uuid to=id}type:EM_PM_Timerecord AND created:[2015-01-01T01:00:00Z TO 2016-01-01T01:00:00Z]) OR ({!join from=project_uuid to=id}type:EM_CM_Request_Member AND created:[2015-01-01T01:00:00Z TO 2016-01-01T01:00:00Z]) It doesn't return any documents, but if I use only one of the joins e.g.: {!join from=project_uuid to=id}type:EM_PM_Timerecord AND created:[2015-01-01T01:00:00Z TO 2016-01-01T01:00:00Z] It returns some documents. If I remove the

Can CKAN support Solr 7.0?

﹥>﹥吖頭↗ 提交于 2020-01-13 19:26:50
问题 I am trying to install Solr 7.0 and CKAN 2.7.2 in Ubuntu 16.04. However, I got the following errors : From Solr admin website: ckan: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core ckan: Can't load schema /var/solr/data/ckan/conf/schema.xml: Setting defaultSearchField in schema not supported since Solr 7 From CKAN installation when initiating Database: Solr responded with an error (HTTP 404): [Reason: Error 404 Not Found] So I wonder

Can CKAN support Solr 7.0?

我与影子孤独终老i 提交于 2020-01-13 19:26:28
问题 I am trying to install Solr 7.0 and CKAN 2.7.2 in Ubuntu 16.04. However, I got the following errors : From Solr admin website: ckan: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core ckan: Can't load schema /var/solr/data/ckan/conf/schema.xml: Setting defaultSearchField in schema not supported since Solr 7 From CKAN installation when initiating Database: Solr responded with an error (HTTP 404): [Reason: Error 404 Not Found] So I wonder

Ordering Solr search result by day/week/month/year views

廉价感情. 提交于 2020-01-13 19:09:17
问题 Have Video model and search index for it. Django-haystack and Solr are used. It is needed to sort result by video's views for day/week/month/year. Is it possible to this without always updating of search index by information of views for last day/week/month/year? If need only sort by view for day and total, then it can be possible update index only for videos viewed for one day, which have current views equal 0. Using update_index every few hours looks like not good idea, because now it takes

Ordering Solr search result by day/week/month/year views

橙三吉。 提交于 2020-01-13 19:08:16
问题 Have Video model and search index for it. Django-haystack and Solr are used. It is needed to sort result by video's views for day/week/month/year. Is it possible to this without always updating of search index by information of views for last day/week/month/year? If need only sort by view for day and total, then it can be possible update index only for videos viewed for one day, which have current views equal 0. Using update_index every few hours looks like not good idea, because now it takes

Solrcloud delete collection bug?

依然范特西╮ 提交于 2020-01-13 19:07:05
问题 First,I create a collection called usercollection : http://xxxxx/solr/admin/collections?action=CREATE&name=usercollection&numShards=3&replicationFactor=3&maxShardsPerNode=3 Then I found something wrong, so I delete it. http://xxxx/solr/admin/collections?action=DELETE&name=usercollection At last ,I want to create the collection again. And I found something wrong. `May 16, 2013 8:32:23 PM org.apache.solr.cloud.OverseerCollectionProcessor run INFO: Overseer Collection Processor: Get the message