solr

Lucene search results sort by custom order list (unique to each user)

本秂侑毒 提交于 2019-12-21 05:49:10
问题 I have authenticated users in my application who have access to a shared database of up to 500,000 items. Each of the users has their own public facing web site and needs the ability to prioritize the items on display (think upvote) on their own site. out of the 500,000 items they may only have up to 200 prioritized items, the order of the rest of the items is of less importance. Each of the users will prioritize the items differently. I initially asked a similar mysql question here Mysql

How to add a node to SolrCloud dynamically without SPLITSHARD?

好久不见. 提交于 2019-12-21 05:48:08
问题 I have setup SolrCloud with 4 shards. I added 8 nodes to the SolrCloud(4 Leaders and 4 Replicas). Each node is running in different machine. But later I identified that my data is growing more and more(daily 4 million files) so that my 4 shards are not sufficient. So, I want to add one more shard to this SolrCloud dynamically. When I add a new node that is created as replica,that is not what I want. When I search for this in Google, the answers I got is use Collection API SPLITSHARD . If I

Why can't solr 1.3.0 install using CentOS, plesk 9.2.1 and tomcat 5.5?

和自甴很熟 提交于 2019-12-21 05:38:09
问题 Ok I just setup a dedicated server for my client through his hosting provider. They have plesk installed on there (version 9.2.1) and one of the caveats of this dedicated server is that if i do anything OUTSIDE of the control panel (i.e. use SSH) for any task they do not guarantee support for that software component. That's fine because I would rather use the control panel to do it anyway since all i have to do is upload a war file to install the servlet. Here is the issue though, after

Solr proximity ordered vs unordered

不羁岁月 提交于 2019-12-21 05:27:04
问题 In Solr you can perform an ordered proximity search using syntax "word1 word2"~10 By ordered, I mean word1 will always come before word2 in the document. I would like to know if there is an easy way to perform an unordered proximity search, ie. word1 and word2 occur within 10 words of each other and it doesn't matter which comes first. One way to do this would be: "word1 word2"~10 OR "word2 word1"~10 The above will work but I'm looking for something simpler, if possible. 回答1: Slop means how

choose solr documents where one field is great than another

限于喜欢 提交于 2019-12-21 05:23:07
问题 What is the syntax for choosing solr documents where one field is great than another? More specifically, this is for two fields that contains dates. 回答1: Finding all docs where date_A>date_B is not supported. If you are only comparing data_A and date_B, then you could index another field date_a_greater_than_date_b:true for documents when date_A>date_B. 回答2: I found this question looking for the same thing. As it turns out, you can filter by field comparisons using a filter query, particularly

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

Solr搜索基础

对着背影说爱祢 提交于 2019-12-21 05:18:01
本例我们使用类库和代码均来自: http://www.cnblogs.com/TerryLiang/archive/2011/04/17/2018962.html 使用C#来模拟搜索、索引建立、删除、更新过程,Demo截图如下: 一、准备工作: 先准备一个实体类Product: public class Product { public string ID { get; set; } public string Name { get; set; } public String[] Features { get; set; } public float Price { get; set; } public int Popularity { get; set; } public bool InStock { get; set; } public DateTime Incubationdate_dt { get; set; } } 再为这个实体类创建一个反序列化类ProductDeserializer: class ProductDeserializer : IObjectDeserializer<Product> { public IEnumerable<Product> Deserialize(SolrDocumentList result) { foreach

Can sunspot search inside array?

不羁岁月 提交于 2019-12-21 05:04:32
问题 I have the next model with a array field: Class Invitation include Mongoid::Document include Mongoid::Timestamps::Created include Sunspot::Mongo field :recipients, :type => Array attr_accessible :recipients searchable do text :recipients do recipients.map { |recipient| recipient } end end end I have in my controller: def recipients @invitation = Invitation.find(params[:id]) @search = Invitation.search do |s| s.fulltext params[:search] s.with(:recipients, @invitation.recipients) end

Solr Filter Cache (FastLRUCache) takes too much memory and results in out of memory?

一曲冷凌霜 提交于 2019-12-21 04:55:23
问题 I have a Solr setup. One master and two slaves for replication. We have about 70 Millions documents in index. The slaves have 16 GBs of RAM. 10GBs for the OS and HD, 6GBs for Solr. But from time to time, the slaves are out of memory. When we downloaded the dump file just before it was out of memory, we could see that the class : org.apache.solr.util.ConcurrentLRUCache$Stats @ 0x6eac8fb88 is using up to 5Gb of memory. We are using filter caches extensively, it has a 93% hit ratio. And here's

Efficiently determining if a business is open or not based on store hours

自古美人都是妖i 提交于 2019-12-21 04:51:41
问题 Given a time (eg. currently 4:24pm on Tuesday), I'd like to be able to select all businesses that are currently open out of a set of businesses. I have the open and close times for every business for every day of the week Let's assume a business can open/close only on 00, 15, 30, 45 minute marks of each hour I'm assuming the same schedule each week. I am most interested in being able to quickly look up a set of businesses that is open at a certain time, not the space requirements of the data.