[Xapian-discuss] indexing / searching hierarchies

Kapil Thangavelu kapil.foss at gmail.com
Fri Jan 4 19:21:56 GMT 2008


hi folks,
i'd like to index a set of documents arranged in a hierarchy, and perform
queries to retrieve subsets of documents based on their position within a
hierarchy...

ie

 /australia
   /mammals
      /marsupials
      /dingos
   /reptiles
      /snakes

so i'd like to search against a given sub hierarchy.

in systems like lucene, i'd index the full document path as a filed, and use
a prefix query when searching against a subset of the hierarchy.

is this sort of behavior possible with xapian, and how would one go about
it? are there any examples of this sort of behavior?

thanks,

kapil


More information about the Xapian-discuss mailing list