A
A
Alex Ivanov2019-04-30 16:57:03
Sphinx
Alex Ivanov, 2019-04-30 16:57:03

How to display the result with only negatives?

There is a simple query

$sphinx = new SphinxClient;
  $sphinx->SetServer('localhost', 9312);
  $sphinx->SetConnectTimeout(1);
  $sphinx->SetSortMode ( SPH_SORT_ATTR_DESC, "id_film" );
  $sphinx->SetLimits ( $start_pos, $perpage );
  $result = $sphinx->Query($q, 'p_index');

When $q="something"; then everything works, but when I need everything except for something there $q="!something-there !something-here"; it does not work (displays everything where there is and something-there and something-here)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-04-30
@Protossan

pick match mode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question