开发者

Should I use Lucene.Net for full text search with SQL Compact Edition 4, or is there a better option?

I'm trying to create a full text search facility for a small blog which is running against a SQL Compact Edition 4 database.

There seems to be almost no information out there about this (though I'd be happy if someone can prove me wrong), but as far as I can gather, SQL CE doesn't support the normal SQL Server full-text indexing.

I have briefly looked into using Lucene.Net, but it seems quite complex at first glance; would this be my best option here, or is there开发者_运维知识库 a simpler solution which I'm missing?


Lucene.Net would be a good choice even if you had the option of full text search.

Lucene.Net expands past what FTS (full text sql) offers. Including boosting terms, fuzzy queries, simple faceted search which can be found in a contrib project on the 2.9.4g branch, etc.

Its opensource so you don't have to wait on someone else's cycle to modify it or have it extended or add features.

There are a couple of posts and even FOSS contrib projects to help circumvent the higher barrier to entry. I'd recommend the content in the list below over starting with Lucene in Action.

The book is a great resource, but the lastest edition is aimed at Lucene 3.0, the java version, which includes newer APIs that have not made it into the .NET version.

  • Simple Lucene - http://blogs.planetcloud.co.uk/mygreatdiscovery/post/SimpleLucene-e28093-Lucenenet-made-easy.aspx
  • Lucene.Net Tutorial (covers version 2.9.2) - http://www.d80.co.uk/post/2011/03/29/LuceneNet-Tutorial.aspx

Lucene.Net will also pay off as a decent library to add to your overall programming repertoire of skill-sets. Search is pretty much apart of most applications these days.

The Lucene.Net project has gone back into incubation with a newer set of committers and goals One of those goals is to make it more .NET idiomatic and easier to use. However, its definitely going to take time and cycles to reach this point.

In the mean time you can always hit up the mailing lists for help or the irc channel #lucene.net for help.


Lucene is the way to go - a colleague of mine recommends "Lucene in Action" free PDF book, and after first 3 chapters you are up and running.


If it's a small blog, you may want to use IndexTank because it's free. There's a WordPress plugin that gives you instant search like this:

http://bothsidesofthetable.com

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜