0
我需要將以下Java代碼轉換爲C#,但我無法找到「SpanMultiTermQueryWrapper」的等效項。能否請你幫忙?Lucene .net +等效於C#中的SpanMultiTermQueryWrapper <MultiTermQuery>
FuzzyQuery firstNameQuery = new FuzzyQuery(new Term("text", firstName), 2);
FuzzyQuery lastNameQuery = new FuzzyQuery(new Term("text", lastName), 2);
SpanQuery[] clauses = new SpanQuery[] {
new SpanMultiTermQueryWrapper<MultiTermQuery>(firstNameQuery),
new SpanMultiTermQueryWrapper<MultiTermQuery>(lastNameQuery)
};
SpanNearQuery spanNearQuery = new SpanNearQuery(clauses, 3, false);
這是[那個問題]的重複(https://stackoverflow.com/questions/7933000/spanmultitermquerywrapper-in-lucene-net)。雖然沒有公認的答案,但有解決方案的提示。 –