solr

Solr configuration for scored search

删除回忆录丶 提交于 2019-12-11 13:48:40
问题 I am trying to setup a Solr index for searching against a database of product information. For this purpose, I have populated a database of product details and used Solr 6.0.0. For a given product detail (title, brand, other keywords), I would like to know if there is a product in the database that closely matches the given details. I have started dataimport and created the index. However, when I search, the scores of the matching product are all the same in spite of the products listed being

Solr Data Import Properties - Doesnt exist

女生的网名这么多〃 提交于 2019-12-11 13:46:05
问题 I am trying to do a delta import via the DIH in Solr. When I tried to do it I get this in my effort log: INFO: Starting Delta Import Nov 18, 2012 12:48:46 PM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/dataimport params={clean=false&command=delta-import} status=0 QTime=1 Nov 18, 2012 12:48:46 PM org.apache.solr.handler.dataimport.SimplePropertiesWriter readIndexerProperties WARNING: Unable to read: dataimport.properties Nov 18, 2012 12:48:46 PM org.apache.solr.handler

SOLR query with multiple fields using Not Equals operator with OR returns wrong result

混江龙づ霸主 提交于 2019-12-11 13:43:02
问题 I am trying to perform a solr query with multiple query fields including a not equals operator. Example query: field1:abc OR -field2:def The problem is the query returns results for an AND operation instead of an OR , as if the query was: field1:abc AND -field2.def Both queries always return the same result. What is the correct syntax to achieve a correct OR result? I am currently using solr 3.5. Thanks 回答1: Maybe try the following: field1:abc OR (*:* -field2:def) 回答2: for field1:abc OR

hbase-indexer solr numFound different from hbase table rows size

99封情书 提交于 2019-12-11 13:40:00
问题 Recently my team is using hbase-indexer on CDH for indexing hbase table column to solr . When we deploy hbase-indexer server (which is called Key-Value Store Indexer) and begin testing. We found a situation that the rows size between hbase table and solr index is different : We used Phoenix to count hbase table rows: 0: jdbc:phoenix:slave1,slave2,slave3:2181> SELECT /*+ NO_INDEX */ COUNT(1) FROM C_PICRECORD; +------------------------------------------+ | COUNT(1) | +--------------------------

Solr - How to obtain multiple suggestions for a query

独自空忆成欢 提交于 2019-12-11 13:20:05
问题 In the configuration file solrconfig.xml , is there a parameter to adjust tolerance in order to have multiple suggestions even if the number of different letters between the query & the suggestion is large? In my solrconfig.xml suggestion configuration, I have : The spellcheck search component : <lst name="spellchecker"> <str name="name">default</str> <str name="field">title</str> <str name="classname">solr.DirectSolrSpellChecker</str> <!-- the spellcheck distance measure used, the default is

Filtering by distance vs. field value in Solr

泪湿孤枕 提交于 2019-12-11 13:16:23
问题 I have a schema which includes a maximum radius for a result to show up - for example, 50. I am able to calculate distance and filter by that without problem, but I really need to filter by that field, which changes from document to document. I've tried: fq={!frange l=0 u=radius_field}geodist() and fq={!func}geodist():[0 TO radius_field] to no effect. Is there any way to do this? I could filter client-side, worst case, but I figure there's somebody out there who has had the same use case. 回答1

in solr is there an way to fetch all results from a query something like start=0&rows=* or rows=all?

梦想的初衷 提交于 2019-12-11 13:07:04
问题 as far as I know this is not possible as the solr wiki. do you guys have any work around? 回答1: The only workaround is to set the rows value large enough to return all documents. However, I wouldn't recommend this for anything larger than about 1000 documents. If the number of documents you are fetching is large enough, you will run into memory or timeout issues with the XML you have to generate and parse. For example, if there are 2-3 million documents in your index, do you really want all of

Know indexing time for a document in Solr

半城伤御伤魂 提交于 2019-12-11 12:57:46
问题 Is it possible to know the indexing time of a document in solr. Like there is a implicit field for "score" which automatically gets added to a document, is there a field that stores value of indexing time? I need it to know the date when a document got indexed. Thanks 回答1: Solr does not automatically add a create date to documents. You could certainly index one with the document though, using Solr's DateField. In earlier versions or Solr ( < 4.2 ), there was a commented timestamp field in the

Nutch Solr dataimport handler?

会有一股神秘感。 提交于 2019-12-11 12:53:49
问题 I have setup a nutch crawler on top of hadoop. Below is software stack with their respective versions. apache-nutch-2.3.1 , hbase-0.98.8-hadoop2 Both on top of hadoop-2.5.2 . All process till data insertion into Hbase is working fine. The problem is when I try to invoke IndexingJob using class, org.apache.nutch.indexer.IndexingJob the command run successfully but no records got indexed in solr. Solr version is solr-5.3.1 . Below is the output of the command I ran : 15/12/15 18:26:32 INFO

Difference between solr core & solrj & spring-data-solr

♀尐吖头ヾ 提交于 2019-12-11 12:38:18
问题 I have been trying to learn solr for implementing search for one of the application. There are three different libraries that i always bump into solr-core , solrj , and spring-data-solr what is the basic difference between three three jar and which is supposed to be used with spring? Recently i tried using solrj and solr-core with spring and got an StackOverflowException here is my question that resulted in stack overflow.Unable to find a solution i tried removing solr-core dependency and