jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fard <maurice.f...@gmail.com>
Subject this IndexReader is closed
Date Thu, 19 Mar 2009 02:30:05 GMT

Hi there,

I have created a simple application for adding some nodes with properties to
jackrabbit and then  trying to search through the nodes and properties.

		QueryManager queryManager = workspace.getQueryManager();
		Query query = queryManager.createQuery ("//book01[@title = 'Book01']",
		QueryResult result = query.execute();
In repository one of my node is "Book01" and the title attribute of it is
I got the below error:

Exception in thread "main" org.apache.lucene.store.AlreadyClosedException:
this IndexReader is closed
	at org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:196)
	at org.apache.lucene.index.MultiReader.docFreq(MultiReader.java:310)
	at org.apache.lucene.index.MultiReader.docFreq(MultiReader.java:313)
	at org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:86)
	at org.apache.lucene.search.Similarity.idf(Similarity.java:457)
	at org.apache.lucene.search.TermQuery$TermWeight.<init>(TermQuery.java:44)
	at org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:146)
	at org.apache.lucene.search.Query.weight(Query.java:95)

I appreciate for any help.
View this message in context: http://www.nabble.com/this-IndexReader-is-closed-tp22592716p22592716.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

View raw message