Re: Index corruption

2010-02-18 Thread Sergey Podatelev
On Mon, Feb 15, 2010 at 3:41 PM, Marcel Reutegger marcel.reuteg...@gmx.net wrote: Hi, On Sat, Feb 13, 2010 at 16:41, Sergey Podatelev brightnesslev...@gmail.com wrote: My environment is a web application where jackrabbit is used as an application bundle, and it's configured for distributed

Re: Casandara and Jackrabbit

2010-02-18 Thread Ian Boston
On 18 Feb 2010, at 06:39, Patricio Echagüe wrote: Hi, I have written a Cassandra Persistence Manager but as Jukka mentioned, there are some issues to resolve. The other problem I see is that Cassandra does not support transaction across multiple keys. I havent looked at the PM yet, but have

Re: A couple of simple questions

2010-02-18 Thread Bertrand Delacretaz
Hi, On Wed, Feb 17, 2010 at 6:44 PM, Boomah nickda...@gmail.com wrote: ...I set up a TransientRepository and added a node for each Contract with a unique path. I then set a property on this node called id with the associated string value of the id: node.setProperty(id, 123) I have a lot of

Re: OCM in JackRabbit 1.6? (and 2.0)

2010-02-18 Thread Ilya Skorik
In what state there is a project? It did not refresh already a half of year. What with jcr2 support? I could not find in a svn code support for shareable nodes, they are supported by OCM? -- View this message in context: http://n4.nabble.com/OCM-in-JackRabbit-1-6-and-2-0-tp1556009p1560002.html

ReadWriteLock - JCR1.5.4

2010-02-18 Thread Radek Wegrowski
Hi All We are using JCR with jackrabbit-core-1.5.4.jar and we are getting the exception pasted below. It looks similar to http://issues.apache.org/jira/browse/JCR-2171. If this is the same issue, is upgrade to 1.6.0.Next the only solution to get rid of this? Thanks Radek ], which is more

Re: Jackrabbit 2.0.0 query language choices

2010-02-18 Thread Alexander Klimetschek
On Wed, Feb 17, 2010 at 23:24, ChadDavis chadmichaelda...@gmail.com wrote: 1) Performance ?  Is there any difference in performance? No, they all use the same lucene index under the hood, ie. they all get transformed into a lucene index query. 2) Ease of use . . . is there any sense that the

Re: Jackrabbit 2.0.0 query language choices

2010-02-18 Thread Will Scheidegger
On 18.02.2010, at 13:55, Alexander Klimetschek wrote: Well, that depends on personal choice. I think that Xpath is a very good fit for tree structures (and that's why I think it's sad that it became deprecated in JCR 2.0, albeit it will live on in Jackrabbit). Xpath became deprecated? Missed

Jackrabbit 2.0 QueryResult.getNodes().getSize() returning -1

2010-02-18 Thread Sergiy Shyrkov
Hello, I recently noticed strange behaviour with the size of query results (using Jackrabbit 2.0.0). In the following example: Query query = ...; NodeIterator ni = query.execute().getNodes() if (ni.hasNext()) { long count = ni.getSize(); ... } I always get -1 as the size of an non-empty

Re: Jackrabbit 2.0 QueryResult.getNodes().getSize() returning -1

2010-02-18 Thread Guo Du
On Thu, Feb 18, 2010 at 2:12 PM, Sergiy Shyrkov my.public.mail...@gmail.com wrote: I always get -1 as the size of an non-empty iterator (I can perfectly iterate over it and get nodes). The -1 discussed recently:

Re: Jackrabbit 2.0.0 query language choices

2010-02-18 Thread Alexander Klimetschek
On Thu, Feb 18, 2010 at 14:31, Will Scheidegger willscheideg...@mac.com wrote: Xpath is a very good choice for searching in tree structures. Things like /jcr:root/path/to/elements//element(*, elementType)[path/to/subelement/@attribute = 'value'] are not possible with SQL. Don't know about

Re: Jackrabbit 2.0 QueryResult.getNodes().getSize() returning -1

2010-02-18 Thread Sergiy Shyrkov
Thank you, Guo! I should have searched in dev list also. Kind regards Sergiy On 18.02.2010 15:18, Guo Du wrote: On Thu, Feb 18, 2010 at 2:12 PM, Sergiy Shyrkov my.public.mail...@gmail.com wrote: I always get -1 as the size of an non-empty iterator (I can perfectly iterate over it and get

Re: Jackrabbit 2.0 QueryResult.getNodes().getSize() returning -1

2010-02-18 Thread Alexander Klimetschek
On Thu, Feb 18, 2010 at 15:33, Sergiy Shyrkov my.public.mail...@gmail.com wrote: Thank you, Guo! I should have searched in dev list also. Note that it this is explicitly mentioned also right in the javadocs of getSize(), for both JCR 1.0 and 2.0:

Re: Jackrabbit 2.0 QueryResult.getNodes().getSize() returning -1

2010-02-18 Thread Sergiy Shyrkov
Yes, I see it now, thank you! We have migrated form Jackrabbit 1.x to Jackrabbit 2.x and found this out. We use queries not to only perform fulltext searches, aka Google, where it is not mandatory to know the exact count of results. That is why I am searching now for a (good performing) way to

Re: Casandara and Jackrabbit

2010-02-18 Thread Patricio Echagüe
Well, I'll try to answer that. As far as I know, after looking into the PM source code, at the time that store(change log) is called, the javadoc says that the change log must be saved completely or nothing. That is basically saying, if it fails, then rollback. If you use a bundle approach, as I

Jackrabbit and data stores

2010-02-18 Thread Treague, Keith
Hi all! I'm looking over the docs for the datastore. In the FAQ it says Can I change the file content in the data store? A: No. The whole point of the data store is that the content is immutable. What I'm wondering, is if I use a datastore, upload a file into jackrabbit, then try to create a

Re: Jackrabbit and data stores

2010-02-18 Thread Thomas Müller
Hi, if I use a datastore, upload a file into jackrabbit, then try to create a new version with a different file, can the new version replace the file content? If the content is different, the new version would be stored in a new file (a new file with a different name). multiple versions do

jackrabbit 2.0 binary search indexing

2010-02-18 Thread ChadDavis
I'm looking for information on how to enable binary search indexing. I found documentation for pre-2.0 jackrabbit, and reference to the fact that Tika is now used internally for the binary indexing. However, I can't find any documentation of how to enable the binary indexing . . .. Can some one

Re: repo browser

2010-02-18 Thread ChadDavis
On Tue, Feb 16, 2010 at 11:14 AM, Rakesh Vidyadharan rak...@sptci.com wrote: On 16 Feb 2010, at 11:52, Patricio Echagüe wrote: Hey Rakesh, thank you so much. It works great. You are welcome.  I released 2.1 a couple of hours ago, with some additional 2.0 features as well as RMI connection

DDLs for databases Jackrabbit2.0 supports?

2010-02-18 Thread Niu, Xuetao
Hello, I am wondering the DDL of jackrabbit 2.0 for both all databases supported, which it uses to create the database structure with. The DBA has to create the database beforehand manually due to permission limits. We are storing all (dbFileSystem, dbPersistenceManager, dbBlabla...) in

Re: repo browser

2010-02-18 Thread Rakesh Vidyadharan
On 18 Feb 2010, at 12:05, ChadDavis wrote: On Tue, Feb 16, 2010 at 11:14 AM, Rakesh Vidyadharan rak...@sptci.com wrote: On 16 Feb 2010, at 11:52, Patricio Echagüe wrote: Hey Rakesh, thank you so much. It works great. You are welcome. I released 2.1 a couple of hours ago, with some

Re: repo browser

2010-02-18 Thread Rakesh Vidyadharan
On 18 Feb 2010, at 12:18, ChadDavis wrote: On Thu, Feb 18, 2010 at 11:05 AM, ChadDavis chadmichaelda...@gmail.com wrote: On Tue, Feb 16, 2010 at 11:14 AM, Rakesh Vidyadharan rak...@sptci.com wrote: On 16 Feb 2010, at 11:52, Patricio Echagüe wrote: Hey Rakesh, thank you so much. It

Re: repo browser

2010-02-18 Thread ChadDavis
No, it is just a virtual path mapped to the servlet for the application.   Just http://your server:port/jcrviewer/ should do the trick. I used this . . . http://localhost:8080/jcrmanager/index.jhtml using jcrviewer doesn't work . . . is that a different app?' BTW . . . is it possible to

Re: repo browser

2010-02-18 Thread Rakesh Vidyadharan
On 18 Feb 2010, at 12:25, ChadDavis wrote: No, it is just a virtual path mapped to the servlet for the application. Just http://your server:port/jcrviewer/ should do the trick. I used this . . . http://localhost:8080/jcrmanager/index.jhtml using jcrviewer doesn't work . . . is

Re: DDLs for databases Jackrabbit2.0 supports?

2010-02-18 Thread Alexander Klimetschek
On Thu, Feb 18, 2010 at 19:15, Niu, Xuetao xuetao@fiserv.com wrote: I am wondering the DDL of jackrabbit 2.0 for both all databases supported, which it uses to create the database structure with. The DBA has to create the database beforehand manually due to permission limits. We are

Re: jackrabbit 2.0 binary search indexing

2010-02-18 Thread Alexander Klimetschek
On Thu, Feb 18, 2010 at 18:35, ChadDavis chadmichaelda...@gmail.com wrote: I'm looking for information on how to enable binary search indexing. I found documentation for pre-2.0 jackrabbit, and reference to the fact that Tika is now used internally for the binary indexing. However, I can't

Re: repo browser

2010-02-18 Thread ChadDavis
You can connect over RMI if the other application exposes the RMI server.   Alternative would be to configure the repository as a JEE resource and make available to both applications (assuming they are both web apps).  The web.xml and context.xml files in the war file have commented out

RepositoryCopier performance

2010-02-18 Thread crankydillo
Hi, I'm trying to use 1.6.0's RepositoryCopier and am wondering if the performance I'm seeing is what I should expect. We're using Jackrabbit with its default settings via a TransientRepository. For the most part, the nodes form a tree with a depth of 3. The leafs contain String

Re: jackrabbit 2.0 binary search indexing

2010-02-18 Thread ChadDavis
On Thu, Feb 18, 2010 at 2:39 PM, Alexander Klimetschek aklim...@day.com wrote: On Thu, Feb 18, 2010 at 18:35, ChadDavis chadmichaelda...@gmail.com wrote: I'm looking for information on how to enable binary search indexing. I found documentation for pre-2.0 jackrabbit, and reference to the fact

Re: jackrabbit 2.0 binary search indexing [SEC=UNCLASSIFIED]

2010-02-18 Thread Ross . Dyson
My binary files are all PDFs, so the text is extracted with PdfBox toolkit and the full text becomes keyword searchable. All done using the default configuration, except I extended nt:resource to add a few attributes. The mimeType attribute will be application/octet-stream. Perhaps there is no

Re: jackrabbit 2.0 binary search indexing [SEC=UNCLASSIFIED]

2010-02-18 Thread ChadDavis
On Thu, Feb 18, 2010 at 5:30 PM, ross.dy...@ipaustralia.gov.au wrote: My binary files are all PDFs, so the text is extracted with PdfBox toolkit and the full text becomes keyword searchable. All done using the default configuration, except I extended nt:resource to add a few attributes. The

Re: jackrabbit 2.0 binary search indexing [SEC=UNCLASSIFIED]

2010-02-18 Thread Ross . Dyson
I only have a small dataset in my test application (100 docs), it certainly only takes a few seconds to be available for the keyword search. ChadDavis chadmichaelda...@gmail.com wrote on 19/02/2010 11:33:27 AM: From: ChadDavis chadmichaelda...@gmail.com To: users@jackrabbit.apache.org Date:

Re: jackrabbit 2.0 binary search indexing [SEC=UNCLASSIFIED]

2010-02-18 Thread ChadDavis
On Thu, Feb 18, 2010 at 5:41 PM, ross.dy...@ipaustralia.gov.au wrote: I only have a small dataset in my test application (100 docs), it certainly only takes a few seconds to be available for the keyword search. I figured it out. User error.

search performance

2010-02-18 Thread ChadDavis
I always understood the joins were one of the most expensive RDBMS operations. With this in mind, I'm wondering whether I should use a join ( JCR-JQOM ) or do two independent searches and combine the results myself. Or if there is even a difference. In my search, I need to hit two nodes of two