We are trying to do proximity search for multi-terms and we don't care the order of the terms. Therefore "term1 term2"~5 probably will not get you "term2 term1" if both terms are long. So instead of applying distance at the end, we apply distance to each word, "term1~2 term2~2". I am wondering if we should skip short words if it is not done automatically by the engine.
Thanks, Andy On Wed, Mar 30, 2011 at 4:02 PM, Erick Erickson <erickerick...@gmail.com> wrote: > Uhhhm, doesn't "term1 term2"~5 work? If not, why not? > > You might get some use from > http://lucene.apache.org/java/2_4_0/queryparsersyntax.html > > Or if that's not germane, perhaps you can explain your use case. > > Best > Erick > > On Wed, Mar 30, 2011 at 5:49 PM, Andy Yang <a...@stitcher.com> wrote: >> Is there a minimum string length requirement for proximity search? For >> example, would "a~" or "an~" trigger proximity search? The result >> would be horrible if there is no such requirement. >> >> Thanks, >> Andy >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org >> For additional commands, e-mail: java-user-h...@lucene.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org