solr5

Unable to run solr 5 index upgrader

回眸只為那壹抹淺笑 提交于 2019-12-11 19:25:50
问题 I keep adding the classpath in the java command line yet I get this error. what could be the issue? ~/Documents/solr-5.5.5/server/solr-webapp/webapp/WEB-INF/lib $ java -classpath ./lucene-backward-codecs-5.5.5.jar -cp lucene-core-5.5.5.jar org.apache.lucene.index.IndexUpgrader -delete-prior-commits -verbose ~/Documents/zaobao_cms/collection1/data/index/ IW 0 [2019-01-17T13:39:11.649Z; main]: init: hit exception on init; releasing write lock Exception in thread "main" java.lang

Deleting index from Solr using solrj as a client

℡╲_俬逩灬. 提交于 2019-12-09 16:12:18
问题 I am using solrj as client for indexing documents on the solr server. I am having problem while deleting the indexes by 'id' from the solr server. I am using following code to delete the indexes: server.deleteById("id:20"); server.commit(true,true); After this when i again search for the documents, the search result contains the above document also. Dont know what is going wrong with this code. Please help me out with issue. Thanks! 回答1: When you call deleteById, just use the id, without

Override contextPath on solr start from command line

人盡茶涼 提交于 2019-12-08 09:45:37
问题 Is it possible to override jetty "contextPath" property when starting Solr 5 using command line arguments? I want something like bin/solr -p 8983 -s "example/techproducts/solr" -a "-DcontextPath=/s" So that the base url will be http://localhost:8983/s To be precise, I want to override exactly contextPath property 回答1: Your question is about the context path of solr as jetty webapp. Instead of http://localhost:8983/solr/ you want to access solr via http://localhost:8983/s/ imho this is not

Integration between Nutch 1.11(1.x) and Solr 5.3.1(5.x)

我的梦境 提交于 2019-12-04 09:22:41
I just started using Nutch 1.11 and Solr 5.3.1 . I want to crawl data with Nutch , then index and prepare for searching with Solr . I know how to crawl data from web using Nutch 's bin/crawl command, and successfully got much data from a website in my local. I also started a new Solr server in local with below command under Solr root folder, bin/solr start And started the example files core under the example folder with below command: bin/solr create -c files -d example/files/conf And I can login below admin url and manage the files core, http://localhost:8983/solr/#/files So I believe I

How to fix: Error CREATEing SolrCore 'gettingstarted': Unable to create core

那年仲夏 提交于 2019-12-02 21:35:55
I'm getting this error when I try to create a new core in solr. root@ubuntu:/opt/solr# bin/solr create -c gettingstarted -n data_driven_schema_configs Setup new core instance directory: /var/solr/data/gettingstarted Creating new core 'gettingstarted' using command: http://localhost:8983/solr/admin/cores?action=CREATE&name=gettingstarted&instanceDir=gettingstarted Failed to create core 'gettingstarted' due to: Error CREATEing SolrCore 'gettingstarted': Unable to create core [gettingstarted] Caused by: /var/solr/data/gettingstarted/data Also, if I try to create alternatively, It gives me same

Solr DataImportHandler is not indexing all data defined

时光总嘲笑我的痴心妄想 提交于 2019-11-29 17:57:39
I am using solr5.3. I am trying to upload wikipedia page article dump to solr using "DataImportHandler" but I am getting only id and title files when i am querying. Below is my data-config.xml <dataConfig> <dataSource type="FileDataSource" encoding="UTF-8" /> <document> <entity name="page" processor="XPathEntityProcessor" stream="true" forEach="/mediawiki/page/" url="/mnt/TEST/enwiki-20150602-pages-articles1.xml" transformer="RegexTransformer,DateFormatTransformer" > <field column="id" xpath="/mediawiki/page/id" /> <field column="title" xpath="/mediawiki/page/title" /> <field column="revision"