Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.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查询与分析器组合_Lucene_Analyzer - Fatal编程技术网

Lucene查询与分析器组合

Lucene查询与分析器组合,lucene,analyzer,Lucene,Analyzer,我有一个简短的问题。比如说,我有一个字符串“这个字符串中有一些文本”。我希望lucene能够通过以下搜索找到它: "string has" "has this" "text this" 我应该使用Analyzer和Query的哪种组合?Lucene 3.0.3 您可能希望使用solr而不是lucene,因为它不需要您了解这样的事情 标准分析器和查询解析器可以工作

我有一个简短的问题。比如说,我有一个字符串
“这个字符串中有一些文本”
。我希望lucene能够通过以下搜索找到它:

"string has"
"has this"
"text this"
我应该使用Analyzer和Query的哪种组合?Lucene 3.0.3

  • 您可能希望使用solr而不是lucene,因为它不需要您了解这样的事情
  • 标准分析器和查询解析器可以工作