lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] [Resolved] (SOLR-2510) Proximity search is not symmetric
Date Fri, 13 May 2011 22:18:47 GMT


Hoss Man resolved SOLR-2510.

    Resolution: Not A Problem

This is the expected behavior for Phrase queries.

"slop" is specified as an edit distance...

These two queries are not equivalent...


the order of the terms as specified in the PhrasQuery matters for determining the edit distance.

> Proximity search is not symmetric
> ---------------------------------
>                 Key: SOLR-2510
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: search, web gui
>    Affects Versions: 3.1
>         Environment: Ubuntu 10.04
>            Reporter: mark risher
> The proximity search is incorrect on words occurring *before* the matching term. It matches
documents that are _less-than_ N words before and _less-than-or-equal-to_ N words after.
> For example, use the following document:
> *Expected result:* Both of the following queries should match:
> 1) {{"WORD_D WORD_G"~3}}
> 2) {{"WORD_G WORD_D"~3}}
> *Actual result:* Only #1 matches. For some reason, it thinks the distance from D to G
is 3, but from G to D is 4.

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message