Hello,

Thanks for the replay.
Just as i suspected. So the solution then is to create a OR search
with both possibilities in order to make the order not be important"

"foo bar"~100 -> ("foo bar~100 OR "bar foo"~100)

-- 
Best regards
Tor Henning Ueland



On Sun, May 15, 2011 at 5:16 PM, Erick Erickson <erickerick...@gmail.com> wrote:
> Yes, order does matter. When order is changed as in your example, matching the
> text "foo always bar" would require one more move for "bar foo" than
> for "foo bar"
> Lucene In Action has some nice graphics explaining this....
>
> Best,
> Erick
>
> On Fri, May 13, 2011 at 6:13 AM, Tor Henning Ueland
> <tor.henn...@gmail.com> wrote:
>> Hi,
>>
>> The documentation does not(?) specify this, but still a interesting question.
>> Does the order of the words in a proximity search matter? And if it
>> does, is it possible to ignore the order?
>>
>> I did not belive it did, but some tests against a ngram field does
>> give different results.
>>
>> Examples:
>> "foo bar"~99 - 10 hits
>> "bar foo"~99 - 11 hits
>>
>> --
>> Best regards
>> Tor Henning Ueland
>>
>

Reply via email to