Using the Percolate function to try to find ‘related’ items. it works pretty well.
But only get a unordered list of matching queries. ie from the CALL PQ() gives the queries that matched, but seem to be just in
It of course must be running the queries in the index against the supplied document, so it could theoretically compute a basic weight. Even a simple ‘word count’ might be good enough. (ie wouldnt be able to use full IDF or whatever ranking, because wouldn’t have term frequencies in the corpus - as percolate query is just supplying the documents)
ie want to find the ‘best’ queries that match the document, not just all of them. Say the top 10
Can try to compute a weight myself. (eg the CALL PQ lists the matching query, so could re extract words and cross-reference against the document(s) - maybe even use CALL SNIPPET ). But seems like something that could be done internally (as manticore is doing all the tokenization already)