MENU
      SearchScope

        SearchScope


        Article summary

        Available in Classic

        These are limited search settings.

        Syntax

        The syntax is as follows.

        private String scope_target;
        private Object option;
        Java

        Field

        The following describes the fields.

        FieldTypeRequiredDescription
        scope_targetStringRequiredSpecify limited search target
        optionObjectOptionalObject as a map to set up a limited search
        • key: Select a limited search method
        • value: Set values based on the limited search method
        • key option types
          • exist, nexist: Limit search results to document attributes where the specified value exists
          • range, nrange: Limit search results to document attributes where values in a specified range exist (gte:lte)
          • gte, gt, lte, lt: Limit search results to document attributes where values in a specified range exist
            • gte: greater than or equal to
            • gt: greater than
            • lte: less than or equal to
            • lt: less than
          • bit, nbit: Limit search results to documents that are true or false by computing the value of specified bits and document attributes
          • bitmask: Limit search results to documents where the value of a specified bit and a document attribute are true by performing a bitmask operation

        Examples

        The following is a sample search request.

        {
          "search": {
            "price": {
              "main": {
                "query": "keyboard"
              }
            }
          },
          "scope": {
          "dp_price": {
            "range": ["1000","5000"]
          },
          "dp_color": {
            "exist": "black"
            }
          }
        }
        Plain text

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.