orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Hash index being reported as SBTree

Open thejjmiller opened this issue 11 years ago • 2 comments

http://localhost:2480/database/{DbName} is returning Hash indexes as SBTree indexes. Is this an actual problem with Hash indexes are not being created problem is is it a problem with the GET API?

{
    "name": "idx_test",
    "configuration": {
        "@type": "d",
        "@version": 0,
        "type": "NOTUNIQUE_HASH_INDEX",
        "name": "idx_test",
        "indexVersion": 2,
        "clusters": [],
        "mapRid": "#1:15",
        "algorithm": "SBTREE",
        "valueContainerAlgorithm": "SBTREEBONSAISET",
        "metadata": {
            "@type": "d",
            "@version": 0,
            "durableInNonTxMode": true,
            "trackMode": "FULL"
        }
    }
}

thejjmiller avatar Nov 10 '15 03:11 thejjmiller

hi @thejjmiller
the index is created as Hash not sbtree. You can see it by type NOTUNIQUE_HASH_INDEX. I think is an issue of the api

wolf4ood avatar Nov 11 '15 08:11 wolf4ood

@thejjmiller

tested in OrientDB 2.2.2 and the issue has been fixed

Thanks

wolf4ood avatar Jun 15 '16 16:06 wolf4ood