Class InnerSearchRequest


  • public class InnerSearchRequest
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ExistsContainer createExists​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, java.lang.String attributeKey)
      Create an exists query
      MatchContainer createMatch​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType treatmentType, java.lang.String value, java.lang.String attributeKey)
      Create a match container
      AbstractContainer createMatchPhrase​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType treatmentType, java.lang.String attributeKey, java.lang.String value, boolean raw)
      Create a match phrase query
      MultiMatchContainer createMultiMatch​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute attribute)
      Create a multi match query
      BoolContainer createMultiTokenApproximatedBoolQuery​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, java.lang.String attributeKey, java.lang.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
      BoolContainer createMultiTokenDifferentBoolQuery​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType attributeTreatment, java.lang.String value, java.lang.String attributeKey, java.lang.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.
      java.lang.Integer getFrom()  
      java.util.Map<java.lang.String,​java.lang.String> getMetadata()  
      Query getQuery()  
      java.lang.Integer getSize()  
      java.util.List<java.lang.String> getSourceFilters()  
      void setFrom​(java.lang.Integer from)  
      void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)  
      void setQuery​(Query query)  
      void setSize​(java.lang.Integer size)  
      void setSourceFilters​(java.util.List<java.lang.String> sourceFilters)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InnerSearchRequest

        public InnerSearchRequest()
    • Method Detail

      • getFrom

        public java.lang.Integer getFrom()
      • setFrom

        public void setFrom​(java.lang.Integer from)
      • getSize

        public java.lang.Integer getSize()
      • setSize

        public void setSize​(java.lang.Integer size)
      • getQuery

        public Query getQuery()
      • setQuery

        public void setQuery​(Query query)
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
      • getSourceFilters

        public java.util.List<java.lang.String> getSourceFilters()
      • setSourceFilters

        public void setSourceFilters​(java.util.List<java.lang.String> sourceFilters)
      • createMatch

        public MatchContainer createMatch​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeTreatmentType treatmentType,
                                          java.lang.String value,
                                          java.lang.String attributeKey)
        Create a match container
        Parameters:
        treatmentType - the attribute treatment type
        attributeKey - the attribute key to be searched
        value - 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,
                                                   java.lang.String attributeKey,
                                                   java.lang.String value,
                                                   boolean raw)
        Create a match phrase query
        Parameters:
        treatmentType - the attribute treatment type
        attributeKey - the attribute key
        value - the value to be searched
        raw - 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,
                                                                   java.lang.String attributeKey,
                                                                   java.lang.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 type
        attributeKey - the attribute key
        values - 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,
                                                                java.lang.String value,
                                                                java.lang.String attributeKey,
                                                                java.lang.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.
        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,
                                            java.lang.String attributeKey)
        Create an exists query
        Parameters:
        attributeTreatment - the attribute treatment
        attributeKey - the attribute key to be checked
        Returns:
        an ExistsContainer