如题,
例如索引中存在11112222这样的数据,如何实现如SQL中的 like '%2%'这样的功能使用 Query query = MultiFieldQueryParser.parse("2*", new String[] {"path", "contents" }, clauses, new StandardAnalyzer());只能得到内容为“2222”这样以2开头的文件!
例如索引中存在11112222这样的数据,如何实现如SQL中的 like '%2%'这样的功能使用 Query query = MultiFieldQueryParser.parse("2*", new String[] {"path", "contents" }, clauses, new StandardAnalyzer());只能得到内容为“2222”这样以2开头的文件!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货