Is it possible to increase the contribution of a word to the relevance value in search queries in sqlite similar to the way MySQL uses >, <, ~ operators before the word? I have a query processing code in python that 1st, corrects the spelling of the word; 2nd, find all the synonyms and append it to the query; and lastly, stem and lemmatize the original query and append these to the query. But I want the following precedence: 1st) the original query, 2nd) the lemma, 3th) the set of sense 1 of the synonyms, 4rd) the root, and 5th) other sets of synonyms.
An original query, 'investigation conductivity', when processed becomes ["probe" OR "investigating" OR investigation OR investig* OR "conduction" OR conductivity OR conduct*] based on NLTK. My problem is that all these words will have equal importance. I am for now clueless as to how to properly use the matchinfo for this. Thanks for any help!
Aucun commentaire:
Enregistrer un commentaire