Class InnerSearchRequest
java.lang.Object
fr.paris.lutece.plugins.identitystore.service.indexer.elastic.search.model.inner.request.InnerSearchRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExists(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, String attributeKey) Create an exists querycreateMatch(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType treatmentType, String value, String attributeKey) Create a match containercreateMatchPhrase(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType treatmentType, String attributeKey, String value, boolean raw) Create a match phrase querycreateMultiMatch(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute attribute) Create a multi match querycreateMultiTokenApproximatedBoolQuery(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, String attributeKey, String[] values) Creates a particular match for approximated search on multi token fields (as first name), following the given rules: There is at least one searched value in the targeted field (can be fuzzy) There is only one fuzzy value at a time in the targeted field among the searched valuescreateMultiTokenDifferentBoolQuery(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, String value, String attributeKey, String[] splitSearchValue) Creates a particular match for different search on multi token fields (as first name), following the given rules: There is no match There is at least one searched value not matching any token There is more than one fuzzy match If one of these rules is matching, this is a difference.getFrom()getQuery()getSize()voidvoidsetMetadata(Map<String, String> metadata) voidvoidvoidsetSourceFilters(List<String> sourceFilters)
-
Constructor Details
-
InnerSearchRequest
public InnerSearchRequest()
-
-
Method Details
-
getFrom
-
setFrom
-
getSize
-
setSize
-
getQuery
-
setQuery
-
getMetadata
-
setMetadata
-
getSourceFilters
-
setSourceFilters
-
createMatch
public MatchContainer createMatch(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType treatmentType, String value, String attributeKey) Create a match container- Parameters:
treatmentType- the attribute treatment typeattributeKey- the attribute key to be searchedvalue- the value to be searched- Returns:
- a
MatchContainer
-
createMultiMatch
public MultiMatchContainer createMultiMatch(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute attribute) Create a multi match query- Parameters:
attribute- the searched attribute- Returns:
- a
MultiMatchContainer
-
createMatchPhrase
public AbstractContainer createMatchPhrase(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType treatmentType, String attributeKey, String value, boolean raw) Create a match phrase query- Parameters:
treatmentType- the attribute treatment typeattributeKey- the attribute keyvalue- the value to be searchedraw- if true the search is performed on the raw value instead of the tokenized value
-
createMultiTokenApproximatedBoolQuery
public BoolContainer createMultiTokenApproximatedBoolQuery(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, String attributeKey, String[] values) Creates a particular match for approximated search on multi token fields (as first name), following the given rules:- There is at least one searched value in the targeted field (can be fuzzy)
- There is only one fuzzy value at a time in the targeted field among the searched values
- Parameters:
attributeTreatment- the attribute treatment typeattributeKey- the attribute keyvalues- the list of values to be searched- Returns:
- a
BoolContainer
-
createMultiTokenDifferentBoolQuery
public BoolContainer createMultiTokenDifferentBoolQuery(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, String value, String attributeKey, String[] splitSearchValue) Creates a particular match for different search on multi token fields (as first name), following the given rules:- There is no match
- There is at least one searched value not matching any token
- There is more than one fuzzy match
- Parameters:
attributeTreatment- the attribute treatment type- Returns:
- a
BoolContainer
-
createExists
public ExistsContainer createExists(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, String attributeKey) Create an exists query- Parameters:
attributeTreatment- the attribute treatmentattributeKey- the attribute key to be checked- Returns:
- an
ExistsContainer
-