You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Cheng Zhang <zh...@yahoo.com> on 2008/12/27 04:23:09 UTC

how to make the path name searchable

Hi,

Hope it's not a silly question -- is it possible to make the path name searchable? For example, I have a product at /electronics/camera/canon/hf100. I would like the path /electronics/camera/canon included in the search result if I search for 'canon'. 

Thanks a lot,
Kevin


RE: how to make the path name searchable

Posted by Ard Schrijvers <a....@onehippo.com>.
 
Hello Kevin,

It is not possible without extending the Jackrabbit SearchIndex (and
having implication for moving nodes as well, because you have to re-save
the entire subtree). Furthermore, the design is to not have any path
information in the index or in nodestates. This ensures move operation
to be leight, no matter how large the subtree below the node to move.
This wouldn't be possible if you would store path information. I also
think you'll run into really nasty issues in case of same name
sibblings. Last but not least, I doubt whether having a search result
based on path info is a good strategy anyway...

Ard


> 
> Hi,
> 
> Hope it's not a silly question -- is it possible to make the 
> path name searchable? For example, I have a product at 
> /electronics/camera/canon/hf100. I would like the path 
> /electronics/camera/canon included in the search result if I 
> search for 'canon'. 
> 
> Thanks a lot,
> Kevin
> 
>