如何使用以下SQL搜索查询的相同逻辑进行SOLR搜索?
SELECT * FROM user where email LIKE '%ben%'"
Run Code Online (Sandbox Code Playgroud)
我试过以下,
<cfscript>
mysearch = new com.adobe.coldfusion.search();
searchResult = mysearch.search(collection="mycollection", criteria='ben*');
</cfscript>
Run Code Online (Sandbox Code Playgroud)
criteria='ben*'匹配'raw_ ben @ yahoo.com'和' ben @ yahoo.com',但没有返回字符串'ro ben ro ben '.
criteria='ben~'匹配'raw_ ben @ yahoo.com'和' ben @ yahoo.com',但没有返回字符串'ro ben ro ben '.
所有模糊搜索,狂野搜索尝试都是如此.