solr6

Select query for search with 2 or more words without double quotes in solr

蓝咒 提交于 2020-01-17 07:28:08
问题 I have a column named title. I want to search this column. There is no problem when I use single word like title:'sport' OR title:"sport" . Both giving same number of record. My problem is when I search with 2 or more words without double quotes(with double quotes giving exact result ex: title:"sport education" ). title:'sport education' - returning irrelevant records(more title's don't have sport or education word) +title:'sport education' - returns the same number of record for the search

Solr Delta Import Query is not working

倖福魔咒の 提交于 2019-12-25 08:04:09
问题 I am trying to import data from Mongodb to Solr6.0. Full import is executing properly but delta import is not working. When I execute delta import I get below result. Requests: 0 , Fetched: 0 , Skipped: 0 , Processed: 0 My data config file queries are as below query="" deltaQuery="db.getCollection('customer').find({'jDate':{$gt:'${dih.last_index_time}'}},{'_id' :1});" deltaImportQuery="db.getCollection('customer').find({'_id':'${dataimporter.delta.id}'})" the whole data-config.xml <?xml

Creating Solr shards in Alfresco 6.1 CE

时光怂恿深爱的人放手 提交于 2019-12-25 01:14:46
问题 After migrating to Alfresco CE 6.1 (201901 GA) and Alfresco Search Services we have massive search performance problems. So I tried to configure sharding in solr by following Creating Solr shards manually. I was able to create the shards and indexing seams to work but when I configure Alfresco to use sharding in alfresco-global.properties solr6.store.mappings.value.solrMappingAlfresco.nodeString=solr.mycompany.com:8983/solr/#/alfresco solr6.store.mappings.value.solrMappingAlfresco.numShards=4

Upgrade Apache Solr from 4.10.4 to 6.6.0 on Cent os 7

折月煮酒 提交于 2019-12-23 19:04:33
问题 How to upgrade Apache solr from existing version 4.10.4 to 6.6.0 (A latest one) On linux centos 7 operating system. 回答1: stop existing running solr sudo service solr stop confirm its stopped or not sudo service solr status You can take backup of existing solr data from /var/solr/data/< core_name >, But reindexing solr data after upgrading solr version will give best performance without any unknown issues. now remove existing solr from centos sudo rm -r /var/solr remove solr from following

How to insert Bean object which has many child Bean in SolrJ

╄→гoц情女王★ 提交于 2019-12-21 20:47:04
问题 I have a Bean Class Activity which associates List of Profiles and a User Bean. Now If I am trying to insert this Activity bean in Solr by SOLRJ, it is giving me null pointer exception. The Exception is causing by below piece of code: public <T> boolean insert (T bean) { try { UpdateResponse response = solrClient.addBean(bean); System.out.println("insert bean ElapsedTime: " + response.getElapsedTime()); solrClient.commit(); return true; } catch (IOException | SolrServerException e) { e

Solr configuration for scored search

删除回忆录丶 提交于 2019-12-11 13:48:40
问题 I am trying to setup a Solr index for searching against a database of product information. For this purpose, I have populated a database of product details and used Solr 6.0.0. For a given product detail (title, brand, other keywords), I would like to know if there is a product in the database that closely matches the given details. I have started dataimport and created the index. However, when I search, the scores of the matching product are all the same in spite of the products listed being

How to add custom delimiter to a csv file while indexing in apache solr

橙三吉。 提交于 2019-12-11 06:07:35
问题 I am new to apache solr and I am currently working with the version solr-6.4.0 I am trying to index a csv file in solr. Instead of using the default delimiter "," I would like to use a custom delimiter for example "_1ComPaaS1_" . To achieve this what do I need to do? I am working on a project and in need of some quick help. This is the kind of response I am getting while I try to index a csv file with my custom delimiter. { "responseHeader":{ "status":0, "QTime":0, "params":{ "q":"*:*",

Difference between geodist() and dist() for Geo-Spacial Search

余生长醉 提交于 2019-12-11 05:26:44
问题 What is the Difference between Geodist(sfield,x,y) and dist(2,x,y,a,b) in Apache Solr for Geo-Spacial Searches ?? dist(2,x,y,0,0) :- calculates the Euclidean distance between (0,0) and (x,y) for each document. Return the Distance between two Vectors (points) in an n-dimensional space. I was earlier using geodist() distance function for Geo-Spatial searches on my website but its response time was large. so have done a POC(proof of concept) for different distance functions and found that dist(2

Migration of solr cores after solr version upgradation from 4.10.4 to 6.6.0 on Cent os 7

走远了吗. 提交于 2019-12-10 12:17:16
问题 I have upgraded apache solr from 4.10.4 to 6.6.0 on Cent os 7 server, with the help of Upgrade Apache Solr from 4.10.4 to 6.6.0 on Cent os 7 I have taken backup of old solr core namely sample_core in /home/user/old_solr/sample_core folder How can I migrate my old solr(4.10.4) data in new solr version (6.6.0) 回答1: Make sure solr is running sudo service solr status Create new solr core by name sample_core use solr user sudo su solr Create sample_core /opt/solr-6.6.0/bin/solr create -c sample

How to insert Bean object which has many child Bean in SolrJ

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 12:59:30
I have a Bean Class Activity which associates List of Profiles and a User Bean. Now If I am trying to insert this Activity bean in Solr by SOLRJ, it is giving me null pointer exception. The Exception is causing by below piece of code: public <T> boolean insert (T bean) { try { UpdateResponse response = solrClient.addBean(bean); System.out.println("insert bean ElapsedTime: " + response.getElapsedTime()); solrClient.commit(); return true; } catch (IOException | SolrServerException e) { e.printStackTrace(); } return false; } Sanjay Madnani Refer below URL for nested document insertion and