7
Xindice command

Xindice command. collections List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n collection_name Delete collection: xindiceadmin

Embed Size (px)

Citation preview

Page 1: Xindice command. collections List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n collection_name Delete collection: xindiceadmin

Xindice command

Page 2: Xindice command. collections List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n collection_name Delete collection: xindiceadmin

collections

List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n

collection_name Delete collection: xindiceadmin dc –c /db/coll

ection_name

Page 3: Xindice command. collections List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n collection_name Delete collection: xindiceadmin

exercise

Create collections: /db/data/products/flowers, /db/data/products/clothes, /db/data/products/electronics.

Create collections: /db/data/customers/vip, /db/data/customers/regular, /db/data/customers/potential.

Page 4: Xindice command. collections List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n collection_name Delete collection: xindiceadmin

documents

List documents: xindice ld –c /db/… Add documet: xindice ad –c /db/.. –f file –n k

ey Retrieve document: xindice rd –c /db/.. –n ke

y or xindice rd –c /db/.. –n key –f filename Delete document: xindice dd –c /db.. –n key

Page 5: Xindice command. collections List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n collection_name Delete collection: xindiceadmin

documents

Add all files on a directory: xindice ad –c /db/…. -f directory

Add all files on a directory with an extension of “.xml”: xindice ad –c /db/… -f directory –e xml

Page 6: Xindice command. collections List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n collection_name Delete collection: xindiceadmin

Import & export

Import a directory structure: xindiceadmin import -c /db/… -f directory (-e extension)

Export a collection to a directory: xindice export –c /db/… -f directory

Page 7: Xindice command. collections List collections: xindice lc –c /db/… Add collections: xindiceadmin ac –c /db/... –n collection_name Delete collection: xindiceadmin