Lucene.Net短语计数 [英] Lucene.Net phrase count

查看:99
本文介绍了Lucene.Net短语计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与Lucene.net一样,计算满足短语的次数(不是 word "something",即 phrase 文本中的你好吗" )?

As with Lucene.net count how many times the phrase is met (not the word "something", namely the phrase "Hi how are you") in the text?

对不起,我的英语.

推荐答案

一种方法是使用您基本上可以获得每个查询词的排名,并计算它们在文档中与查询中相同顺序出现的次数.

You basically get the positions for each of your query terms, and count the number of times they occur in the same order in your Document as they were in your Query.

这篇关于Lucene.Net短语计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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