solr4

Solr copy data from “crawler” core into “search” core

倾然丶 夕夏残阳落幕 提交于 2019-12-13 05:48:08
问题 We are looking to have a Solr 4.9 setup where we have a very simple crawler wipe out and load up a "crawler" core then trigger a copy of the data over to "search" core when the crawl is done. The purpose of this is that our crawler is VERY simple, and doesn't really track documents in a way that would be conducive to doing updates and deleted. Basically, the crawler will be wiping out the entire "crawler" core, ripping though about 50k documents (committing ever 1000 or so), and then trigger

Solr will use Highlighter instead of FastVectorHighlighter warning

ε祈祈猫儿з 提交于 2019-12-13 04:48:07
问题 Hi I'm developing rails app with Solr 4.1 search engine, When I add highlighting to searchSolr start spaming the tomcat6 log with this warning: Jan 29, 2015 12:13:38 PM org.apache.solr.highlight.DefaultSolrHighlighter useFastVectorHighlighter WARNING: Solr will use Highlighter instead of FastVectorHighlighter because *Field_Name* field does not store TermPositions and TermOffsets. Example of my field in schema.xml: <field name="name" type="text" indexed="true" stored="true" multiValued="true"

Solr sort by the value of function query does not work

左心房为你撑大大i 提交于 2019-12-12 05:37:23
问题 I'm working on a feature which relies on sorting the value of function query. Function query is as below : http://localhost:8983/solr/collection/select?q=*:*&sort=if(exists(f1_t), f1_t, theme)+ASC&wt=json&indent=true The sort function is " if(exists(f1_t), f1_t, theme) ASC " So basically what I'm doing is if the field " f1_t " (which is a dynamic field of type TextField) exists then the sorting is based on the value of the field else the sorting is based on the value of "theme" which is also

Solr : Importing data with single SP call

随声附和 提交于 2019-12-12 04:49:31
问题 I have one solr collection called document. In that there are fields like id,name,associated_folder,is_associate & other The field is_associate depends on associated_folder. I am importing data using Data Import provided in Solr Dashboard My problem is that Stored Procudeure which returns data like : # id name associated_folder is_associate 1 DOC1 DOCNAME 1001,1002,1003 true 2 DOC2 DOCNAME 4001,4002,4003 true 3 DOC3 DOCNAME -1 false & in my schema file associated_folder declare like : <field

Reindex a file in alfresco 5.0

折月煮酒 提交于 2019-12-12 03:36:21
问题 I just want to re-indexed a file,I am using this api "https://localhost:8443/solr4/admin/cores?action=REINDEX&nodeid=983" but i could not re-indexed.Can any one tell how can i re-indexed a file ? I am using alfresco 5.0. 回答1: You should be able to see the count of error nodes using your admin console and confirm that something really is in error. The action you mentioned is the right one (there are a few more, check the official documentation), but if the node is not reindexed, the action

Need to use new SolrEntityProcessor in Solr-4.2

六眼飞鱼酱① 提交于 2019-12-12 02:48:25
问题 There is a question asked in SO that SolrEntityProcessor is called only once for sub-entities. I am facing the exact same problem. Here The person has answered that we can use the patched SolrEntityProcessor.java attached with https://issues.apache.org/jira/browse/SOLR-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel. I don't much about jar file or java. I tried some things given on net. But still I am not able to use this new patched java file for my use. Can some

Solr: Find words count for 'text' field of an indexed pdf document

无人久伴 提交于 2019-12-12 02:26:50
问题 I am trying to find the most frequent words in the text field of an indexed document using Solr 4.10 . I created a PDF document from a text file with some text and posted it to Solr using post.jar and when queried based on its id it gives me pdf contents which are shown below and all meta-data of the document. <arr name="text"> <str>sample1</str> <str/> <str>application/pdf</str> <str> sample1 sample1.txt cook cook1 book1 book1 book2 nook1 nook1 nook2 nook2 two three four Page 1 </str> </arr>

How to get Solr result as per their scores

£可爱£侵袭症+ 提交于 2019-12-12 01:55:58
问题 I am working on Solr with ASP.Net MVC. I want to display result as per score result . It means if I search for any keyword, it gives me total 500 result. But I want only first 100 Results. I also display scores for results using following query: Fields = new[] {"*","score"}, I want results which have score more than 0.3 How can I do this in Solr? Also a solrnet query to get this result. Please advise. Thank you. 来源: https://stackoverflow.com/questions/26842830/how-to-get-solr-result-as-per

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

Solr - How to obtain multiple suggestions for a query

独自空忆成欢 提交于 2019-12-11 13:20:05
问题 In the configuration file solrconfig.xml , is there a parameter to adjust tolerance in order to have multiple suggestions even if the number of different letters between the query & the suggestion is large? In my solrconfig.xml suggestion configuration, I have : The spellcheck search component : <lst name="spellchecker"> <str name="name">default</str> <str name="field">title</str> <str name="classname">solr.DirectSolrSpellChecker</str> <!-- the spellcheck distance measure used, the default is