SpanQuery在Lucene中的用途是什么? [英] What is the purpose of SpanQuery in Lucene?

查看:67
本文介绍了SpanQuery在Lucene中的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以解释一下 SpanQuery 是什么,典型的用例是什么?

Can someone explain what a SpanQuery is, and what are typical use cases for it?

文档非常简洁,并且不断提到跨度"的概念,我不确定我是否知道.

The documentation is very laconic, and keeps mentioning the concept of "span", which I'm not quite sure I get.

推荐答案

跨度提供了

Spans provide a proximity search feature to Lucene. They are used to find multiple terms near each other, without requiring the terms to appear in a specified order. You can specify the terms that you want to find, and how close they must be. You can combine these span queries with each other or with other types of Lucene queries.

这篇关于SpanQuery在Lucene中的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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