You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by steveWunderbar <st...@gmail.com> on 2017/06/29 10:13:55 UTC

Opposite termfrequency / Solr LTR

Hello everybody,
I'm using Solr LTR and i want to calculte a Feature value using the
following way:

I have a String with all Categories that are in a users search-history:
e.g. "shoes,shoes,socks,shoes"
Now I'd like to count the occurances of the value of the category field in
the String (for each document).

doc 1:{ category:shoes}
myString: "shoes,shoes,socks,shoes"

result = 3

I tried using termfrequency but it works only in the opposite direction.
Is there a way to acchieve this though?

Best regards,
Stefan




--
View this message in context: http://lucene.472066.n3.nabble.com/Opposite-termfrequency-Solr-LTR-tp4343394.html
Sent from the Solr - User mailing list archive at Nabble.com.