RavenDB快速字符串搜索 [英] RavenDB fast substring search

查看:158
本文介绍了RavenDB快速字符串搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也许串序列万亿美元。我在寻找一个快速的字符串搜索。



我创建了一个索引。当我试图得到一些结果( X => x.StartWith ),它需要一颗300万对象数据库上约2秒。



这可能要花多少时间500亿个对象?



时有可能有RavenDB搜索更快?



 商店。 DatabaseCommands.PutIndex(KeyPhraseInfoByWord,新Raven.Client.Indexes.IndexDefinitionBuilder< keyPhraseInfo> 
{
=地图= wordStats>从keyPhraseInfo在keyPhraseInfoCollection
选择新的{} keyPhraseInfo.Key,
=分析仪
{
{X => x.Key,SimpleAnalyzer}
}
});


解决方案

Nier0,
你可以做的真快使用RavenDB NGRAM搜索,是的。
请参阅: https://gist.github.com/1669767


I have perhaps trillions of string sequences. I'm looking for a fast substring search.

I've created an index. When I am trying to get some results( x => x.StartWith), it takes about 2 sec on a 3 million object database.

How much time it might take on 500 million objects?

Is it possible to have RavenDB search faster?

 store.DatabaseCommands.PutIndex("KeyPhraseInfoByWord", new Raven.Client.Indexes.IndexDefinitionBuilder<KeyPhraseInfo>
   {
    Map = wordStats => from keyPhraseInfo in keyPhraseInfoCollection 
                   select new { keyPhraseInfo.Key },
    Analyzers =
        {
            { x => x.Key, "SimpleAnalyzer"}
        }
    });

解决方案

Nier0, You can do really fast NGram search using RavenDB, yes. See: https://gist.github.com/1669767

这篇关于RavenDB快速字符串搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆