solr4

Solrj IOException occured when talking to server

穿精又带淫゛_ 提交于 2019-12-22 11:29:20
问题 I am using basic authentication. My solr version is 4.1. I can get query results but when I try to index documents I am getting the following error message: org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http://192.168.0.1:8983/solr/my_core at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:416) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:181) at org.apache.solr.client.solrj

Add and update data to Solr-4.3.0 using node module solr-client

末鹿安然 提交于 2019-12-22 08:15:31
问题 Let me take an example to explain the scenario. Suppose i have data indexed to Solr as : { "id" : "872919092", "filename" : "science_book", "path" : "/local/abc/" } Now i want to modify the data already indexed to Solr with id : 872919092 . I need to change the filename : science_book with filename : history_book and add new attribute topic : mughal to the same indexed data keeping path unchanged. I do not want to pass the path again as there is no change in that and already indexed to Solr.

What is the difference between Solr Replication and Solr Cloud?

佐手、 提交于 2019-12-21 05:19:08
问题 I'm supporting on rails project, which contain rails app and additional instance with Solr. My environment: rails 3.2.1, ruby 2.1.2, sunspot 2.1.0, Solr 4.1.6. Problem: Clould provider is not stable. I cannot use other cloud provider - it is customer's demand. Oftentimes search server goes on maintenance and web application stop working on production. So, I think about how to make 2 identical search servers instead of one, to make system more stable: if one server will be down, other will

Importing multi-valued field into Solr from mySQL using Solr Data Import Handler

对着背影说爱祢 提交于 2019-12-18 13:53:18
问题 We have the following two tables in our mySQL: mysql> describe comment; +--------------+--------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------+--------------+------+-----+---------+-------+ | id | int(11) | YES | | NULL | | | blogpost_id | int(11) | YES | | NULL | | | comment_text | varchar(256) | YES | | NULL | | +--------------+--------------+------+-----+---------+-------+ mysql> describe comment_tags; +------------+-------------+----

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=

Solr index vs stored

浪尽此生 提交于 2019-12-17 06:34:23
问题 I am a little confused as to what the behaviour of the index and stored attibutes of the Solr fields is. For example if I have the following in the Schema.xml <field name="test1" type="text" indexed="false" stored="false" required="false" /> Will the field test1 be not stored in the Solr document even if I create a document with that field in it and set a value to that field and commit the document to Solr. As I have the stored=false attribute, does it mean that the value of the field is lost

Get Solr Cores via Powershell

女生的网名这么多〃 提交于 2019-12-13 17:16:23
问题 Is there a way to use Powershell to get a list of Solr cores running in my local instance of Solr? I am running Solr 4.10.1, and am using Powershell 2.0. I would like to create a text file of core names: somecore1 somecore2 etc. I was able to get a list of my cores in XML format by hitting this URL: http://localhost:8983/solr/admin/cores The pertinent details of the return XML are: <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">2663</int> </lst> <str name=

Solr: where to find the Luke request handler

﹥>﹥吖頭↗ 提交于 2019-12-13 13:58:36
问题 I'm trying to get a list of all the fields, both static and dynamic, in my Solr index. Another SO answer suggested using the Luke Request Handler for this. It suggests finding the handler at this url: http://solr:8983/solr/admin/luke?numTerms=0 When I try this url on my server, however, I get a 404 error. The admin page for my core is here http://solr:8983/solr/#/mycore , so I also tried http://solr:8983/solr/#/mycore/admin/luke . This also gave me another 404. Does anyone know what I'm doing

Finding duplicate values in Solr

▼魔方 西西 提交于 2019-12-13 07:34:54
问题 Is there a way to construct a query such that it will identify/return documents where a particular field is duplicated. What I am looking for is the equivalent of this in SQL: SELECT content, count(*) FROM documents GROUP BY content ORDER BY count(*) DESC Basically, give me the documents where the content is the same. Everything I have found discusses how to toss out duplicates upon insertion, or how to get rid of them in the search results. I tried using FieldCollapsing, but I get the

Solrj DeleteByQuery is not working

点点圈 提交于 2019-12-13 07:13:53
问题 I have spent more than 3 hours of time to fix this issue, but unfortunately i am not able to fix it. Can anyone help me on this ? Here is the exception i am getting while running deletebyQuery using solrj while adding to solr is working. Note : deletebyQuery is not working but add is working. org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http://localhost:8090/solr/abc at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod