yunge / sphinx

Abandoned, please see https://github.com/plutov/sphinx
105 stars 51 forks source link

Error in Sphinx 2.2.9 #18

Closed jerson closed 9 years ago

jerson commented 9 years ago
Sphinx 2.2.9-id64-release (rel22-r5006)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)

test fails :/ and Result.Matches always is empty but others Result.* are ok

jerson commented 9 years ago

sorry was my error, just forgot add all options

opts := &sphinx.Options{
        Host:    "localhost",
        Port:       9312,
        SqlPort:    9306,
        Limit:      20,
        MatchMode:  sphinx.SPH_MATCH_EXTENDED,
        SortMode:   sphinx.SPH_SORT_RELEVANCE,
        GroupFunc:  sphinx.SPH_GROUPBY_DAY,
        GroupSort:  "@group desc",
        MaxMatches: 1000,
        Timeout:    1000,
        RankMode:   sphinx.SPH_RANK_PROXIMITY_BM25,
        Select:     "*",
    }