Zitat von Christian Grün <[email protected]>:

<p>5 Ich werde Dich mit Haut und Haar <pb/> und allem drum und dran
fressen.</p>

(1) //*[text() contains text ("Haut" ftand "fressen") using stemming using
language "de"]
(2) //*[text() contains text ("Haut" ftand "fressen" ftand ftnot "Haar")
using stemming using language "de"]

(1) should return all <p>-nodes, but does not return 5

This is actually correct, because the <p/> element has two text nodes,
and the full-text expression is evaluated against them separately.

You'll get the expected results by replacing the text() step with a dot:

  //*[ . contains text ("Haut" ftand "fressen") using stemming using
language "de"]

It's important to add, however, that this query cannot be evaluated by
the full-text index.

Since I have to use the full-text index to avoid time-outs in the web-interface, this means searching text in paragraphs yields in fact incomplete results? I better don't tell my users ...

Oh, and the GUI for 7.3.1 crashes constantly trying to execute queries that take a little bit longer than a minute, very annoying!

Best regards

Cerstin
--
Dr. phil. Cerstin Mahlow

Universität Basel
Departement Sprach- und Literaturwissenschaften
Fachbereich Deutsche Sprach- und Literaturwissenschaft
Nadelberg 4
4051 Basel
Schweiz

Tel:  +41 61 267 07 65
Fax: +41 61 267 34 40
Mail: [email protected]
Web: http://www.oldphras.net

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to