Class BoolQuery
- java.lang.Object
-
- fr.paris.lutece.plugins.libraryelastic.business.search.AbstractSearchQuery
-
- fr.paris.lutece.plugins.libraryelastic.business.search.BoolQuery
-
public class BoolQuery extends AbstractSearchQuery
JSON object for representing a Bool Query in search request
-
-
Constructor Summary
Constructors Constructor Description BoolQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(AbstractSearchLeaf leaf)voidaddMust(AbstractSearchLeaf leaf)voidaddMustNot(AbstractSearchLeaf leaf)voidaddShould(AbstractSearchLeaf leaf)List<AbstractSearchLeaf>getFilter()List<AbstractSearchLeaf>getMust()List<AbstractSearchLeaf>getMustNot()StringgetNodeName()List<AbstractSearchLeaf>getShould()-
Methods inherited from class fr.paris.lutece.plugins.libraryelastic.business.search.AbstractSearchQuery
mapToNode
-
-
-
-
Method Detail
-
getNodeName
public String getNodeName()
-
getMust
public List<AbstractSearchLeaf> getMust()
- Returns:
- the listMust
-
addMust
public void addMust(AbstractSearchLeaf leaf)
-
getFilter
public List<AbstractSearchLeaf> getFilter()
- Returns:
- the listFilter
-
addFilter
public void addFilter(AbstractSearchLeaf leaf)
- Parameters:
leaf- to add to listFilter
-
getShould
public List<AbstractSearchLeaf> getShould()
- Returns:
- the listShould
-
addShould
public void addShould(AbstractSearchLeaf leaf)
- Parameters:
leaf- to add to listShould
-
getMustNot
public List<AbstractSearchLeaf> getMustNot()
- Returns:
- the listMustNot
-
addMustNot
public void addMustNot(AbstractSearchLeaf leaf)
- Parameters:
leaf- to add to listMustNot
-
-