lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Hierarchical Documents
Date Tue, 23 Aug 2005 09:34:16 GMT

On Aug 22, 2005, at 2:27 AM, Rohit Lodha wrote:
> Currently, Documents cannot contain other documents. I have a Graph of
> Objects (Documents) to search in.
> I could flatten them and search but...
> Is there any nice way to do it?

I have used a technique of encoding a hierarchical path (like "/ 
category/subcategory/sub-subcategory") into an indexed untokenized  
field.  This allows for flat or hierarchical queries.  A hierarchical  
PrefixQuery of "/category" returns all documents from "/category"  
downward, for example.

I suspect others have done more interesting techniques for this sort  
of thing - I'd love to hear about them.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message