Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 (Deutsch) » SQL Anywhere Server - SQL-Benutzerhandbuch » Abfragen und Datenänderung » Volltextsuche » Arten der Volltextsuche

 

Präfixsuche

Die Volltextsuchfunktion ermöglicht es Ihnen, nach dem Anfang eines Begriffs zu suchen. Dies wird Präfixsuche genannt. Um eine Präfixsuche auszuführen, geben Sie das Präfix an, nach dem Sie suchen wollen, gefolgt von einem Sternchen. Dies wird als Präfixbegriff bezeichnet.

Schlüsselwörter für die CONTAINS-Klausel können nicht bei einer Präfixsuche verwendet werden, außer sie sind Teil einer Phrase.

Sie können auch mehrere Präfixausdrücke in einer Abfragezeichenfolge angeben, einschließlich innerhalb von Phrasen (z.B. '"shi* fab"').

Das folgende Beispiel fragt die Tabelle "MarketingInformation" nach Einträgen ab, die mit dem Präfix shi beginnen:

SELECT ID, ct.score, Description
   FROM MarketingInformation CONTAINS ( MarketingInformation.Description, 'shi*' ) AS ct
   ORDER BY ct.score DESC;
ID score Description
906 2.295363835537917 <html><head><meta http-equiv=Content-Type content="text/html; charset=windows-1252"><title>Visor</title></head><body lang=EN-US><p><span style='font-size:10.0pt;font-family:Arial'>Lightweight 100% organically grown cotton construction. Shields against sun and precipitation. Metallic ions in the fibers inhibit bacterial growth, and help neutralize odor.</span></p></body></html>
901 1.6883275743936228 <html><head><meta http-equiv=Content-Type content="text/html; charset=windows-1252"><title>Tee Shirt</title></head><body lang=EN-US><p><span style='font-size:10.0pt;font-family:Arial'>We've improved the design of this perennial favorite. A sleek and technical shirt built for the trail, track, or sidewalk. UPF rating of 50+.</span></p></body></html>
903 1.6336529491832605 <html><head><meta http-equiv=Content-Type content="text/html; charset=windows-1252"><title>Tee Shirt</title></head><body lang=EN-US><p><span style='font-size:10.0pt;font-family:Arial'>A sporty, casual shirt made of recycled water bottles. It will serve you equally well on trails or around town. The fabric has a wicking finish to pull perspiration away from your skin.</span></p></body></html>
902 1.6181703448678983 <html><head><meta http-equiv=Content-Type content="text/html; charset=windows-1252"><title>Tee Shirt</title></head><body lang=EN-US><p><span style='font-size:10.0pt;font-family:Arial'>This simple, sleek, and lightweight technical shirt is designed for high-intensity workouts in hot and humid weather. The recycled polyester fabric is gentle on the earth and soft against your skin.</span></p></body></html>

ID 906 hat die höchste Punktezahl, weil der Begriff "shield" im Textindex weniger häufig als "shirt" vorkommt.

 Präfixsuchen in GENERIC-Textindizes
 Präfixsuchen in NGRAM-Textindizes
 Siehe auch