The goji fruit fly, Neoceratitis asiatica, is a major pest on the well-known medicinal plant Lycium barbarum. Dissecting the molecular mechanisms of the oviposition selection of N. asiatica regarding the host plant will help to identify new strategies for pest fly control. However, the molecular mechanism of chemical communication between the goji fruit fly and the host goji remains unclear. Hence, our study found that young goji fruit volatiles induced the oviposition response of gravid female N. asiatica. After N. asiatica was exposed to young goji fruit volatiles, the expression of six chemosensory genes (NasiOBP56h3 and OBP99a1 in the antennae; OBP99a2, OBP99a3 and CSP2 in the legs; and OBP56a in the ovipositor) was significantly upregulated in different organs of female N. asiatica compared with the group without odor treatment according to transcriptome data. Further results of qPCR verification show that the expression levels of the six selected upregulated genes after the flies were exposed to host plant volatiles were mostly consistent with the results of transcriptome data. We concluded that six upregulated genes may be involved in the recognition of young goji fruit volatiles by gravid female N. asiatica. Our study preliminarily identifies young goji fruit volatiles as a key factor in the oviposition behavior of N. asiatica, which will facilitate further studies on the mechanisms of host oviposition selection in N. asiatica.