|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fao.geonet.kernel.search.LuceneUtils
public class LuceneUtils
Utilities for the Lucene library.
Constructor Summary | |
---|---|
LuceneUtils()
|
Method Summary | |
---|---|
static org.apache.lucene.search.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) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LuceneUtils()
Method Detail |
---|
public static org.apache.lucene.search.BooleanClause.Occur convertRequiredAndProhibitedToOccur(boolean required, boolean prohibited)
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.
required
- prohibited
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |