View Issue Details [ Jump to Notes ] [ Issue History ] [ Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002178Sphinxgeneralpublic2015-02-18 11:012015-03-04 09:01
ReporterBronislovas 
Assigned ToTomat 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
Product Version2.2.7-release 
Target VersionFixed in Version2.2.8-release 
Summary0002178: Seaching in ZONESPAN not always working as expected
DescriptionThere is a some weird case searching in field by ZONESPAN.

As for example: I do have 3 documents, that are using one field for searching by ZONESPAN. 2 documents has equal information in that field, and 1 - some matching values as well. The strange thing is happens, when more than 2-3 words is searched (especially in random order), but are on the same zonespan tag, and are equal in 2 documents, only one matching document is returned.

Also I find out, if those searched words, are on the very first zonespan tag, then both matching documents are returned.
TagsNo tags attached.
Attached Files? file icon test_zones.sql [^] (35,337 bytes) 2015-02-18 15:23

- Relationships

-  Notes
(0006178)
Tomat (reporter)
2015-02-18 11:49

please provide reproducible example (config, DB dump, query with wrong result set)
(0006179)
Bronislovas (reporter)
2015-02-18 15:31

Thanks for quick respond.

Sure prepared some data:

Sphinx config:
==============================================================================================
source sphinx_test_zone
{
    type = mysql

    sql_host = localhost
    sql_user = root
    sql_pass =
    sql_db =
    sql_port = 3306

    sql_query_pre = SET NAMES utf8
    sql_query = SELECT id, text \
                 FROM test_zone;

}

index sphinx_test_zone
{
    source = sphinx_test_zone
    path =./data/sphinx_test_zone
    docinfo = extern
    min_infix_len = 2
    charset_type = utf-8
    charset_table = 0..9, A..Z->a..z, _, -, a..z, \
                    U+0104->a, U+010C->c, U+0118->e, U+0116->e, U+012E->i, U+0160->s, U+0172->u, U+016A->u, U+017D->z, \
                    U+0105->a, U+010D->c, U+0119->e, U+0117->e, U+012F->i, U+0161->s, U+0173->u, U+016B->u, U+017E->z, \
                    U+410..U+42F->U+430..U+44F, U+430..U+44F


    html_strip = 1
    index_zones = h1
    ignore_chars = .,/
}

Queries:
==============================================================================================

Returns two instead of 3 matches:

select * from sphinx_test_zone where match('ZONESPAN:(h1)wine 1987 white') limit 1000 option max_matches=10000;

The same just keyword order changed - 3 of 3:

select * from sphinx_test_zone where match('ZONESPAN:(h1)1987 wine white') limit 1000 option max_matches=10000;


Another case:

Returns 1 instead of 2 matches:

select * from sphinx_test_zone where match('ZONESPAN:(h1)1987 wine white 65') limit 1000 option max_matches=10000;


Returns as expected 2 of 2 (again just order changed):

select * from sphinx_test_zone where match('ZONESPAN:(h1)wine white 1987 65') limit 1000 option max_matches=10000;


SQL file is attached.

Thank you!
(0006181)
Bronislovas (reporter)
2015-02-23 14:33

Any progress on this case? Thank you
(0006183)
Tomat (reporter)
2015-02-23 21:49

I've planned to look at this issue this week.
In case of urgency you could use our support service http://sphinxsearch.com/about/contact/#contacts [^]
(0006199)
Tomat (reporter)
2015-03-04 09:01

fixed at r4929

- Issue History
Date Modified Username Field Change
2015-02-18 11:01 Bronislovas New Issue
2015-02-18 11:49 Tomat Note Added: 0006178
2015-02-18 15:23 Bronislovas File Added: test_zones.sql
2015-02-18 15:31 Bronislovas Note Added: 0006179
2015-02-23 14:33 Bronislovas Note Added: 0006181
2015-02-23 21:49 Tomat Note Added: 0006183
2015-03-04 09:01 Tomat Note Added: 0006199
2015-03-04 09:01 Tomat Status new => closed
2015-03-04 09:01 Tomat Assigned To => Tomat
2015-03-04 09:01 Tomat Resolution open => fixed
2015-03-04 09:01 Tomat Fixed in Version => 2.2.8-release


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker