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 Mirko Froehlich <mf...@digitalchocolate.com> on 2004/11/17 20:25:37 UTC
Indexing / DASL without Lucene
I am slightly confused about Slide's search implementation. It appears
that Slide supports Lucene for indexing documents. I am using a file and
a JDBC store, neither of which defines an indexer (i.e. the
contentindexer element is commented out in my Domain.xml). Still,
performing a DASL search using the WebDAV client API works fine in both
of my stores. Does Slide fall back to a default search implementation if
no contentindexer is defined? In this case I assume that using Lucene
would result in more efficient search queries?
-Mirko
Re: Indexing / DASL without Lucene
Posted by James Mason <ma...@apache.org>.
2.1b2 supports content indexing with Lucene. Take a look at the
org.apache.slide.search.IndexTrigger event listener near the bottom of
Domain.xml.
-James
On Thu, 2004-11-18 at 12:44 -0800, Mirko Froehlich wrote:
> Thanks, that's good to know.
>
> For content searches, is there any way to leverage MySQL's fulltext
> capabilities? Or are searches simply performed using a "like" clause? If
> not, is it already possible in 2.1b2 to configure a JDBC/J2EE store to
> use the Lucene indexer?
>
> -Mirko
>
>
> On Thu, 2004-11-18 at 11:51, Guido Casper wrote:
>
> > Mirko Froehlich wrote:
> > > Thanks for the info. Could you elaborate a little on the JDBC store?
> > > Does it automatically take advantage of the database's indexing and
> > > search capabilities, or do I have to configure something to enable this?
> >
> > You have to configure your JDBCStore with:
> > <parameter name="use-rdbms-expression-factory">true</parameter>
> >
> > Be aware that this leverages database indexes only for searches on
> > properties but not for content searches.
> >
> > Guido
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Indexing / DASL without Lucene
Posted by Mirko Froehlich <mf...@digitalchocolate.com>.
Thanks, that's good to know.
For content searches, is there any way to leverage MySQL's fulltext
capabilities? Or are searches simply performed using a "like" clause? If
not, is it already possible in 2.1b2 to configure a JDBC/J2EE store to
use the Lucene indexer?
-Mirko
On Thu, 2004-11-18 at 11:51, Guido Casper wrote:
> Mirko Froehlich wrote:
> > Thanks for the info. Could you elaborate a little on the JDBC store?
> > Does it automatically take advantage of the database's indexing and
> > search capabilities, or do I have to configure something to enable this?
>
> You have to configure your JDBCStore with:
> <parameter name="use-rdbms-expression-factory">true</parameter>
>
> Be aware that this leverages database indexes only for searches on
> properties but not for content searches.
>
> Guido
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
Re: Indexing / DASL without Lucene
Posted by Guido Casper <gc...@s-und-n.de>.
Mirko Froehlich wrote:
> Thanks for the info. Could you elaborate a little on the JDBC store?
> Does it automatically take advantage of the database's indexing and
> search capabilities, or do I have to configure something to enable this?
You have to configure your JDBCStore with:
<parameter name="use-rdbms-expression-factory">true</parameter>
Be aware that this leverages database indexes only for searches on
properties but not for content searches.
Guido
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Indexing / DASL without Lucene
Posted by Mirko Froehlich <mf...@digitalchocolate.com>.
Thanks for the info. Could you elaborate a little on the JDBC store?
Does it automatically take advantage of the database's indexing and
search capabilities, or do I have to configure something to enable this?
-Mirko
On Wed, 2004-11-17 at 20:42, James Mason wrote:
> Umm... yes ;).
>
> By default Slide does no indexing, but rather crawls your entire store
> for each search request. Obvious, this is horribly inefficient. If
> you're using a JDBC store you can take advantage of the database's
> capabilities for indexing, and Slide 2.2 will add a much more powerful
> indexing system with Lucene.
>
> -James
>
> On Wed, 2004-11-17 at 11:25 -0800, Mirko Froehlich wrote:
> > I am slightly confused about Slide's search implementation. It appears
> > that Slide supports Lucene for indexing documents. I am using a file and
> > a JDBC store, neither of which defines an indexer (i.e. the
> > contentindexer element is commented out in my Domain.xml). Still,
> > performing a DASL search using the WebDAV client API works fine in both
> > of my stores. Does Slide fall back to a default search implementation if
> > no contentindexer is defined? In this case I assume that using Lucene
> > would result in more efficient search queries?
> >
> > -Mirko
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
Re: Indexing / DASL without Lucene
Posted by James Mason <ma...@apache.org>.
Umm... yes ;).
By default Slide does no indexing, but rather crawls your entire store
for each search request. Obvious, this is horribly inefficient. If
you're using a JDBC store you can take advantage of the database's
capabilities for indexing, and Slide 2.2 will add a much more powerful
indexing system with Lucene.
-James
On Wed, 2004-11-17 at 11:25 -0800, Mirko Froehlich wrote:
> I am slightly confused about Slide's search implementation. It appears
> that Slide supports Lucene for indexing documents. I am using a file and
> a JDBC store, neither of which defines an indexer (i.e. the
> contentindexer element is commented out in my Domain.xml). Still,
> performing a DASL search using the WebDAV client API works fine in both
> of my stores. Does Slide fall back to a default search implementation if
> no contentindexer is defined? In this case I assume that using Lucene
> would result in more efficient search queries?
>
> -Mirko
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org