You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Daniel Florey <da...@web.de> on 2005/12/07 10:17:47 UTC

AW: Slide & Lucene: Content Index problem

You need to configure some extracotrs. I've updated the Wiki to show you how
to do this.
Cheers,
Daniel

> -----Ursprüngliche Nachricht-----
> Von: slide-user-return-12139-daniel.florey=web.de@jakarta.apache.org
> [mailto:slide-user-return-12139-daniel.florey=web.de@jakarta.apache.org]
> Im Auftrag von Aleksandrs Sumilovs
> Gesendet: Donnerstag, 20. Oktober 2005 09:41
> An: slide-user@jakarta.apache.org
> Betreff: Slide & Lucene: Content Index problem
> 
> Hi!
> 
> I use Slide (last version from CVS) with Lucene 1.4.3 for property and
> content indexing.
> DASL search works fine without indexing.
> When I turn on indexing and start tomcat two directories are created:
> 'index_meta' and 'index_content'.
> Directory 'index_meta' contains several index files, but 'index_content'
> contains only one file 'segments' (index files aren't created).
> DASL search on property works fine, but on content doesn't work anymore
> (it was working without indexing).
> I have files readme.txt and sonnets.txt under files/test.
> Both have content type 'plain/text' (as I see in property getcontenttype).
> 
> From 'Domain.xml':
>         <contentindexer
> classname="org.apache.slide.index.lucene.LuceneContentIndexer">
>         <parameter name="indexpath">${filespath}index_content</parameter>
>         </contentindexer>
>         <propertiesindexer
> classname="org.apache.slide.index.lucene.LucenePropertiesIndexer">
>         <parameter name="indexpath">${filespath}index_meta</parameter>
>         </propertiesindexer>
> 
> Search query:
> "<D:searchrequest xmlns:D =\"DAV:\">" +
>                 "<D:basicsearch>" +
>                     "<D:select>" +
>                         "<D:prop>" +
>                             "<D:getcontentlength/>" +
>                         "</D:prop>" +
>                     "</D:select>" +
>                     "<D:from>" +
>                         "<D:scope>" +
>                             "<D:href>test</D:href>" +
>                             "<D:depth>infinity</D:depth>" +
>                         "</D:scope>" +
>                     "</D:from>" +
>                     "<D:where>" +
>                                 "<D:contains>follow</D:contains>" +
>                     "</D:where>" +
>                 "</D:basicsearch>" +
>             "</D:searchrequest>"
> 
> Can anybody help me to understand what's happening?
> 
> Thanks!
> 
> ----
> Aleksandrs Sumilovs


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org