27 apr 2007 kl. 08.21 skrev Kun Hong:
I just want that one document which contains no other words than "the". Is it possible using Lucene query?
Take a look at SpanFirstQuery. Perhaps you would need implement a SpanLastQuery too.
Perhaps the easiest way about it would be a RegexQuery that looks something like this: "^the$"
-- karl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]