Hallo,

Some hints and help on how to create database with attribute indexes using REST are needed.

Im using the BaseX77-20130321.085136.war on JBoss7.1.1 and
want to create a database with attibute indexes using the REST interfaces.
Fresh install and Options haven't been changed.

Create of database over REST works fine, but there are not attribute indexes
(not in the info - see blow, and there are no atvl, atvr files neither)

http://127.0.0.1:8080/BaseX77-20130321.085136/rest?command=INFO
General Information
 Version: 7.7 beta
...
Options
...
ADDCACHE: false
ATTRINDEX: true
AUTOFLUSH: true
FTINDEX: false
INDEXSPLITSIZE: 0
PARSER: xml
STEMMING: false
TEXTINDEX: true
UPDINDEX: false
WRITEBACK: false
...

http://127.0.0.1:8080/BaseX77-20130321.085136/rest/austria20130328103351?command=INFO+DB
...
Database Properties
 Name: osmdb
 Size: 7407 MB
 Nodes: 355247222
 Documents: 588
...
Indexes
 Up-to-date: false
 Text Index: OFF
 Attribute Index: OFF
 Full-Text Index: OFF
 UPDINDEX: OFF
...

Why in INFO+DB the "Attribute Index: OFF" is displayed - i have never changed any option.
My assumtion was that with this options the attribute indixes will be created during upload.

curl -i -X PUT http://admin:admin@127.0.0.1:8080/BaseX77-20130321.085136/rest/osmdb
curl -i -X PUT -T "part1.osm" http://admin:admin@127.0.0.1:8080/BaseX77-20130321.085136/rest/osmdb/part1.osm
curl -i -X PUT -T "part2.osm" http://admin:admin@127.0.0.1:8080/BaseX77-20130321.085136/rest/osmdb/part2.osm
...
curl -i -X GET http://127.0.0.1:8080/BaseX77-20130321.085136/rest/osm?command=FLUSH   

Have tried to create the attribute index afterwards usint this but the creation runs into an "Out of Main Memory." error.
curl -i -X GET http://127.0.0.1:8080/BaseX77-20130321.085136/rest/osmdb?command=CREATE+INDEX+ATTRIBUTE

Some hints are welcome.

Thx for all help in advance,
  Willi