Deleted keys come back

mtakahashi-ivi mtakahashi at yourinventit.com
Tue Oct 13 10:23:19 EDT 2015


>Can you tell us more about that? How do siblings affect the results of
search in your case?
When I checked last year, search result and stats result includes sibling
object.
Search result and stats count includes sibling object. It's complicated to
handle with the result.

$ curl -sS
http://<host>:<port>/types/ssdms_test/buckets/unit_test_bucket1/keys/bkey1_1
Siblings:
3HIxQ2pcu0YMjekbtIuixb
3JonReTfLC3GvG534WS21i
63t3g19KaCLu7JFLMxHxJJ

$ curl -sS
'http://<host>:<port>/search/query/unit_test_bucket1_index?wt=json&q=key1_s%3aval1_1&rows=50&stats=true&stats.field=key3_i'
| jq .

{
  "responseHeader": {
    "status": 0,
    "QTime": 7,
    "params": {
      "q": "key1_s:val1_1",
      "shards": "192.168.1.235:8093/internal_solr/unit_test_bucket1_index",
      "stats": "true",
      "192.168.1.235:8093": "_yz_pn:63 OR _yz_pn:61 OR _yz_pn:59 OR
_yz_pn:57 OR _yz_pn:55 OR _yz_pn:53 OR _yz_pn:51 OR _yz_pn:49 OR _yz_pn:47
OR _yz_pn:45 OR _yz_pn:43 OR _yz_pn:41 OR _yz_pn:39 OR _yz_pn:37 OR
_yz_pn:35 OR _yz_pn:33 OR _yz_pn:31 OR _yz_pn:29 OR _yz_pn:27 OR _yz_pn:25
OR _yz_pn:23 OR _yz_pn:21 OR _yz_pn:19 OR _yz_pn:17 OR _yz_pn:15 OR
_yz_pn:13 OR _yz_pn:11 OR _yz_pn:9 OR _yz_pn:7 OR _yz_pn:5 OR _yz_pn:3 OR
_yz_pn:1",
      "rows": "50",
      "wt": "json",
      "stats.field": "key3_i" 
    }
  },
  "response": {
    "numFound": 3,
    "start": 0,
    "maxScore": 4.149883,
    "docs": [
      {
        "key3_i": 1,
        "key2_s": "val_2",
        "key1_s": "val1_1",
        "_yz_id":
"1*ssdms_test*unit_test_bucket1*bkey1_1*61*3HIxQ2pcu0YMjekbtIuixb",
        "_yz_rk": "bkey1_1",
        "_yz_rt": "ssdms_test",
        "_yz_rb": "unit_test_bucket1" 
      },
      {
        "key3_i": 1,
        "key2_s": "val_2",
        "key1_s": "val1_1",
        "_yz_id":
"1*ssdms_test*unit_test_bucket1*bkey1_1*61*3JonReTfLC3GvG534WS21i",
        "_yz_rk": "bkey1_1",
        "_yz_rt": "ssdms_test",
        "_yz_rb": "unit_test_bucket1" 
      },
      {
        "key3_i": 1,
        "key2_s": "val_2",
        "key1_s": "val1_1",
        "_yz_id":
"1*ssdms_test*unit_test_bucket1*bkey1_1*61*63t3g19KaCLu7JFLMxHxJJ",
        "_yz_rk": "bkey1_1",
        "_yz_rt": "ssdms_test",
        "_yz_rb": "unit_test_bucket1" 
      }
    ]
  },
  "stats": {
    "stats_fields": {
      "key3_i": {
        "min": 1,
        "max": 1,
        "count": 3,
        "missing": 0,
        "sum": 3,
        "sumOfSquares": 3,
        "mean": 1,
        "stddev": 0,
        "facets": {}
      }
    }
  }
}





--
View this message in context: http://riak-users.197444.n3.nabble.com/Deleted-keys-come-back-tp4033536p4033580.html
Sent from the Riak Users mailing list archive at Nabble.com.




More information about the riak-users mailing list