Changeset 56424f8d1cfd0e927e5e8f9e0c4329531221a966

Show
Ignore:
Timestamp:
04/27/08 22:40:45 (8 months ago)
Author:
David Balmain <dbalmain@…>
Parents:
73644644566a2ef9791d80ee31ab66770be83046
Children:
8f4fd07de7bf767b30c219684608535cb9cb6f19
git-committer:
David Balmain <dbalmain@gmail.com> / 2008-04-27T22:40:45Z+1000
Message:

Fixed another bug in sloppy Phrase Query

* also removed stray debugging +return+ from boolean query test

Location:
c
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • c/src/q_phrase.c

    r736446 r56424f  
    118118{ 
    119119    if (pp1->position == pp2->position) { 
    120         return pp1->offset > pp2->offset; 
     120        return pp1->offset < pp2->offset; 
    121121    } 
    122122    else { 
  • c/test/test_search.c

    r736446 r56424f  
    421421    check_hits(tc, searcher, bq, "0,1,4,5,7,9,10,12,13,15,16,17", -1); 
    422422    q_deref(bq); 
    423     return; 
    424423 
    425424    tq2 = tq_new(field, "word3");