Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/434.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Lucene hibernet搜索通配符,带2个单词_Lucene_Wildcard - Fatal编程技术网

Lucene hibernet搜索通配符,带2个单词

Lucene hibernet搜索通配符,带2个单词,lucene,wildcard,Lucene,Wildcard,我用两个词来提问,即“测试”和“测试”。我想要这样的东西: org.apache.lucene.search.Query query = (org.apache.lucene.search.Query) qb .keyword() .wildcard() .onFields("jobTitle", "tags", "role", "DepartmentName", "skillSet", "longDescription", "d

我用两个词来提问,即“测试”和“测试”。我想要这样的东西:

org.apache.lucene.search.Query query = (org.apache.lucene.search.Query) qb 
        .keyword()
        .wildcard()
        .onFields("jobTitle", "tags", "role", "DepartmentName",
        "skillSet", "longDescription", "designation",
        "qualification", "desiredSkill", "location")
    .matching("test* tests*").createQuery();` 
如果我放置了
通配符()
,那么这两个单词将被视为一个