我在使用OriteDB Lucene索引时遇到问题。当我使用它进行查询时,它返回一个不完整的数据集。以下是示例:
create class Foo extends V
create property Foo.text string
create index Foo.text_spanish on Foo(text) fulltext engine lucene metadata
{ "analyzer": "org.apache.lucene.analysis.es.SpanishAnalyzer",
"index": "org.apache.lucene.analysis.es.SpanishAnalyzer",
"query": "org.apache.lucene.analysis.es.SpanishAnalyzer",
"allowLeadingWildcard": true
}
insert into Foo (text) values ("axxx")
insert into Foo (text) values ("áxxx")
insert into Foo (text) values ("xxxa")
insert into Foo (text) values ("xxxá")
insert into Foo (text) values ("xxaxx")
insert into Foo (text) values ("xxáxx")
select from Foo where text lucene "*a*"
我得到:
xxáxx
xxaxx
xxxa
axxx
它错过了
áxxx
xxxá
如果我运行这个:
select from Foo where text lucene "*á*"
xxx
xxx
错过了剩下的。即使在这种情况下,它也应该显示xxxx。
我做错了什么?