solr4

How can I sort solr result bases on dynamic fields

假如想象 提交于 2019-12-01 10:32:51
问题 Thanks for giving your time. I need to sort result on the basis of dynamic field. How can I do that ? when I am sorting on minimum value of some of those dynamic attribute. It's not giving correct result because my query is like &sort=min(A_160018,A_chandigarh1) Some of document having both field A_160018 and A_chandigarh1 while some document having no field and some having one either A_160018 or A_chandigarh1 for some result doc . could you help me , How can I sort for this type of dynamic

solr - set fileds as default search field

时光怂恿深爱的人放手 提交于 2019-12-01 07:16:48
问题 The following query works well for me http://[]:8983/solr/vault/select?q=VersionComments%3AWhite returns all the documents where version comments includes White I try to omit the field name and put it as a default value as follows : In solr config I write <requestHandler name="/select" class="solr.SearchHandler"> <!-- default values for query parameters can be specified, these will be overridden by parameters in the request --> <lst name="defaults"> <str name="echoParams">explicit</str> <int

unable to configure Tika1.2 with solr4

痴心易碎 提交于 2019-11-30 20:41:50
问题 I am trying to use TikaEntityProcessor to index the .html file content. Somehow I am not able to get it correctly. I have checked the error log and I got the following error. SEVERE: Full Import failed:java.lang.RuntimeException:org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to load EntityProcessor implementation for entity:tika-test Processing Document # 1 at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:273) at org.apache.solr.handler

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"

Wrong spell-check suggestions by Solr

孤街浪徒 提交于 2019-11-29 16:24: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" offers no result with following suggestions - " connect " and " content ". Here also, we found that "

Configuring Solr to use UUID as a key

二次信任 提交于 2019-11-29 15:19:21
I am trying to configure Solr 4 to work with UUID and so far I am unsuccessful From reading the documentation I have seen two different ways to configure schema.xml to work with UUID (both do not work) for both I need to write <fieldType name="uuid" class="solr.UUIDField" indexed="true" /> option 1: add: <field name="id" type="uuid" indexed="true" stored="true" default="NEW" multiValued="false"/> and make sure to remove the line <uniqueKey>id</uniqueKey> option 2 add: <field name="id" type="uuid" indexed="true" stored="true" required="true" multiValued="false" /> Both options are not working

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

痞子三分冷 提交于 2019-11-29 08:55:07
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="FileDataSource" /> <document> <entity name="f" processor="FileListEntityProcessor" baseDir="/path/to

Use function query for boosting score in Solr

爷,独闯天下 提交于 2019-11-29 07:32:09
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 product function. Trying to get it done, I always get error as field not defined. Now I can use boost as

Stronger boosting by date in Solr

心不动则不痛 提交于 2019-11-28 18:25:00
Boosting by date field in solr is defined as: {!boost b=recip(ms(NOW,datefield),3.16e-11,1,1)} I looked everywhere (examples: Solr Dismax Config for Boost Scoring and Solr boost for multivalued date field and they all reference the SolrRelevancyFAQ ), same definition that is used. But I found that this is not boosting my results sufficiently. How can I make this date boosting stronger? User is searching for two keywords. Both items contain both keywords (in same order) in both title and description. Neither of the keywords is repeated. And the solr debug output is waaay too confusing to me to

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

你说的曾经没有我的故事 提交于 2019-11-28 18:22:51
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. Global Warrior Just found the solution we need to push the changed configuration to zookeeper ensemble. Just