有一列url,我在上面做了全文索引
然后查询的时候
语句如下where contains(url,'http://7.1')但是结果几乎所有的url数据都出来了
http://fashion.rayli.com.cn/mixmatch/2010-04-16/L0002001012_700263_11.html
http://video.pomoho.com/ent/745473?B3E1A4
http://tuku.27.cn/c/200912/07/1260171112_02034200_1.html
http://auto.cnfol.com/100605/169,1692,7817473,00.shtml
http://video.pomoho.com/ent/2731166
http://beauty.rayli.com.cn/0003/2010-05-19/L0003020_719897_1.html
http://bbs.39.net/ss/topic/1101465.html
....等等但是同样的查询,我改成where contains(url,'http://http://192.168')结果却是正确的
http://192.168.21.7/pubfile/0018/2010-06-11/L0018014_731139_10.html
http://192.168.21.7/pubfile/0014/2010-06-11/L0014005_731141_4.html
http://192.168.21.7/pubfile/2/2007/2010-06-11/L2007004_731161.html
http://192.168.1.180/
http://192.168.21.7/pubfile/e/0012/2010-06-10/L0012014_731029_1.html
http://192.168.21.7/webpub/preview.aspx?id=731139
...这个是什么原因?是不是有通配符的关系?全文索引的新手,希望大大们指教!

解决方案 »

  1.   

    是全文索引噪音文件引起的,自己看看C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\FTData\noiseCHs.txt中的$ 1 2 3 4 5 6 7 8 9 0 _去掉试试看。
      

  2.   

    各位哥哥姐姐
    为什么调用这个方法时 protected DataTable SellectInfo(string strsql)
      {
      sqladapter = new OleDbDataAdapter(strsql, sqlcon);
      ds = new DataSet();
      sqladapter.Fill(ds, "NewTable");
      return ds.Tables["NewTable"];
      }
    报错为: "标准表达式中数据类型不匹配。" 啊 
      

  3.   


    因为都是英文,应此我选择是断句是English
    是不是不用这个noiseCHs.txt里面的
      

  4.   

    修改了noiseChs.txt
    没有效果
    每日一求