xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Brown" <pjb...@cs.nott.ac.uk>
Subject Add Indexer using API
Date Sat, 22 Mar 2003 12:59:35 GMT
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?




Mime
View raw message