A
A
Artem Ershov2014-01-16 15:27:45
PHP
Artem Ershov, 2014-01-16 15:27:45

Why doesn't extended syntax work properly in Sphinx?

In search of my problem with the search, I found an article on Habré and made sure that I was doing everything by analogy, but it still doesn’t work out the way it should.
Settings:

min_infix_len = 3
enable_star = 1	
------
SetMatchMode(SPH_MATCH_EXTENDED2)

I do the same request by analogy with the article. There is " oil | * oil * " , I have " mail | * mail * "
I get one result:
Department of the Federal Postal Service of the Tver Region, a branch of the Federal State Unitary Enterprise Russian Post

I try " *mail* | mail " , I already get three results:
Express mail EMS - courier delivery (branch of FSUE Russian Post)
AND PS, express mail (IP Shakhmatov A.N.)
Administration of the Federal Postal Service of the Tver Region, branch of FSUE Russian Post

Okay, I'll check further.
Just " *mail* " - two results:
Department of the Federal Postal Service of the Tver Region, branch of the Federal State Unitary Enterprise Russian Post
Tver Post Office, OSP

And finally, a clean request without asterisks "mail" - three results, but again new ones:
Tverskoy EMS - sorting center 170880 (branch of FSUE Russian Post)
Express mail EMS - courier delivery (branch of FSUE Russian Post)
Administration of the Federal Postal Service of the Tver Region, branch of FSUE Russian Post

What am I doing wrong and what can I think of so that all these 5 options (which were returned alternately in the examples) and 2 more that were not returned for any of these queries were returned by one request?
Avtobaza of the Russian Post (OSP Avtobaza of the Federal Post Office of the Tver Region, a branch of the Federal State Unitary Enterprise Russian Post)
Pochtarev P.O., IP

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question