我正在开发一个.Net Core网络应用程序与RediSearch。以前我使用过应用程序中的内存缓存,但我必须将其更改为分布式缓存。问题是,web应用程序有非常复杂的搜索,必须从缓存处理。我想我只是将缓存移到Redis,并且必须在Linq中进行筛选,与应用程序中的内存缓存一样,但是如果您在Redis中有500K+条目,那么使用同一个主机上的一个停靠映像需要大约4秒的时间将这些条目加载到一个变量中,所以这不是一种选择。
我现在已经用RediSearch实现了NRediSearch,它似乎很好地处理了负载。我现在的问题是,我有多个位置字段的搜索。
示例
class Item{
public
我有以下MongoDB文档,我想在全文搜索中匹配每个属性时分配分数
@Document
public class User {
// there would be multiple industries and few or all could match, if any of the substring matched score is 40
private String industries;
// if there is any matching substring score is 10
private String regions;
//
我正在尝试在我的Rails应用程序中实现pg_search,并且想知道是否有一种方法可以获得匹配搜索查询的列?索引表内容由所有可搜索的列字段组成。
例如:
+-----------+----------+
| Firstname | Lastname |
+-----------+----------+
| John | Doe |
| Jane | Doe |
+-----------+----------+
将导致:
+----------+
| Content |
+----------+
| John Doe |
| Jane Doe |
+-