문제

I have a quick question. Say, I've got a string "this string has some text in it". I want lucene to be able to find it using following searches:

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

Which combination of Analyzer and Query should I use for that? Lucene 3.0.3.

도움이 되었습니까?

해결책

  1. You probably want to use solr instead of lucene, since it will not require you to know things like this
  2. The standard analyzer and query parser will work.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top