Hi all,

I am using the RMI Interface to access the jackrabbit repository which runs
in standalone mode.
I can store/retrieve some .pdf and .txt files on the repository (which
contain text including the String 'Wilde'). The mimeType of the files is set
correctly. I add the file like this:
*
Node fileNode = folderNode.addNode (tempFile.getName(), "nt:file");
Node contentNode = fileNode.addNode ("jcr:content", "nt:resource");
InputStream stream = new BufferedInputStream( new FileInputStream
(tempFile));
Binary binary =
contentNode.getSession().getValueFactory().createBinary(stream);
contentNode.setProperty("jcr:data",binary);*

I have added the textFilterClasses to the workspace.xml file as follows:
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            
            
            
            
</SearchIndex>

My search query (using javax.jcr.query.Query.JCR_SQL2 type) states:
*SELECT * FROM [nt:resource] WHERE contains([jcr:content],'Wilde')*

But I cannot get any results (neither for the txt nor for the pdf file) from
the query.
Can anybody give me a hint and tell me what I am doing wrong?




--
Sent from: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-Users-f510167.html

Reply via email to