You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by "Mark A. Richman" <ma...@markrichman.com> on 2002/02/25 03:41:36 UTC
Full Text Index
What is the effort required to add full-text index & search to Xindice?
- Mark
AW: AW: Full Text Index
Posted by "W. Peschke" <Wo...@gmx.ch>.
It's just a simple Xpath Query using "contains".
I also implemented a case insensitive search by translate.
I guess it's the most unperformant and ugliest way, but it does its job
for me.
I search for all "names" of "things" which contain the searchstring in
one of its nodes.
It looks like this:
"/things/name[contains(translate(../descendant-or-self::*,'ABCDEFGHIJKLM
NOPQRSTUVWXYZÄÖÜ','abcdefghijklmnopqrstuvwxyzäöü'), translate('" +
searchstring +
"','ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜ','abcdefghijklmnopqrstuvwxyzäöü'))]";
Case sensitive it would simply be:
"/things/name[contains(../descendant-or-self::*, searchstring)]"
I hope this helps.
Wolfram
-----Ursprüngliche Nachricht-----
Von: Mark J. Stang [mailto:markstang@earthlink.net]
Gesendet: Dienstag, 26. Februar 2002 00:32
An: xindice-users@xml.apache.org
Betreff: Re: AW: Full Text Index
Wolfram,
What did your code look like?
Did you do it in Xindice using
"contains" or externally?
thanks,
Mark
"W. Peschke" wrote:
> Hi,
>
> I implemented full-text search using a xpath query.
>
> In a 500 documents database it is acceptable fast.
>
> But of course it would be nice to have such a functionallity directly
> from the database system.
>
> Wolfram
>
> -----Ursprüngliche Nachricht-----
> Von: Mark A. Richman [mailto:mark@markrichman.com]
> Gesendet: Montag, 25. Februar 2002 03:42
> An: xindice-users@xml.apache.org
> Betreff: Full Text Index
>
> What is the effort required to add full-text index & search to
> Xindice?
>
> - Mark
Re: AW: Full Text Index
Posted by "Mark J. Stang" <ma...@earthlink.net>.
Wolfram,
What did your code look like?
Did you do it in Xindice using
"contains" or externally?
thanks,
Mark
"W. Peschke" wrote:
> Hi,
>
> I implemented full-text search using a xpath query.
>
> In a 500 documents database it is acceptable fast.
>
> But of course it would be nice to have such a functionallity directly
> from the database system.
>
> Wolfram
>
> -----Ursprüngliche Nachricht-----
> Von: Mark A. Richman [mailto:mark@markrichman.com]
> Gesendet: Montag, 25. Februar 2002 03:42
> An: xindice-users@xml.apache.org
> Betreff: Full Text Index
>
> What is the effort required to add full-text index & search to Xindice?
>
> - Mark
AW: Full Text Index
Posted by "W. Peschke" <Wo...@gmx.ch>.
Hi,
I implemented full-text search using a xpath query.
In a 500 documents database it is acceptable fast.
But of course it would be nice to have such a functionallity directly
from the database system.
Wolfram
-----Ursprüngliche Nachricht-----
Von: Mark A. Richman [mailto:mark@markrichman.com]
Gesendet: Montag, 25. Februar 2002 03:42
An: xindice-users@xml.apache.org
Betreff: Full Text Index
What is the effort required to add full-text index & search to Xindice?
- Mark