저는 lucene 세계로 들어서서 lucene 6.2.1에서 ConstantScoreRange 쿼리와 그 대안의 사용법을 이해하려고했습니다.ConstantScoreRangeQuery가 사용되지 않습니다.
인터넷 검색 후 나는 ConstantScoreRange이되지 않으며 나는이 링크에서 하나 NumericRangeQuery
또는 TermRangeQuery
가야 발견 : https://lucene.apache.org/core/2_9_4/api/core/deprecated-list.html
나는 현재 루씬 6.2.1 라이브러리를 사용하여이 코드 변경하려고 :
을 루씬 요구 사항은 데이터 BEI로NumericRangeQuery
을 사용하는 것입니다 내 이해 당으로 6.2.1
에 적합한 형식으로
public Query toQuery() {
return new ConstantScoreRangeQuery(getName(), lowValue, highValue, true, true);
}
ng는 ConstantScoreRangeQuery
으로 전달되었으며 숫자가 아니며 용어는 아닙니다.
API는 Lucene 6.2.1에서 더 이상 사용되지 않으므로 어떤 API가 올바른지 확실하지 않습니다.
도와주세요.
감사합니다, Abhishek 6.0로