solr

Solr DataImportHandler is not indexing all data defined

让人想犯罪 __ 提交于 2019-12-18 09:38:19
问题 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=

Updating Solr Schema

不羁岁月 提交于 2019-12-18 09:18:43
问题 I am new to Solr and I'm curious what the procedure is for changing/updating the schema? I noticed that I can ADD new fields easily without causing any issues, but any time that I've had to UPDATE a field, it's caused issues. Due to the amount of data ingested into the system, I will not be able to retain the original data that was used to generate the add/doc queries to solr, so I'll be unable to simply re-index everything when a change occurs. For instance, I am looking to change an

Solr - How can I receive notifications of failed imports from my DataImportHandler?

自闭症网瘾萝莉.ら 提交于 2019-12-18 08:30:40
问题 Our solr indexes are refreshed according to a schedule, as well as arbitrarily as needed by means of a DataImportHandler full import. We've had several occasions where the import fails for various reasons. How can I receive a notification (preferably email) that an error has occured while performing an import with a DataImportHandler? 回答1: There is no easy config solution. But an alternative exists you might have to do little work. You could register EventListener with DIH in data-config to

Getting most likely documents of the query using phonetic filter in solr

妖精的绣舞 提交于 2019-12-18 07:15:20
问题 I am using solr for spell checking/ query correction . I have added solr.PhoneticFilterFactory and solr.NGramFilterFactory in fieldType to perform spell checking . It is working fine but here the problem is that I am getting number of documents of the query. I need only most likely words/documents or in similar words, we can say that nearer words/documents to the query . Snippet of schema.xml : <fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100"> <analyzer type=

SOLR managed-schema, how to use it?

泄露秘密 提交于 2019-12-18 07:11:06
问题 I got my SOLR to work, and it works decently but i have no clue what exactly managed-schema is, since I did use the default version in which i added few lines that i needed for my case <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> <field name="name" type="text_general" indexed="true" stored="true" default="" /> <field name="brand_id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> <field name="brand_name"

How Get Suggestions from Solr Server in a PHP variable

旧时模样 提交于 2019-12-18 07:07:30
问题 I've got this problem that I can't solve. Partly because I can't explain it with the right terms. I'm new to this so sorry for this clumsy question. Below you can see an overview of my goal. I'm using Magento CE 1.7.0.2 & Solr 4.6.0. Working with Spell checker in Solr I'm Searching with iphon instead of iphone the solr Spell Checker throwing these suggestions. <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">48</int> </lst> <str name="command">build</str>

Solr with Rails - rake sunspot:reindex is not working

谁都会走 提交于 2019-12-18 05:44:34
问题 I am stuck into a strange issue where I am looking for your inputs. My problem is: After deploying my application on Production using Capistrano, when I am doing solr re-indexing, it is giving me below error: $ bundle exec rake sunspot:reindex --trace ** Invoke sunspot:reindex (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute sunspot:reindex Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile rake aborted! RSolr::Error::Http -

Solr with Rails - rake sunspot:reindex is not working

丶灬走出姿态 提交于 2019-12-18 05:44:17
问题 I am stuck into a strange issue where I am looking for your inputs. My problem is: After deploying my application on Production using Capistrano, when I am doing solr re-indexing, it is giving me below error: $ bundle exec rake sunspot:reindex --trace ** Invoke sunspot:reindex (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute sunspot:reindex Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile rake aborted! RSolr::Error::Http -

Solr 4.1 DataImportHandler ClassNotFoundException

孤街醉人 提交于 2019-12-18 04:02:46
问题 I have been trying to setup Data Import Handler (Solr 4.1) following this tutorial and tried solutions suggested in previous posts such as Configure DIH in multicore solr and added the dataimport jar to the classpath but the error still persists. Any methods to solve this? Here is the entire exception stacktrace: SEVERE: Unable to create core: collection1 org.apache.solr.common.SolrException: RequestHandler init failure at org.apache.solr.core.SolrCore.<init>(SolrCore.java:794) at org.apache

SOLR df and qf explanation

心不动则不痛 提交于 2019-12-18 03:31:23
问题 I cannot find an adequeate explanation of how these query params interact I am getting suprising (to me) results that if I specify qf=title^20 description^10 then I get no results however if I then add df=description I do get results df is set to text in solrconfig.xml - which will change - but my question is this - does the df setting somehow override the qf setting? this seems odd 回答1: df is the default field and will only take effect if the qf is not defined. I guess you are not using