惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
IT之家
IT之家
M
MIT News - Artificial intelligence
博客园_首页
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
B
Blog
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
L
LangChain Blog
Last Week in AI
Last Week in AI
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
F
Fortinet All Blogs
罗磊的独立博客
博客园 - 叶小钗
H
Help Net Security
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The Last Watchdog
The Last Watchdog
S
Security @ Cisco Blogs
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
月光博客
月光博客
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - 司徒正美
S
Schneier on Security
V
Vulnerabilities – Threatpost
T
Troy Hunt's Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
博客园 - 【当耐特】
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Forbes - Security
Forbes - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
雷峰网
雷峰网
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Secure Thoughts
V
Visual Studio Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
T
Tailwind CSS Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
The GitHub Blog
The GitHub Blog

博客园 - yuejianjun

搜索结果点击情况 进行加权 java httpURL连接远程服务器并返回数据(httpurlconnection)(转) 实体类 topN topN 堆排序 (int 类型) 过滤词 Lucene的评分(score) 位图求交集 位运算包含功能 页面抓取匹配时,万恶的 , , 要先替换掉为空,出现匹配有问题,都是这个引起的 探索推荐引擎内部的秘密,第 1 部分: 推荐引擎初探 深度用户行为 多维度深入分析笔记 lucene 搜索学习笔记 - OK 中文自动摘要提取 常用的vs编码 快捷键 Lucene中的堆(Heap)[ScorerDocQueue,TopScoreDocCollector] lucene 大数据量 快速 排序 T a s k 搜 索 ( L u c e n e ) l u c e n e 创 建 修 改 删 除 索 引 集中、分布式搜索引擎的4种设计方案 ThreadPool 使用
lucene fenlei
yuejianjun · 2011-10-14 · via 博客园 - yuejianjun

2011-10-14 18:24  yuejianjun  阅读(187)  评论()    收藏  举报

        

private StringIndex[] stringIndex_Group;

        

private bool isGroup = false;
        public string[] strType ;
        public   int[][] GroupInt;
        public string[][] GroupString;

 public override void  Collect(int doc) :     

 if (isGroup)
                {
                    for (int i = 0; i < strType.Length; i++)
                    {
                        GroupInt[i][stringIndex_Group[i].order[doc]]++; //GroupInt[stringIndex_Group.order[doc]]++; 
                    }

                } 

         public override void  SetNextReader(IndexReader reader, int base_Renamed)

        {
            docBase = base_Renamed;
            if (isGroup)
            { 
                int len;
                GroupInt = new int[strType.Length][];
                GroupString = new string[strType.Length][];
                stringIndex_Group = new StringIndex[strType.Length];
                for (int i = 0; i < strType.Length; i++)
                {
                    stringIndex_Group[i] = SingletonFieldCache_StringIndex_Group.GetInstance(reader, strType[i]);
                    len=stringIndex_Group[i].lookup.Length;
                    GroupInt[i] = new int[len];
                    GroupString[i]= stringIndex_Group[i].lookup;
                }
            }
        }

        public static TopScoreDocCollector create(int numHits, bool docsScoredInOrder, bool isGroup, string[] strType)

        {
           
            if (docsScoredInOrder)
            {
                return new InOrderTopScoreDocCollector(numHits);
            }
            else
            {
                return new OutOfOrderTopScoreDocCollector(numHits, isGroup,strType );
            }
        }