solr

What would be the motivation to integrate mongodb with solr [closed]

∥☆過路亽.° 提交于 2019-12-21 04:34:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . Mongodb is a nosql db and any query can be run on it except full text search since it reduces the overall performance. Solr is a search engine to search. When we integrate these two together then dont we have the same data in both systems? So if we already going to store the

How to OR null value in Apache Solr query?

走远了吗. 提交于 2019-12-21 03:56:15
问题 The last option to solve this for me was to ask StackOverflow. I am trying to create a Solr query to get documents that have a specific value on one of its fields OR that does not have a value... Theorically, this query should have worked. Here is some information: Query: (name: john) --> Result count: 15383 //Johns Query: (name: {* TO *}) --> Result count: 61013 //People that have a name Query: -(name: {* TO *}) --> Result count: 216888 //People that do not have a name Now, when I use first

How do I create a solr core with the data from an existing one?

帅比萌擦擦* 提交于 2019-12-21 03:52:33
问题 Solr 1.4 Enterprise Search Server recommends doing large updates on a copy of the core, and then swapping it in for the main core. I am following these steps: Create prep core: http://localhost:8983/solr/admin/cores?action=CREATE&name=prep&instanceDir=main Perform index update, then commit/optimize on prep core. Swap main and prep core: http://localhost:8983/solr/admin/cores?action=SWAP&core=main&other=prep Unload prep core: http://localhost:8983/solr/admin/cores?action=UNLOAD&core=prep The

Using Solr with MySQL

£可爱£侵袭症+ 提交于 2019-12-21 03:45:32
问题 I was browsing some questions here concerning MySQL and faceted searches and I saw one response that suggested the use of Solr. In my MySQL database, I have many tables for products, suppliers, messages, users, etc - all interconnected. How would I use Solr to do faceted searches for products? From what I understand, I'd have to keep feeding Solr product data from MySQL - but how do I deal with indexing the data? Do index right after adding a new product? Do I batch index? How do I deal with

How can I set JVM-Memory in Solr-5.0

一曲冷凌霜 提交于 2019-12-21 03:30:14
问题 How can I increase heap space memory in Solr-5.0? I just want to set minimum and maximum Heap space memory of Solr. 回答1: This info is in the WIKI: https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production#TakingSolrtoProduction-MemoryandGCSettings SOLR_JAVA_MEM="-Xms10g -Xmx10g" 回答2: How about using -m option ./solr restart -m 1g From ./solr --help - -m Sets the min (-Xms) and max (-Xmx) heap size for the JVM, such as: -m 4g results in: -Xms4g -Xmx4g; by default, this script

how to use solr with mysql and php?

老子叫甜甜 提交于 2019-12-21 02:44:13
问题 i read about how i could use solr to search in my threads but i dont quite understand how it works and i cant find any articles explaining this for a total beginner. could someone explain briefly how solr works and how it communicate with mysql and php? 回答1: First take a look at this tutorial. With solr you will need to have an xml (or csv) document which will be pushed to solr (process is called updating; indexing is the process to make fields available for search). The format of xml is sth.

Solr identifying words as spelled correctly when they're not

戏子无情 提交于 2019-12-21 02:36:10
问题 I'm following along with the Solr SpellCheck Component documentation, but can't seem to get this to work. The spell checking components seems to be running, but Solr is identifying the word as correctly spelled when it's not. How can I fix this? Example search query results for 'applicatoin' are... <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">0</int> <lst name="params"> <str name="spellcheck">true</str> <str name="q">applicatoin</str> </lst> </lst>

Why is this simple Solr highlighting attempt failing?

最后都变了- 提交于 2019-12-21 02:22:08
问题 I've read the Solr highlighting wiki document several times, searched everywhere, but cannot get even basic highlighting to work with my Solr installation. I am running Solr 3.5 on the demo Jetty 6.1 server. I have indexed 250K documents, and am able to search them just fine. Other than configuring my document field definitions, most of the Solr configuration is "stock," although I have temporarily commented out the solrconfig.xml's "Highlighting defaults" to make sure they aren't causing

Solr新特性【4.x,5.x,6.x,7.x】

ぃ、小莉子 提交于 2019-12-21 01:49:50
一.Solr4.x新特性   1.近实时搜索     Solr的近实时搜索【Near Real-Time,NRT】功能实现了文档添加到搜索的快速进行,以应对搜索快速变化的数据。   2.原子更新与乐观并发     原子更新功能允许客户端应用对已有文档上进行添加、更新、删除和对字段增值等操作,而且无需重新发送整个文档。当存在两个请求同时更改同一个文档时,Solr使用乐观机制防止不兼容的更新。简单来说就是Solr使用特殊的_version_版本字段来确保文档的安全更新语义。两个请求中后提交更改的请求将会获得一个过时的版本【这个版本是两请求都未执行之前的版本,然后先提交的请求会执行并修改版本号】,所以会执行失败【请求执行之前需要先确认版本,只有版本一致才可以执行请求】。   3.实时GET功能     无论文档是否已经提交到索引,使用实时GET功能都可以使用唯一标识符检索最新版本的索引【事务日志提供支撑】。这与使用行键【row key】检索数据的Cassandra的键-值存储方式类似。在Solr4之前,除非文档提交到Lucene的索引,否则是检索不出来的。且提交很花费时间,影响查询性能。   4.使用事务日志实现写持续性     当文档发送到Solr进行索引时,会被写到事务日志中,以防止服务器发生故障造成数据丢失。Solr的事务日志处在客户端应用与Lucene索引之间

Boosting boolean fields in Solr

落花浮王杯 提交于 2019-12-21 01:28:13
问题 Is it possible to boost boolean fields in Solr so that they receive a higher score? We've got an index which looks a bit like this: document_id title description keywords is_reviewed When searching, documents that have been reviewed (ie. is_reviewed = true) should be weighted more heavily than those that haven't, rather than exclude them completely. Using is_review:true^100 doesn't seem to work, and excludes unreviewed items instead of just giving them a lower weighting. If there a different