开发者

Full text search algorithm c#

开发者 https://www.devze.com 2023-02-20 11:17 出处:网络
I have a list of object: list(brought from an sql database). Every student has an attribute called Article=article written by this student like:

I have a list of object: list(brought from an sql database). Every student has an attribute called Article=article written by this student like:

  public class Student

  {

     public string Article
     {
        get;
        set;
      }
  }

From my asp.net page users need to search words ,phrase in students articles. The students matching the user search are shown in a datalist.

For example开发者_StackOverflow社区 when the user type: phrase="Object Oriented Programming", I need to find all students whom the article contains one the possible combinations of words of the typed phrase:Like "programming", "Object Oriented", "Oriented", ....

I have tested with full text index in the database, and it's very slow and I have a problem in embedding wildcard % in a dynamic sql string.

Any suggestions?


The .NET port of Lucene might be your best bet... http://incubator.apache.org/lucene.net/


You could also have a look at LIFTI

0

精彩评论

暂无评论...
验证码 换一张
取 消