I now realize that that phrase makes sense, and that it was another "feature" in my code that confused me.

So, forget about it.

Bada bing, bada bom.


--
karl

11 okt 2007 kl. 19.47 skrev Karl Wettin:

I don't understand, why does the following code create 2 phrase queries instead of 20 term queries? I'm quite sure I've previously had QueryParser doing the latter.

System.out.println(new QueryParser("f", new Analyzer() {
  public TokenStream tokenStream(String string, Reader reader) {
    return new NGramTokenFilter(new StandardTokenizer(reader), 2, 5);
  }
}).parse("hello world"));


f:"he el ll lo hel ell llo hell ello hello" f:"wo or rl ld wor orl rld worl orld world"


--
karl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to