You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Jim Jones <jo...@trivantisdev.com> on 2007/10/30 21:25:54 UTC

Is there a way to initiate building of search index?

New nodes added under the root node aren't search-able unless the index 
is rebuilt by stoppin the repository, deleting the index folders and 
then restarting the repository.


-- 
Jim Jones
Trivantis Corporation
Product Development Specialist
561-392-3080 x313

Re: Is there a way to initiate building of search index?

Posted by Alexandre Martins <al...@gmail.com>.
Maybe you need to check you repository.xml, whats the indexers that you put
in your SearchIndex tag?

br

2007/10/31, Christoph Kiehl <ch...@sulu3000.de>:
>
> Jim Jones wrote:
>
> > New nodes added under the root node aren't search-able unless the index
> > is rebuilt by stoppin the repository, deleting the index folders and
> > then restarting the repository.
>
> Are you maybe calling Node/Session.save() before exiting you program? New
> nodes
> are automatically added to the search index if you call Node.save() or
> Session.save(). Only calling Node.addNode() doesn't add a node to the
> search
> index (see 6.6.7 Search Scope in the JCR spec). I have no other idea why
> your
> nodes are not indexed. Could you please post you code if calling save()
> first
> doesn't resolve your issues?
>
> Cheers,
> Chris
>
>


-- 
Alexandre Costa Martins
CESAR - Recife Center for Advanced Studies and Systems
Software Engineer and Software Reuse Researcher
MSc Candidate at Federal University of Pernambuco
RiSE Member - http://www.rise.com.br
Sun Certified Programmer for Java 5.0 (SCPJ5.0)

E-mail: alexandre.martins@cesar.org.br
MSN: xandecmartins@hotmail.com
GTalk: alexandremartins@gmail.com
Skype: xandecmartins
Mobile: +55 (81) 9929-9548
Office: +55 (81) 3425-4763
Fax: +55 (81) 3425-4701

Re: Is there a way to initiate building of search index?

Posted by Christoph Kiehl <ch...@sulu3000.de>.
Jim Jones wrote:

> New nodes added under the root node aren't search-able unless the index 
> is rebuilt by stoppin the repository, deleting the index folders and 
> then restarting the repository.

Are you maybe calling Node/Session.save() before exiting you program? New nodes 
are automatically added to the search index if you call Node.save() or 
Session.save(). Only calling Node.addNode() doesn't add a node to the search 
index (see 6.6.7 Search Scope in the JCR spec). I have no other idea why your 
nodes are not indexed. Could you please post you code if calling save() first 
doesn't resolve your issues?

Cheers,
Chris