java.lang.Object
fr.paris.lutece.plugins.identitystore.service.indexer.elastic.search.model.inner.request.InnerSearchRequest

public class InnerSearchRequest extends Object
  • Constructor Details

    • InnerSearchRequest

      public InnerSearchRequest()
  • Method Details

    • getFrom

      public Integer getFrom()
    • setFrom

      public void setFrom(Integer from)
    • getSize

      public Integer getSize()
    • setSize

      public void setSize(Integer size)
    • getQuery

      public Query getQuery()
    • setQuery

      public void setQuery(Query query)
    • getMetadata

      public Map<String,String> getMetadata()
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
    • getSourceFilters

      public List<String> getSourceFilters()
    • setSourceFilters

      public void setSourceFilters(List<String> sourceFilters)
    • 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 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, String attributeKey, 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, 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 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, 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.
      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 treatment
      attributeKey - the attribute key to be checked
      Returns:
      an ExistsContainer