有人可以解释一下 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.
推荐答案跨度提供了 Lucene的邻近搜索功能.它们用于查找彼此靠近的多个术语,而不要求术语以指定的顺序出现.您可以指定要查找的术语,以及它们必须接近的程度.您可以将这些跨度查询彼此结合,也可以与其他类型的Lucene查询结合.
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中的用途是什么?
发布评论