We are dealing with a "Slash Chord".
It`s just another way of voicing out a "Dmaj9 chord".
Because the "F#" is part of the chord anyway.
Dmaj9=[D,F#,A,C#,E]
But you add the "F#" after the slash, to play it on the bass.
e-------9-------------
B-------10--------------
G-------9--------------
D-------12--------------
A-------9--------------
E--------------------