You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Paul Brown <pj...@cs.nott.ac.uk> on 2003/03/22 13:59:35 UTC
Add Indexer using API
Does anyone know how to use the Xindice/XML:DB Java API to create
another index for a collection?
I have the xml file:
<keywords>
<subject_keywords>
<keyword value="zaa"/>
<keyword value="aaa"/>
<keyword value="aza"/>
</subject_keywords>
...
</keywords>
I would like to create an index on the 'value' attribute content for
fast search and retrieval from an xpath query:
"//keywords[subject_keywords/keyword[@value='aza']]", and thus an
indexing on the attribute would speed up the search. I can do this from
the command line using:
xindice add_indexer -c /db/keywords/subject_keywords -n keywordindex -p
keyword@value
Any ideas?