Lucene.NET how to search forms of words? (as in SQL Server)
How can I create index and then search like in SQL Server FTS?
I.e. data is indexed once and then user can search:
开发者_JAVA百科- exact matching: "apple", "monkey", "drunk" etc...
- forms of words:
- enter "drunk" and find "drink", "drank", "drunk"
- enter "apples" and find "apples", "apple"
- context: "app*" and find "apple", "application" etc
Is it possible?
thank you!
Have a look at the Java documentation for Lucene's QueryParser
syntax to get a good idea for what is possible. It's more or less the same as the .NET version.
Lucene does support stemming which will match apples and apple, etc.
I've not used full text search in SQL Server for a long time, but I'm fairly sure that Lucene.NET will surpass it.
精彩评论