> -----Original Message----- > From: arne anka [mailto:[email protected]] > Sent: Friday, June 05, 2009 12:29 PM > To: fedora-commons-users > Subject: [Fedora-commons-users] gsearch: issues with gfindObjects and > [add|purge]Relationship > > hi, > fedora 3.1, gsearch 2.2 > in my fedora objects i manipulate with > addRelationship/purgeRelationship > an RELS-EXT element. > > purgeRelationship("foo:Bar123", "http://www.foo.bar/states#isInState", > "PUBLIC", true, null); > addRelationship("foo:Bar123", "http://www.foo.bar/states#isInState", > "INTERNAL", true, null); > > resulting something like that: > > <rdf:RDF> > <rdf:Description ...> > <isInState>PUBLIC</isInState> > </rdf:Description> > </rdf:RDF> > > gsearch is notified and i see the indexer running (output from the > stylesheet). > usually then i can search for it with > > isInState:"INTERNAL" > > but today i noticed some weirdness: i start fedora and search -- but > nothing appears! > once i call one of the [add|purge]Relationship methods, the search > works > again. > > after restarting fedora -- search result is empty; calling > [add|purge]Relationship, search result is populated properly. > > checking the timestamp in the index files (lucene) confirms, that > something was written and checking the index with Luke turn up the > correct > result. > > so, the methods work, the index is updated accordingly, only > gfindObjects > fails to find something. > (interestingly, browseIndex always list the correct number of objects > for > each isInState entry). > > is it possible that gfindObjects fails to search the index correctly > until > some internal information is refreshed when the index is updated, but > not > upon boot?
I have no clue to this. Please run these operations with gsearch at DEBUG logger level and send me an extract of the log. Best Gert > > ----------------------------------------------------------------------- > ------- > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the > latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
