2011-02-02 68 views
1

我有一個簡單的問題。說,我有一個字符串"this string has some text in it"。我希望lucene能夠使用以下搜索找到它:Lucene查詢和分析器組合

"string has" 
"has this" 
"text this" 

我應該使用哪種Analyzer和Query組合? Lucene 3.0.3。

回答

2
  1. 你可能想使用的,而不是Lucene的Solr的,因爲它不會要求你知道這樣的事情
  2. 標準分析器和查詢分析器會工作。