Zitat von Christian Grün christian.gruen@gmail.com:
<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