Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4707

[Console] Query values in caches doesn't support %

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • RHDG 8.3 CD
    • RHDG 8.2 CR1
    • Console
    • None

      After creating the schema, cache config and putting some data,
      Execute the query: from Book where title like "Book%"

      It will return "query: (unable to decode value)"

      It is working with curl: curl -v -G --data-urlencode "action=search" --data-urlencode "query=from Book where title like \"Book%\"" "http://127.0.0.1:11222/rest/v2/caches/bookCache" --digest -u admin:admin

      /**
       * @Indexed
       */
      message Book {
       /**
       * @Field(index=Index.YES, analyze=Analyze.YES, store=Store.NO)
       */
       optional int32 id = 1;
       optional string title = 2;
       optional string description = 3;
       optional int32 publicationYear = 4;
      }
      
      {
        "replicated-cache": {
          "mode": "SYNC",
          "encoding": {
            "key": {
              "media-type": "application/x-protostream"
            },
            "value": {
              "media-type": "application/x-protostream"
            }
          },
          "transaction": {
            "mode": "NONE"
          },
          "indexing": {
            "indexed-entities": [
              "Book"
            ],
            "enabled": true
          }
        }
      }
      
      {
        "_type": "Book",
        "id": 1,
        "title": "Book 1",
        "description": "Learn Book 1",
        "publicationYear": 1
      }
      
      {
        "_type": "Book",
        "id": 2,
        "title": "Book 2",
        "description": "Learn Book 2",
        "publicationYear": 2
      }
      
      {
        "_type": "Book",
        "id": 3,
        "title": "Book 3",
        "description": "Learn Book 3",
        "publicationYear": 3
      }
      

              karestig@redhat.com Katia Aresti
              dlovison@redhat.com Diego Lovison
              Diego Lovison Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: