solr

Solr: unload core wait forever after cores swap

核能气质少年 提交于 2019-12-12 03:36:19
问题 I have created a Solr CoreAdminHandler extension with the goal to swap two cores and remove the old one. My code looks like this: SolrCore core = coreContainer.create("newcore", coreProps) coreContainer.swap("newcore", "livecore") // the old livecore is now newcore, so unload it and remove all the related dirs coreContainer.unload("newcore", true, true, true) After the last statement get executed the Solr log starts printing the following messages forever 61424 INFO (pool-1-thread-1) [ x

Google Dataproc timing out and killing excutors

一曲冷凌霜 提交于 2019-12-12 03:34:19
问题 I have a google dataproc spark cluster set up with one master node, and 16 worker nodes. The master has 2 cpus and 13g of memory and each worker has 2 cpus and 3.5g of memory. I am running a rather network-intensive job where I have an array of 16 objects and I partition this array into 16 partitions so each worker gets one object. The objects make about 2.5 million web requests and aggregates them to send back to the master. Each request is a Solr response and is less than 50k. One field (an

Solr exact search with blank character AND a wildcard

空扰寡人 提交于 2019-12-12 03:33:41
问题 I got a problem with solr search. I want to search a string with a blank character within and a wildcard in the end. the only way that i found was to put the string in quotes. but if I do like this and i can´t put a wildcard in the end. so is there any way i can search for "foo bar"* ? thanks for any hint! 回答1: you can try escaping the white space field:foo\ bar* Wildcard Queries :- Note that wildcards are not supported within quoted phrases. They will be treated as if they were white space.

On solr how can i copy selected values only from multi valued field to another multi valued field?

家住魔仙堡 提交于 2019-12-12 03:29:16
问题 I have indexed solr one of the field is multivalued and it has different values in it and i want to copy selected values into new field. Field1 has value a , b, c and want to copy into Field2 but only value a and c The data is came from another instance of solr using dataimport processor="SolrEntityProcessor" Am using solr 4.9 回答1: What does it mean I want ? Solr can't read your mind. So, do you want to skip a specific value, an item in specific position, any item that does not match

solr service shut down for no apprent reason

守給你的承諾、 提交于 2019-12-12 03:29:10
问题 I'm using the solr5.3.1 for full text searching.And I'm using PHP with solarium library to communicate with solr service.It is doing well in most of the time. But it was shut down twice for no reason.I check the log files,and find no error message .So I was curious to know is there are some reasons will cause solr to shut down itself? I can show you more detail information if you need to help me solve the problem,just tell me in the comments.Thanks so much! 回答1: Thanks for @MatsLindh's

Need explanation on Language Stemmer of Solr

余生长醉 提交于 2019-12-12 03:12:29
问题 I'm using nutch with Solr for a developing a search engine for Arabic texts. I need to implement a stemmer on my Arabic texts, and while serching on Solr Stemmer I found that it provide those two filters <filter class="solr.ArabicNormalizationFilterFactory"/> <filter class="solr.ArabicStemFilterFactory"/> I tried them but did not understand what they do .. So please any one can help me with some examples?? and do these two do this: العملات Stemmed to عملة البسَاتِين ، بساتينكم Stemmed to

Can solr serve individual documents like a CMS would?

[亡魂溺海] 提交于 2019-12-12 03:11:24
问题 I am looking to build a realestate search engine specs are Approx 500 000 listings daily updates of potentially 50 000 listings Data supplied in clean(ish) CSV's - need to remove characters, encode utf, the usual. 50+ fields of data (30 images, various property specs etc) Im having a lot of problem with Drupal7 and Joomla cannot handle it. Thats just the data import. Im wanting to have solr index the data and serve as the search engine. I have a few questions. Can solr serve the listing

wants field type/schema.xml for address search from customer order details?

与世无争的帅哥 提交于 2019-12-12 03:10:05
问题 i want to search within address and text is new york, i have enabled debug log and below is debug log .... rawquerystring: "shipment_recepient_name6:New york", querystring: "shipment_recepient_name6:New york", parsedquery: "+shipment_recepient_name6:New +shipment_recepient_name1:york ", parsedquery_toString: "+shipment_recepient_name6:New +shipment_recepient_name1:york ", My doubt is i am searching on field6 and why its rest of the word search on field1(my default search field) .can you

SOLR count multi valued fields query

喜你入骨 提交于 2019-12-12 03:09:42
问题 Is it possible to create a solr query where only documents are returned which have more than one entries in a multi valued field. For example: docs: [ { id: 1, myfield: ["hello word", "hello stackoverflow"] }, { id: 2, myfield: ["hello word"] } ] And my naive sample query just for explanation what I want: /select?q=count(myfield.length, 'eq', 2) 回答1: Yes it is but not "out of the box". A solution in order to achieve what you're looking for is to use CountFieldValuesUpdateProcessorFactory

Applying Language Specific Analyzer Dynamically before Solr Indexing

旧巷老猫 提交于 2019-12-12 03:04:37
问题 I want to index multi-lingual data. I can identify the language of any field by Solr's Language Detection. Now how can I apply language specific analyzer dynamically to that field? I do not want to create language specific fields (Like: content_en, content_hi etc.). I want to apply language specific analyzer to same field in run time... I am new in Search Technology. Can any one help me out? Regards, Sagar Majumder 回答1: My suggestion is to use a separate Solr core for each language. That's