S
S
sadCake2021-04-23 14:15:27
Sphinx
sadCake, 2021-04-23 14:15:27

How to "break into groups" a selection in sphinx?

The task is as follows:
You need to make a selection so that there is the following sequence:
1. complete match of the phrase in the field
2. presence of all words from the phrase in the field
3. presence of at least one word from the phrase

I have already killed a lot of time, tried to search in different ways now I came to to this variant:
@(title, description, content) ("hello world")|(hello world)|(hello|world)

Looking for something correctly, only the order is generally unclear what. And I don't even know which way to look

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sadCake, 2021-04-23
@sadCake

I'm still not sure what I did right, but it turned out that I was very close to a solution. It turned out something like this:
@(title, description, content) ("hello world^10000")|(hello world^5000)|(hello|world^1000)
And thus weight is added depending on the "group"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question