E
E
egor_spk2016-05-26 18:51:18
MySQL
egor_spk, 2016-05-26 18:51:18

How to find out in what form Sphinx found a request?

Hello. I am using sphinx from yii2 and looking for words in text. As a result, I would like to highlight the words in the text that match the query.
The question is how to find out what dictionary forms sphinx found in the text.
I understand that 'show meta' does not provide such information.
Example:
The word "contract". Sphinx, for example, finds "agreement", "agreement". These two forms of the word are what you need to get.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2016-05-26
@Sanasol

sphinxsearch.com/docs/current/api-func-buildexcerp...

E
Eugene, 2016-07-19
@Jekshmek

mysql> CALL SNIPPETS('hello this is my document text world ', 'indxproduct', 'hello world', 5 AS around, 200 AS limit);
+------------------------------------------------- ------------------------------+
| snippet |
+------------------------------------------------- -------------------------------+
| hello this is my document text world |
+------------------------------------------------- -------------------------------+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question