solr

Remove email address from solr indexing

亡梦爱人 提交于 2019-12-24 21:55:27
问题 When Solr build the index, it gets parts of email address. For exemple, if i have an email like this : foo@bar.com, Solr indexes the words "foo" and "barcom". I want to remove theses words but I don't know how to do this. I tried to modify the configuration file schema.xml adding this rule on my indexed field : <filter class="solr.PatternReplaceFilterFactory" pattern=" (.*)@(.*) " replacement=" " replace="all"/> However, it doesn't work. 回答1: You can detect tokens as a e-mailaddress and

Is data in solr backed by postgres in ckan

老子叫甜甜 提交于 2019-12-24 21:54:03
问题 I would like to create a high availability ckan in Azure. I know I can have a postgres as a service and rediss as a service, I can have ckan run behind a load balancer, only thing that bothers me is solr. Since there is no Solr as a service in Azure, how can I make sure my solr instance is highly available. Does ckan keeps data in postgres and a duplicate of that data in solr for indexing? If yes then, that will help me as if anytime my solr instance goes does in a VM (rarely) I will create

SOLR Dropping Emoji Miscellaneous characters

荒凉一梦 提交于 2019-12-24 21:40:31
问题 It looks like SOLR is considering what should be valid Unicode characters as invalid, and dropping them. I "proved" this by turning on query debug to see what the parser was doing with my query. Here's an example: Query = 'ァ☀' (\u30a1\u2600) Here's what SOLR did with it: 'debug':{ 'rawquerystring':u'\u30a1\u2600', 'querystring':u'\u30a1\u2600', 'parsedquery':u'(+DisjunctionMaxQuery((text:\u30a1)))/no_coord', 'parsedquery_toString':u'+(text:\u30a1)', As you can see, was OK with 'ァ', but it ATE

apache/SOLR: access solr server by https:// domain-name

假装没事ソ 提交于 2019-12-24 20:47:43
问题 I have been using a solr search on a http IP like http://xxx.xxx.xxx.xxx:8983/solr/#/ but now I need, for security reasons, to have a domain name + https like https://example.com:8983/solr/#/ or (?) https://example.com/solr/#/ either way I have no clue how to config my apache conf vhost files... any idea? PS. I already enabled the https for my domain https://example.com/ 回答1: You can make solr listen only to the localhost and install Apache or Nginx as reverse proxy that listens on your

Issues performing a query to Solr via HttpClient using Solr 3.5 and HttpClient 4.2

落爺英雄遲暮 提交于 2019-12-24 20:27:33
问题 I am trying to query my local Solr server using HttpClient and I cannot figure out why the parameters are not being added to the GET call. My code for doing this is: HttpRequestBase request = new HttpGet("http://localhost:8080/solr/select"); HttpParams params = new BasicHttpParams(); params.setParameter("q", query); params.setParameter("start", String.valueOf(start)); params.setParameter("rows", String.valueOf(rows)); request.setParams(params); HttpClient httpClient = new DefaultHttpClient();

How to access groupedValue in Solr Query Grouping

半世苍凉 提交于 2019-12-24 19:33:45
问题 I've got some issue to access groupValue in Solr query. I want to show groupValue in jquery autocomplete label. But I can't do it. Can anyone help me to do this? { "responseHeader":{ "status":0, "QTime":29, "params":{ "q":"strSO:*", "indent":"true", "fl":"strSO", "start":"0", "rows":"2147483647", "wt":"json", "group.field":"strSO", "group":"true"}}, "grouped":{ "strSO":{ "matches":112559, "groups":[{ "groupValue":"EV11777-01", "doclist":{"numFound":53,"start":0,"docs":[ { "strSO":"EV11777-01"

Apache Solr : Search is not returning result for large document indexed

萝らか妹 提交于 2019-12-24 19:29:57
问题 We are indexing a word document in Solr. It indexed properly. However, if I search for a word which is at a position more than 11000, the search is not returning anything. Is there any configuration to make Solr search work on entire data in the document indexed. Any help will be appreciated. 来源: https://stackoverflow.com/questions/19994746/apache-solr-search-is-not-returning-result-for-large-document-indexed

Hybris Solr Sort

淺唱寂寞╮ 提交于 2019-12-24 18:52:55
问题 I modified my code to add new solr sort for price. INSERT_UPDATE FieldSolrSort;sort(indexedType(identifier),code)[unique=true];fieldName[unique=true];descending[unique=true];$IndexedType:price;priceValue;true I have currently two solr sort Name Ascending Name Descending I added new solr sort for price Price Ascending Price Descending But I want my new solr sort to only show when the user has logged in. Anyone know? Thanks 回答1: Step 1: Import impex to enable price sort option If you refer any

Solr Hierarchical Faceting. Example needed

China☆狼群 提交于 2019-12-24 18:06:09
问题 I am new to solr. I want to implement hierarchical faceting in my application. I went through http://wiki.apache.org/solr/HierarchicalFaceting and also for the preparation of correct xml. My need is to push XML to solr for indexing and it should show expected results as shown in solr wiki. Problem: I am not understanding how should I specify facet fields in solrconfig/schema and also in the xml that will be posted. IF anyone out there can provide me example configuration that will be great. I

AnyQ_智能问答的一个非官方帮助手册

拟墨画扇 提交于 2019-12-24 17:50:35
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> AnyQ_智能问答的一个非官方帮助手册 本手册由一个俗人(wechat:dotzcv)整理,数据来源为百度Google搜索,官方issues,以及本人的实验所得进行记录扩充 前提的准备条件 硬件环境:4核8G 上面测试成功 (我的一台2核4G测试服务器,目前未通过。) 软件环境: Docker 推荐 cmake 3.2.2版本 ,g++ >=4.8.2,bison >=3.0 java环境 安装操作见下面QA章节 网络环境:正确的上网方式。由于编译时候会在github上进行代码clone,所以建议有条件的使用正确的方式,加速下载代码(当然此处非必须,没有则速度慢一点而已) 核心代码安装步骤 1.非Docker:忽略了,没有高一点而且环境比较纯碎的服务器了,没有编译成功。 2.Docker:安装成功了。步骤如下: #拉取镜像 docker pull hub.baidubce.com/paddlepaddle/paddle:latest-dev #运行容器 docker run --name paddle -it -v $PWD:/paddle hub.baidubce.com/paddlepaddle/paddle:latest-dev /bin/bash #进入容器进行代码clone git clone