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

女生的网名这么多〃 提交于 2019-12-07 07:47:46

问题


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?


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/6383463/should-i-use-lucene-net-for-full-text-search-with-sql-compact-edition-4-or-is-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!