solr

Many-to-one mapping within Apache Solr

拜拜、爱过 提交于 2019-12-23 12:37:18
问题 I am using Solr to index my database of reports. Reports can have text, submitter information, etc. This currently works and looks like this: "docs": [ { "Text": "Some Report Text" "ReportId": "1", "Date": "2013-08-09T14:59:28.147Z", "SubmitterId": "11111", "FirstName": "John", "LastName": "Doe", "_version_": 1444554112206110700 } ] The other thing a report can have is viewers (which is a one-to-many relationship between a single report and the viewers.) I want to be able to capture those

Solr cloud sharding

时光毁灭记忆、已成空白 提交于 2019-12-23 12:33:06
问题 Currently I have a zookeeper instance controlling replication on 3 servers. It is the solr integrated zookeeper. It works well in my web based application. I have a new requirement which will require sharding in the cloud and I am not sure how to implement it. Basically I want to separate the data which can only be updated by me, shard 1, from the data that users can update, shard 2. From time to time I will be completely replacing the data directory in shard 1 - but I don't want to disturb

Solr Cloud with Basic Authentication fails - Unauthorized 401 Error from Solr Admin

淺唱寂寞╮ 提交于 2019-12-23 12:26:44
问题 I have setup SolrCloud using Solr 6.6.0 and Zookeeper 3.4.10. I am trying to setup Basic Authentication as per latest documentation at https://cwiki.apache.org/confluence/display/solr/Basic+Authentication+Plugin Issue is that the authentication does not work. After setup, I am unable to access Solr Admin console as it does not accept the username/password that was setup. Below are the Steps with detailed info: 1) Started Zookeeper listening on port 2181 2) Started Solr cloud mode connecting

Solr: Can't search for numbers mixed with characters

亡梦爱人 提交于 2019-12-23 11:59:34
问题 I have some items in my index (Solr. 4.4), which contain names like Foobar 135g , where the 135g refers to some weights. Searching for foobar or foobar 135 does work, but when I try to search for the exact phrase foobar 135g , nothing is found. I analysed the query inside the solr admin panel "Analysis". Here everything looks good. The fields are indexed correctly, the query is splitted correctly, and I get hits (indicated by this purple background on the tokens). But there has to be an issue

Sitecore Solr remove versions from index

天涯浪子 提交于 2019-12-23 08:29:31
问题 I’m using Sitecore 7 and the Solr Search provider. I currently have the site setup to update the search index when publishing an item. I’ve noticed that when the CMS author creates different versions of an item and then submits these into the index the previous version of the item is not removed from the index, so the index contains multiple versions of the same Sitecore item. Does anyone know of any settings, that I can change, to make sure that the previous version is removed from the index

SOLR: Inconsistencies using splitBy to populate a multi valued field

烈酒焚心 提交于 2019-12-23 05:58:40
问题 I'm having trouble using the splitBy functionality to populate a multi valued field from a pipe delimited datasource. My implementation seems to partially work for one of the field and does not the work for the the other field. An example of my implementation below. I have a db view with following data: recordId relist dbaName 1 PA21|MD29 The Hong Kong Dragon|The Peeled Apple My config: <dataConfig> <dataSource name="jdbc" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:

Using ComplexPhraseQueryParser in Datastax search

允我心安 提交于 2019-12-23 05:32:11
问题 I want to perform complex searches in Datastax search. On solr wiki page, it is suggested to use a complex phrase query parser to do the work (https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser) However, the syntax did not work - so it seems i need to plug it in additionally. I am using Datastax enterprise 4.5. Is there any particular procedure to plug in the parser - maybe put it in particular location and make specific changes to get it

Dismax Request Handler

天大地大妈咪最大 提交于 2019-12-23 05:29:36
问题 I'm using solr to search a set of data by name (e.g. "Dan" or "Joe Smith"). I'd like to return the results specified by the query (edit: with a wildcard on the end) in an order specified by another indexed field double_score (e.g. 10.0 or 72.3). I currently have the following which fails to work at all: <!-- Note that the default search is on the field name --> <requestHandler name="/scoresearch" class="solr.SearchHandler" default="true"> <!-- <lst name="invariants"> <str name="q">{!boost b

SOLR query comma separated fields without order

ⅰ亾dé卋堺 提交于 2019-12-23 05:24:05
问题 I have a field which has comma separated values for e.g JSON,AngularJS and another as AngularJS,JSON and other having JSON,HTML only. Now i have been trying to query SOLR using fq=field:( JSON AngularJS*), but it returns only the record with JSON before AngularJS. How can i query SOLR so that it returns both the records having JSON and AngularJS but not considering the order. Attaching SOLR Analysis for the field: Query formed: http://localhost:8983/solr/my_core/select?fq=field:(JSON%20AND

Adding my own classes to solr 5.3.1

倾然丶 夕夏残阳落幕 提交于 2019-12-23 05:21:51
问题 I want to update my solr based application from Solr 4 to Solr 5.3.1 I just found out, since Solr 5.2 it is no longer possible to run Solr as a WebApp. So instead of packaging the project (with solr as Maven dependencies) as a WAR and running it with a separate Jetty, now I need to put my source code into the Solr. But how can i do this? I tried to package my project as a JAR and put it in the folder /solr-5.3.1/contrib/mySearchApplication/lib/mysearch.jar and I added this path in solrconfig