[Fixed]-Django search using Search Vector using multiple words or partial words

1👍

If I understand correctly, you want to have a partial search
Well, for this, it is enough for you to paste from * to the end of the query and send it and you will find the results.

.
.    
search_query = SearchQuery(text + '*')
.
.

Of course, if you want to include the user’s query, you can put query between two * as below and send it.

.
.
search_query = SearchQuery('*' + text + '*')
.
.

To know how it works read the following answer
https://stackoverflow.com/a/44382089/16829292

Leave a comment