I have correct this but the problem is same. There is no index folder.
I have tried to set:
<param name="path" value="${wsp.home}/index"/>
but nothing changed.Can you help me?
P.S. I have problem in eclipse: The content of element type "SearchIndex" is
incomplete, it must macth "(param*,FileSystem)",but in the sample
repository.xml isnt so.
Thank you for your help i am desperate.
Marcel Reutegger wrote:
>
> There's an error in the configuration. the workspace indexes and the
> system
> index all reference ${rep.home}/repository/index as path parameter.
>
> The workspace indexes should rather use a path value of:
> ${wsp.home}/index
>
> See:
> http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/main/config/repository.xml
> for a valid repository configuration sample.
>
> regards
> marcel
>
> Michal Hybler wrote:
>>
>> I have a problem.Im not so sklilled in jackrabbit.
>> I have a cms server downloaded from jackrabbit. My configuration file
>> "repository.xml" is :
>> http://www.nabble.com/file/5696/repository.xml repository.xml
>> i use this method for importing files:
>>
>> public Node importFile(Node parentNode, File file) {
>> Node childNode = null;
>> try {
>> String name = file.getName();
>> childNode = parentNode.addNode(name,"nt:unstructured");
>> MimeTable mt = MimeTable.getDefaultTable();
>> String mimeType = mt.getContentTypeFor(file.getName());
>> //create the mandatory child node - jcr:content
>> Node resNode = childNode.addNode ("jcr:content", "nt:resource");
>> resNode.setProperty ("jcr:mimeType", mimeType);
>> resNode.setProperty ("jcr:encoding", "");
>> try {
>> resNode.setProperty ("jcr:data", new
>> FileInputStream (file));
>> } catch (FileNotFoundException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> }
>> Calendar lastModified = Calendar.getInstance ();
>> lastModified.setTimeInMillis (file.lastModified ());
>> resNode.setProperty ("jcr:lastModified", lastModified);
>>
>>
>> saveSession();
>>
>> } catch (ItemExistsException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> } catch (PathNotFoundException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> } catch (NoSuchNodeTypeException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> } catch (LockException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> } catch (VersionException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> } catch (ConstraintViolationException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> } catch (RepositoryException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> }
>> return childNode;
>> }
>>
>> In my configuration Im using patch=${rep.home}/repository/index, but i
>> cant
>> find fulltect readable indexes in this folder.
>> I try to find text in my pdf file but function //*[jcr:contains(.,
>> '"+text+"')] do not find anything.
>> Where is problem?Why jackrabbit do not index my file?
>> Thanks fo help
>> Michal Hybler
>
>
--
View this message in context:
http://www.nabble.com/Fulltext-text-indexing-in-Jackrabbit-tf3033407.html#a8429400
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.