0
我有Lucene.net的标题搜索和面临LIKE子句搜索的问题。Lucene搜索like词条搜索
我已经尝试了下面的术语,但它匹配整个单词。
query.Add(new TermQuery(new Term("title", word.ToLower())), BooleanClause.Occur.MUST);
也试过
query.Add(new TermQuery(new Term("title", word.ToLower())), BooleanClause.Occur.SHOULD);
任何想法如何应用LIKE子句?
如果您正在寻找SQL类型的LIKE语法,那么已经存在的问题已经在SO中:http://stackoverflow.com/questions/3307890/how-to-query-lucene-with-like-operator – mindas
需要更多的澄清。 “LIKE子句”是什么意思? – fatih
感谢它帮助:) –