solr4

Wrong spell-check suggestions by Solr

冷暖自知 提交于 2019-11-28 10:23:41
问题 Working on Spell Suggest with Solr 4.1. We configured it correctly and Solr offers term as well as collate suggestions. However, we noticed that many times the suggested word / collate doesn't have any results if we search it again. For example, we searched for term " confort " and got no results, with two suggestions " comfort " and " convert ". The first term contains the result.. however the second term doesn't bring any result, and instead suggested two more terms, so term "convert"

SOLR autoCommit vs autoSoftCommit

早过忘川 提交于 2019-11-28 04:33:37
I'm very confused about and . Here is what I understand autoSoftCommit - after a autoSoftCommit, if the the SOLR server goes down, the autoSoftCommit documents will be lost. autoCommit - does a hard commit to the disk and make sure all the autoSoftCommit commits are written to disk and commits any other document. My following configuration seems to be only with with autoSoftCommit. autoCommit on its own does not seems to be doing any commits. Is there something I am missing ? <updateHandler class="solr.DirectUpdateHandler2"> <updateLog> <str name="dir">${solr.ulog.dir:}</str> </updateLog>

DIH(Data Import Handler) for xml files is not working in Solr4

 ̄綄美尐妖づ 提交于 2019-11-28 02:18:25
问题 I have installed and configure Solr4 and tomcat6 on to the server. It works good but when I try to build the DIH(Data Import Handler) it gives me an error and I am not able to resolve. I add the following code to my solrconfig.xml file <requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults"> <str name="config">/path/to/data-config.xml</str> </lst> my data-config.xml file looks like as follow <dataConfig> <dataSource type=

Use function query for boosting score in Solr

牧云@^-^@ 提交于 2019-11-28 01:19:39
问题 I working on a Solr 4 for optimizing my solr results rank based on popularity rank stored in Index. Now when someone searches, apart from relevancy rank, I want to influence relevancy rank using popularity rank. The simplest formula could be: new relavancy rank = score * popularityrank I have been looking at Solr function query at http://wiki.apache.org/solr/FunctionQuery#product to achieve the same however, I'm not sure how to get it to work. I didn't get how to get score multiplied using

Solr Text field and String field - different search behaviour

佐手、 提交于 2019-11-27 12:23:41
问题 I am working on Solr 4+. I have several fields into my solr schema with different solr field types. Does the search on text field and string field differs? Because I am trying to search on string field (which is a copy field of few facet fields) which does not work as expected. The destination string field is indexed and stored both. However, when I change destination field which a text field (only indexed), it works fine. Can you suggest why this happens? What is exactly the difference

Reloading SolrCloud configuration (stored on Zookeeper) - schema.xml

回眸只為那壹抹淺笑 提交于 2019-11-27 11:17:38
问题 I have setup a SolrCloud replication using standalone zookeeper. But now I wish to make some changes to my Schema.xml and reload the core. The problem is that when I run a single server Solr (no solrcloud) the new schema is loaded, but I do not know how to reload schema on all the replication server. I tried reloading the schema on one of the server with no desired impact. Is there a way in which I can reload my schema.xml in Solr in distributed replication setup which uses zookeeper. 回答1:

SOLR autoCommit vs autoSoftCommit

与世无争的帅哥 提交于 2019-11-27 00:23:24
问题 I'm very confused about and . Here is what I understand autoSoftCommit - after a autoSoftCommit, if the the SOLR server goes down, the autoSoftCommit documents will be lost. autoCommit - does a hard commit to the disk and make sure all the autoSoftCommit commits are written to disk and commits any other document. My following configuration seems to be only with with autoSoftCommit. autoCommit on its own does not seems to be doing any commits. Is there something I am missing ? <updateHandler