solr

Solr/Lucene Scorer

微笑、不失礼 提交于 2019-12-17 10:46:05
问题 We are currently working on a proof-of-concept for a client using Solr and have been able to configure all the features they want except the scoring. Problem is that they want scores that make results fall in buckets: Bucket 1: exact match on category (score = 4) Bucket 2: exact match on name (score = 3) Bucket 3: partial match on category (score = 2) Bucket 4: partial match on name (score = 1) First thing we did was develop a custom similarity class that would return the correct score

WSO2 API Manager issues with solr

痴心易碎 提交于 2019-12-17 10:01:23
问题 I have setup a new setup of WSO2 API Manager integrated with WSO2 Identity Server. When starting the WSO2 API Manager I start getting the following error: SolrIndexWriter was not closed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!! {org.apache.solr.update.SolrIndexWriter} TID: [-1] [] [2017-03-07 10:38:31,745] ERROR {org.apache.solr.update.SolrIndexWriter} - Error closing IndexWriter {org.apache.solr.update.SolrIndexWriter} java.lang.NullPointerException at org.apache

How can I tell Solr to return the hit search terms per document?

白昼怎懂夜的黑 提交于 2019-12-17 09:47:13
问题 I have a question about queries in Solr. When I perform a query with multiple search terms that are all logically linked by OR (e.g. q=content:(foo OR bar OR foobar) ) than Solr returns a list of documents that all matches any of these terms. But what Solr does not return is which documents were hit by which term(s). So in the example above, what I want to know is which documents in my result list contains the term foo etc. Given this information I would be able to create a term-document

Is Solr 4.0 capable of using 'join" for multiple core?

两盒软妹~` 提交于 2019-12-17 09:31:26
问题 I notice Solr 4.0 has introduced 'join' feature for documents having relationships. this is great, however, I notice examples given by http://wiki.apache.org/solr/Join are for single core which all documents are in single index. Does anybody know if I can use 'join' for multiple core? 回答1: This comment says it's possible by using: {!join from=fromField to=toField fromIndex=fromCoreName}fromQuery I tried it myself, and here's a more detailed example: Have two cores brands {id,name} products

Search Engine - Lucene or Solr

时间秒杀一切 提交于 2019-12-17 08:12:28
问题 We need to integrate a search engine in our Product Catalog management software. the catalog is expected to have more than 4-5 mn. records with relational data spread over several tables. Our dev platform is Asp.Net 3.5 and we have done some pre-liminary work on Lucene, found it to be good. However, we just came to know of Solr and was looking for some practical tips to compare Lucene & Solr from implementation, timeline, regular maintenance, performance, features perspective. Any guidance or

Java开发环境之Solr

一个人想着一个人 提交于 2019-12-17 07:10:13
查看更多Java开发环境配置,请点击 《Java开发环境配置大全》 玖章:Solr安装教程 1)官网下载Solr安装包 http://lucene.apache.org/solr/downloads.html 2)安装Solr5以前版本 2.1 安装Solr 选择无中文目录,解压缩Sorl安装包即安装完成; 2.2 复制Solr的war包到Tomcat 将D:\solr\solr-4.10.3\solr-4.10.3\example\webapps路径下的war包放入到Tomcat下的D:\apache-tomcat-8.5.4-windows-x64\apache-tomcat-8.5.4\webapps里面,启动tomcat,自动解压缩该war包,解压之后就可以删除该war包; 2.3 复制Solr的jar包到Tomcat下的Sorl 复制D:\solr\solr-4.10.3\solr-4.10.3\example\lib\ext下的所有jar包,将它们放入到D:\apache-tomcat-8.5.4-windows-x64\apache-tomcat-8.5.4\webapps\solr\WEB-INF\lib里面; 复制D:\solr\solr-4.10.3\solr-4.10.3\example\resources下的log4j.properties,将它放入到D:

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

ElasticSearch, Sphinx, Lucene, Solr, Xapian. Which fits for which usage? [closed]

你离开我真会死。 提交于 2019-12-17 02:01:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm currently looking at other search methods rather than having a huge SQL query. I saw elasticsearch recently and played with whoosh

Choosing a stand-alone full-text search server: Sphinx or SOLR? [closed]

风流意气都作罢 提交于 2019-12-17 01:23:51
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm looking for a stand-alone full-text search server with the following properties: Must operate as a stand-alone server that can

Choosing a stand-alone full-text search server: Sphinx or SOLR? [closed]

一个人想着一个人 提交于 2019-12-17 01:23:26
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm looking for a stand-alone full-text search server with the following properties: Must operate as a stand-alone server that can