| java.lang.Object org.fao.geonet.kernel.search.LuceneUtils
LuceneUtils | public class LuceneUtils (Code) | | Utilities for the Lucene library.
|
Method Summary | |
public static BooleanClause.Occur | convertRequiredAndProhibitedToOccur(boolean required, boolean prohibited) As of Lucene 1.9, the use of BooleanQuery.add(Query, boolean, boolean) was deprecated
and replaced by BooleanQuery.add(Query, BooleanClause.Occur) . |
convertRequiredAndProhibitedToOccur | public static BooleanClause.Occur convertRequiredAndProhibitedToOccur(boolean required, boolean prohibited)(Code) | | As of Lucene 1.9, the use of BooleanQuery.add(Query, boolean, boolean) was deprecated
and replaced by BooleanQuery.add(Query, BooleanClause.Occur) . This utility method
converts the old pair of booleans to the corresponding BooleanClause.Occur value.
Parameters: required - Parameters: prohibited - BooleanClause.Occur |
|
|