Skip to content

How to set match mode to SPH_MATCH_EXTENDED2 ? #105

@marios88

Description

@marios88

Hello i am in the process of migrating to manticore from an old sphinx installation but i cannot find any options on how to set match mode to SPH_MATCH_EXTENDED2, is it not supported?

Here is part of the old code for reference

    $sphinx = new SphinxClient;
    $sphinx->SetServer('localhost', 9312);
    $sphinx->SetMatchMode(SPH_MATCH_EXTENDED2);
    $sphinx->SetRankingMode(SPH_RANK_EXPR,'sum((4*lcs+2*(min_hit_pos==1)+exact_hit)*user_weight)*1000 + IF(IN(f1, "1"), 0, 10000) + IF(IN(f2, "1"), 0, 10000) + bm25');
    $sphinx->SetFieldWeights(['email' => 0]);
    $sphinx->Query($s, 'index0')['matches'];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions