For anyone’s future reference: Here is what I did...
# community-help
s
For anyone’s future reference: Here is what I did: added a separate field in the schema:
text_stemmed
. I used
nltk.PorterStemmer
for stemming the content and store the resultant string in
text_stemmed
. While querying I use the same method to generate stemmed query string. I concatenate the original query and the stemmed query. In the search params, I added the
text_stemmed
at the last of the
query_by
param. So the exact matches are still prioritized higher.
👍 1