Search code examples
full-text-searchdb4o

Full text search with DB4O


In my DB4O database I have an amount of Book objects

Book
  +string: Title
  ...

When entering a title (string) in my form I would like to suggest existing titles. Currently I use a simple

book.Title.Contains(titlePart)

But it would be a nice adition if I could suggest books with titles that match the input title even if it had several, non sequential matching words and give the matches in an order of relevance. In short: have full text search on them.

Any ideas?


Solution

  • You have to hook Lucene or Lucene.NET to index your text fields. Full text searches will be very fast using Lucene.