webForumDet fria alternativet

fulltext sök och kolon

1 svar · 231 visningar · startad av paraxe

paraxeMedlem sedan apr. 2004298 inlägg
#1

Hej på Er!

Hur hanterar mySqls fulltext tecknet kolon ":" ?

tex om jag gör en sökning i databasen på "2004:7" så får jag mycket riktigt träff på 2004:7 men om jag söker på 2004:7 så får jag träffar på förekomster av 2004:, t ex 2004:16, 2004:88.

Vad händer med kolon när det inte omsluts med tum-tecken (")?`

Mvh

Pär

paraxeMedlem sedan apr. 2004298 inlägg
#2

Gäller detta mySql fulltext search?

Punctuation marks such as the period (.), colon (:), semicolon (;), comma (,), and hyphen (-) are ignored during a search.

Group the elements of your search using "double quotes" or (parentheses). You cannot search for quotation marksGroup the elements of your search using "double quotes" or (parentheses). You cannot search for quotation marks

If you are searching for a filename with an extension, you should group the entire string in double quotes ("filename.ext"). Otherwise, the search will treat the period as an OR operator

125 ms totalt · 3 externa anrop · v20260731065814-full.86db40fa
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
122 ms — hämta tråd, inlägg och bilagor (db)