Ard, thanks a lot for your information.
My real problem: I have a product tree as below,
top_category_t1
subcategoryx
producta
productb
subcategory_y
productc
productd
top_category_t2
subcategoryz
producta
producte
productf
subcategoryk
productg
producth
The product has no category information because one product could belong to
more than one category. I wish if I search for "subcategory_y", node
"subcategory_y" could be returned.
Any suggestion?
Thanks a again.
Kevin
----- Original Message ----
From: Ard Schrijvers <[email protected]>
To: [email protected]
Sent: Monday, December 29, 2008 1:38:07 PM
Subject: RE: how to make the path name searchable
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
>
>