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

推荐订阅源

Recent Announcements
Recent Announcements
J
Java Code Geeks
U
Unit 42
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
L
LangChain Blog
D
Docker
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
I
InfoQ
The Cloudflare Blog
小众软件
小众软件
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
P
Proofpoint News Feed
V
V2EX
月光博客
月光博客
Martin Fowler
Martin Fowler

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