solr

Magento SOLR doesn't return results

橙三吉。 提交于 2019-12-12 03:04:23
问题 I am trying to integrate SOLR with Magento on my development machine. We are upgrading Magento and I want to test if SOLR is working as well. I am able to feed SOLR, the stats say that it has documents. In SOLR admin, when I put in : as query string, I do get the list of documents. But when I search for "maria mosters" for example, no results are returned. I have tried SOLR 1.4.1 (which we run in production) and 3.4.0. My schema.xml: http://pastebin.com/3a2J99re 回答1: Thank you for your

How to change Solr document id by SolrJ?

耗尽温柔 提交于 2019-12-12 02:54:49
问题 I use the following code to change specific field value. SolrInputDocument solrdoc=new SolrInputDocument(); solrdoc.addField("id","book001"); Map<String,Object> fieldModifier=new HashMap<>(1); fieldModifier.put("set","book_new_name"); solrdoc.addField("name",fieldModifier); But I cannot use the similar code to change Solr unique document id, exception is thrown. solrdoc.addField("id",fieldModifier); Is there any solution to change the Solr document id? 回答1: Changing the document id requires

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

How to update ExternalFileField value to external file which is located on solr directory

限于喜欢 提交于 2019-12-12 02:47:20
问题 I have implemented ExternalFileField in solr. But I am not able to update values into external file " external_BestSellerTest " that is located into ~\data directory inside solr core. My application and Solr Server were physically separated on two place. Application will calculate a score and generate a file for ExternalFileField. So, Am I need to post this external file into solr directory. Help me to update values into that external file. 来源: https://stackoverflow.com/questions/33412859/how

Sunspot Solr not starting with “You need a Java Runtime Environment to run the Solr server”

做~自己de王妃 提交于 2019-12-12 02:38:38
问题 Before redeploy my application and restart my server, Sunsport Solr stopped and can`t be started anymore, although it was working before the redeploy + restart. When I run rake sunspot:solr:run RAILS_ENV=production --trace I receive the following ** Invoke sunspot:solr:start (first_time) ** Invoke environment (first_time) ** Execute environment [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n

reindexing json object into solr by adding only unique elements

心不动则不痛 提交于 2019-12-12 02:25:51
问题 I have indexed json object into solr using httpclient and when I tried to index again, duplicate records are getting indexed. So how to update the records into solr, everytime I index I want to update the records. Thanks in advance 回答1: In your JSON Object include an ID field inside your json object and it should be unique, for example some random number like 65746 . When you will try to index this document again, solr will check for id .If id is same, solr will not index that whole document

Does “Circle(px,py d=d)” syntax for geospatial data dropped in Solr6? Since when and why?

守給你的承諾、 提交于 2019-12-12 02:18:51
问题 we're using Solr in our service. Recently, we're working on upgrading Solr to Solr6 & spatial4j-v0.6. But we faced that geospatial data cannot be fed, it's rejected, that has syntax like Circle(lat, lon, d=d) . It seems the syntax is dropped from Solr, but is it really dropped? Since when and why?? I couldn't find official statement that they dropped this syntax. As for now, I find an option format=LEGACY for the fieldType , then Solr accepting data. But, are there any recommended, proper way

Is there any loss of functionality if I use load balancer which does not communicate with zookeeper in solrcloud?

懵懂的女人 提交于 2019-12-12 02:18:34
问题 In a solr cloud setup, there are 8 solr nodes and 3 zookeeper nodes. There is one load balancer that gets all the indexing and search queries and distributes them to these 8 solr nodes in solr cloud. Before sending the solr query to particular solr node, it first checks if the service endpoint is active. Only if it is active then it sends the request to that particular solr node. Zookeeper handles the elections of leaders in shard. In this setup, zookeeper is not handling the query

Unauthorized dataimport-scheduler calls

泪湿孤枕 提交于 2019-12-12 02:15:41
问题 I'm trying to setup an dataimport-scheduler for solr, everything's working and the deltaimport url is called every 30 minutes, the only problem is I'm using jetty and activated authentication in jetty.xml so the dataimport_scheduler gets: <index update process> Response message Unauthorized (saw in log file), How can I solve this? 回答1: The DataImportScheduler needs to have access to your solr/dataimport url via http. The error you see in the log file is because of the authentication you added

Solr highlighting gives field/snippets with ANY term, instead of those that satisfy the query fully

爷,独闯天下 提交于 2019-12-12 02:13:53
问题 I'm using Solr 5.x, standard highlighter, and i'm getting snippets which matches even one of the search terms only, even if i indicate q.op=AND. I need ONLY the fields and snippets that matches ALL the terms (unless i say q.op=OR or just omit it), i.e. the field/snippet must satisfy the query. Solr does return the field/snippet that has all the terms, but also return many others. I'm using hl.fl=*, to get the only fields having the terms, and searching against the default field ('text'