[Xapian-discuss] indexing / searching hierarchies

Jesper Krogh jesper at krogh.cc
Fri Jan 4 20:10:45 GMT 2008


Kapil Thangavelu skrev:
> 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?

The excact same way as you described lucene would handle it.

-- 
Jesper



More information about the Xapian-discuss mailing list