I am afraid this is not possible, since getting frequencies for phrases is not 
possible, unless the phrases are created as tokens (i.e. using n-grams or 
shingles) and indexed. If someone has a solution for this, then I am interested 
as well.

/JZ

-----Original Message-----
From: Dmitry Kan [mailto:solrexp...@gmail.com] 
Sent: Thursday, October 5, 2017 12:15 PM
To: solr-user@lucene.apache.org
Subject: tf function query

Hi,

According to
https://lucene.apache.org/solr/guide/6_6/function-queries.html#FunctionQueries-AvailableFunctions

tf(field, term) requires a term as a second parameter. Is there a possibility 
to pass in an entire input query (multiterm and boolean) to the function?

The context here is that we don't use edismax parser to apply multifield 
boosts, but instead use a custom ranking function.

Would appreciate any thoughts,

Dmitry

--
Dmitry Kan
Luke Toolbox: http://github.com/DmitryKey/luke
Blog: http://dmitrykan.blogspot.com
Twitter: http://twitter.com/dmitrykan
SemanticAnalyzer: https://semanticanalyzer.info

Reply via email to