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

推荐订阅源

量子位
D
Docker
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
美团技术团队
博客园 - 叶小钗
I
InfoQ
Jina AI
Jina AI
博客园 - 司徒正美
雷峰网
雷峰网
B
Blog
Y
Y Combinator Blog
A
About on SuperTechFans
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Announcements
Recent Announcements
V
V2EX
N
Netflix TechBlog - Medium

博客园 - 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 );
            }
        }