Ute: UND-Suche

Moin, Moin!

$sql="SELECT id, Titel,Inhalte,Datum FROM inhalte WHERE MATCH (Titel, Inhalte) AGAINST ('+*wortbestandteil1* +*wortbestandteil2*' IN BOOLEAN MODE) LIMIT 0,20";

Ich habe den oben erwähnten code.
Ich dachte, ich hätte eine UND-Suche.
Scheinbar stimmt das nicht.
Es reicht auch, wenn nur ein Bestandteil im Text vorkommt.
Wo ist der Fehler??

Gruss
ute

  1. Moin, Moin!

    $sql="SELECT id, Titel,Inhalte,Datum FROM inhalte WHERE MATCH (Titel, Inhalte) AGAINST ('+*wortbestandteil1* +*wortbestandteil2*' IN BOOLEAN MODE) LIMIT 0,20";

    Ich habe den oben erwähnten code.
    Ich dachte, ich hätte eine UND-Suche.
    Scheinbar stimmt das nicht.
    Es reicht auch, wenn nur ein Bestandteil im Text vorkommt.
    Wo ist der Fehler??

    Gruss
    ute

    Hallo Ute,

    wie wäre es mit der Option like?

    Grüße,

    Wolfram